update
This commit is contained in:
@@ -8,7 +8,7 @@ Julia framework for building agents with tool use and MCP (Model Context Protoco
|
||||
2. Create a callable `mcpServer` struct that communicates with an MCP server via NATS
|
||||
3. Create a `yiemAgent` with an LLM callable and MCP server:
|
||||
```julia
|
||||
agent = YiemAgent.yiemAgent(llmCall; mcpServer=mcpServer, agentEventSink=yourSink)
|
||||
agent = YiemAgent.yiemAgent(llmCall; mcpServer=mcpServer, eventSink=yourSink)
|
||||
```
|
||||
4. Call `runAgent(agent, message)` then `takeResponse(agent)`
|
||||
|
||||
@@ -136,4 +136,4 @@ Tools are discovered dynamically via MCP server:
|
||||
| `formatMsgForLLM` | `(ctx, sink) -> dict` | Convert agent context to LLM API format |
|
||||
| `beforeToolCall` | `(context, signal) -> result` | Block/allow tool execution |
|
||||
| `afterToolCall` | `(context, signal) -> result` | Post-process tool results |
|
||||
| `agentEventSink` | `(msg) -> nothing` | Callback for agent events/debug messages |
|
||||
| `eventSink` | `(msg) -> nothing` | Callback for agent events/debug messages |
|
||||
|
||||
Reference in New Issue
Block a user