mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
JSON
{
|
|
"fixtures": [
|
|
{
|
|
"match": { "userMessage": "Hello" },
|
|
"response": {
|
|
"content": "Hello! I'm your LangGraph-powered assistant. I can help you manage proverbs, get weather information, and more. What would you like to do?"
|
|
}
|
|
},
|
|
{
|
|
"match": { "userMessage": "weather" },
|
|
"response": {
|
|
"toolCalls": [
|
|
{
|
|
"name": "getWeather",
|
|
"arguments": "{\"location\":\"New York\"}",
|
|
"id": "call_get_weather_001"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"match": { "toolCallId": "call_get_weather_001" },
|
|
"response": {
|
|
"content": "The weather in New York is 70 degrees with clear skies, 45% humidity, 5 mph wind, and feels like 72 degrees. A great day to be outside!"
|
|
}
|
|
},
|
|
{
|
|
"match": {},
|
|
"response": {
|
|
"content": "You're currently running against aimock (a mock LLM server). This response is a catch-all for requests that don't match any test fixture. To use a real LLM: (1) Add your OPENAI_API_KEY to .env, (2) Remove or unset OPENAI_BASE_URL from your environment so requests go to OpenAI instead of aimock, (3) Restart with `pnpm dev`."
|
|
}
|
|
}
|
|
]
|
|
}
|