CA

copilotkit/aimock

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

1천 stars 0 forks 품질 51 트렌드 59

AI 앱의 모든 것을 Mock — LLM APIs, MCP, A2A, AG-UI, 벡터 DBs, 검색. 1개의 포장, 1개의 항구, 0개의 종점.

개요

https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667] https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]] https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]] [[https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]]] [[[[[[https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]]]]]]]]]] [[[[[[[https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[ 1개의 포장, 1개의 항구, 0개의 종점. LLM APIs, 이미지 생성 및 편집, text-to-speech, transcription, 오디오 번역 및 세대, 비디오 생성, embeddings, MCP 도구, A2A 에이전트, AG-UI 이벤트 스트림, 벡터 데이터베이스, 검색, rerank, 및 모뎀 - 키, 네트워크 없음, 놀라운 청구. AI 앱이 말하는 모든 것을 목표로: npx @copilotkit/aimock --config aimock.json로 한 포트에 모두 실행하거나, 필요한 것을 정확히 구성하는 프로그래밍 API를 사용합니다.

개요(AI 번역)

** AI 애플리케이션 테스트를위한 Mock 인프라 - 로컬 포트 및 모든 공급자, 프로토콜 및 서비스 답변 중 하나에서 SDK를 지적합니다. **

** 빠른 시작 ** · ** 스위트 ** · ** 기록 및 재생 ** · ** 메시지 **

https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667] https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]] https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]] [[https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]]] [[[[[[https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]]]]]]]]]] [[[[[[[https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[

1개의 포장, 1개의 항구, 0개의 종점. LLM APIs, 이미지 생성 및 편집, text-to-speech, transcription, 오디오 번역 및 세대, 비디오 세대, embeddings, MCP 도구, A2A 에이전트, AG-UI 이벤트 스트림, 벡터 데이터베이스, 검색, 재랭크 및 모뎀 - 키 없음, 네트워크 없음, 놀람 없음 계정 정보

빠른 시작

목표 스위트

AI 앱이 말하는 모든 것을 목표로:

| 도구 | 어떤 조도 | Docs | | -------------- ◈--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

https://github.com/user-attachments/assets/76815122-574a-48e1-b275-edae0a014667

Quick Start

npm install @copilotkit/aimock
// The class is still named `LLMock` for back-compat after the v1.7.0 package
// rename from `@copilotkit/llmock` to `@copilotkit/aimock`.
import { LLMock } from "@copilotkit/aimock";

const mock = new LLMock({ port: 0 });
mock.onMessage("hello", { content: "Hi there!" });
await mock.start();

// Set env BEFORE importing/constructing the OpenAI (or other provider) client.
// Many SDKs cache the base URL at construction time — if the client is built
// before these are set, it will talk to the real API (surprise bills) instead
// of aimock.
process.env.OPENAI_BASE_URL = `${mock.url}/v1`;
process.env.OPENAI_API_KEY = "mock"; // SDK requires a value, even when base URL is mocked

// ... run your tests ...

await mock.stop();

The aimock Suite

aimock mocks everything your AI app talks to:

Tool What it mocks Docs
GitHub에서 전체 README 보기

설치

npx -p @copilotkit/aimock llmock -p 4010 -f ./fixtures
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →