V0.8.0 async think loop #40
+2
-2
@@ -3,7 +3,7 @@ module type
|
|||||||
run_agent, take_response, follow_up, stop_agent
|
run_agent, take_response, follow_up, stop_agent
|
||||||
|
|
||||||
|
|
||||||
using Dates, UUIDs, DataStructures, JSON, NATS
|
using Dates, UUIDs, DataStructures, JSON, NATS, Base.Threads
|
||||||
using GeneralUtils
|
using GeneralUtils
|
||||||
|
|
||||||
const Timestamp = DateTime
|
const Timestamp = DateTime
|
||||||
@@ -587,7 +587,7 @@ carrying the full context through the call chain.
|
|||||||
# Examples
|
# Examples
|
||||||
```julia
|
```julia
|
||||||
# After prepareToolCall succeeds, the agent holds a preparedToolCall
|
# After prepareToolCall succeeds, the agent holds a preparedToolCall
|
||||||
prep = preparedToolCall(
|
prep = preparedToolCall(
|
||||||
tool, # agentTool found in context.tools
|
tool, # agentTool found in context.tools
|
||||||
toolCall, # {id: "call_1", name: "search_wine", arguments: "{\"query\": \"red wine\"}"}
|
toolCall, # {id: "call_1", name: "search_wine", arguments: "{\"query\": \"red wine\"}"}
|
||||||
validatedArgs # Dict("query" => "red wine")
|
validatedArgs # Dict("query" => "red wine")
|
||||||
|
|||||||
Reference in New Issue
Block a user