Skip to content

Commit

Permalink
update README for multi agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Sep 3, 2024
1 parent 8e7ab02 commit dc0f9e9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
"protocol": "目前支持openapi、openmodbus、jsonrpcHttp"
}
],
"sessionList": [
{
"id": "<Sub Agent sessionId 1>"
},
{
"id": "<Sub Agent sessionId 2>"
}
],
"timeoutSeconds": 3600
}
```
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ LLM `AI Agent` multi session HTTP/WebSocket service
"protocol": "Support openapi, openmodbus, jsonrpcHttp"
}
],
"sessionList": [
{
"id": "<Sub Agent sessionId 1>"
},
{
"id": "<Sub Agent sessionId 2>"
}
],
"timeoutSeconds": 3600
}
```
Expand Down
6 changes: 4 additions & 2 deletions example/multi_agent_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ Dio dio = Dio(BaseOptions(
// headers: {"Authorization": "Bearer <KEY>"}
));



/// [IMPORTANT] Prepare:
/// 1. HTTP Server, according to `/example/mock/server/mock_http_server`, which server is running.
/// 2. OneAPI JSON file, which is described the HTTP Server API.
/// 3. Add LLM baseUrl and apiKey to `.env` file
Future<void> main() async {

DotEnv env = DotEnv();env.load(['example/.env']);LLMConfigDto llmConfig = LLMConfigDto(baseUrl: env["baseUrl"]!, apiKey: env["apiKey"]!, model: "gpt-4o-mini");
Expand Down

0 comments on commit dc0f9e9

Please sign in to comment.