mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
1ec575ea02
Adds 6 missing demos to the AG2 integration: - auth: V2 runtime onRequest hook gates requests via Bearer token; AG2 default agent backs the authenticated path. - agent-config: Typed tone/expertise/responseLength config forwarded via agent.setState into AG2 ContextVariables; agent reads via a get_current_config tool before each reply. - voice: V2 runtime + TranscriptionServiceOpenAI + sample audio button; guarded for missing OPENAI_API_KEY. - multimodal: Dedicated gpt-4o AG2 ConversableAgent with image + PDF attachment support; sample-attachment buttons inject bundled samples. - byoc-hashbrown: AG2 agent emits hashbrown-shaped JSON for @hashbrownai/react useUiKit + useJsonParser; sales dashboard catalog. - byoc-json-render: AG2 agent emits flat root/elements JSON spec for @json-render/react Renderer; identical sales catalog for parity. Adds @copilotkit/voice, @json-render/core, @json-render/react, openai JS deps; pypdf and openai Python deps. Bundles demo-audio + demo-files public assets and updates manifest features + demos.
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "@copilotkit/showcase-ag2",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "concurrently \"next dev --turbopack\" \"PYTHONPATH=. python -m uvicorn agent_server:app --host 0.0.0.0 --port 8000 --reload\"",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test:e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@ag-ui/client": "^0.0.43",
|
|
"@copilotkit/a2ui-renderer": "next",
|
|
"@copilotkit/react-core": "next",
|
|
"@copilotkit/runtime": "next",
|
|
"@copilotkit/voice": "next",
|
|
"@hashbrownai/core": "0.5.0-beta.4",
|
|
"@hashbrownai/react": "0.5.0-beta.4",
|
|
"@json-render/core": "0.18.0",
|
|
"@json-render/react": "0.18.0",
|
|
"next": "^15.5.15",
|
|
"openai": "^5.9.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"recharts": "^2.15.0",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.50.0",
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"concurrently": "^9.1.0",
|
|
"postcss": "^8.5.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.7.0"
|
|
}
|
|
}
|