update
This commit is contained in:
+4
-1
@@ -994,7 +994,10 @@ function prepareToolCall(
|
|||||||
agentEventSink
|
agentEventSink
|
||||||
)::Union{preparedToolCall,immediateOutcome}
|
)::Union{preparedToolCall,immediateOutcome}
|
||||||
agentEventSink("prepareToolCall 1")
|
agentEventSink("prepareToolCall 1")
|
||||||
tool = get(context.tools, toolCall.name, nothing) # pick a called tool from tool store
|
|
||||||
|
# pick a called tool from tool store
|
||||||
|
tool = get(context.tools, toolCall.name, nothing)
|
||||||
|
|
||||||
if tool === nothing
|
if tool === nothing
|
||||||
agentEventSink("prepareToolCall 2")
|
agentEventSink("prepareToolCall 2")
|
||||||
return immediateOutcome(createErrorToolResult("Tool $toolCall.name not found"), true)
|
return immediateOutcome(createErrorToolResult("Tool $toolCall.name not found"), true)
|
||||||
|
|||||||
Reference in New Issue
Block a user