LangGraph TS
简体中文
将AG-Kit服务器部署至云平台
// api/agent.ts import { agui } from '@ag-kit/server'; const handler = agui.sendMessage.createServerAdapter(() => ({ agent: myAgent })); export default handler;
{ "functions": { "api/agent.ts": { "maxDuration": 30 } } }
gcloud run deploy agkit-server \ --source . \ --platform managed \ --region us-central1 \ --allow-unauthenticated \ --port 3000
此页面对您有帮助吗?