Node 03: Chat and Runtime (中文 + English)¶
导航 / Navigation: 返回项目首页 | 文档首页 | 中文 README | English README
Chat 节点 / Chat Node¶
中文:
Chat 是测试入口:先创建 session,再发送 message。可选传 agent_id 指定由哪个 Agent 资源执行。
English:
Chat is the test entry: create session first, then send messages. Optionally pass agent_id to select the executing Agent resource.
Chat APIs¶
POST /api/v1/chat/projects/{project_id}/sessionsPOST /api/v1/chat/sessions/{session_id}/messages
Runtime 节点 / Runtime Node¶
中文:
Runtime 会读取 Agent 资源中的:
- model_provider
- model_name
- config.system_prompt
然后路由到对应 Provider 执行。
English:
Runtime reads from Agent resource:
- model_provider
- model_name
- config.system_prompt
Then dispatches to the corresponding provider.
代码位置 / Code References¶
backend/app/api/v1/chat.pybackend/app/runtime/executor.pybackend/app/runtime/providers.pybackend/app/services/postgres_store.py