This commit is contained in:
2026-08-08 09:38:05 +07:00
parent 04e75e61b8
commit 0ddbcf9ca1
5 changed files with 548 additions and 27 deletions
+1 -8
View File
@@ -14,14 +14,6 @@ function executeTool(toolCallId::String, args::Dict{String,Any}, signal::Union{N
city = get(args, "city", "")
units = get(args, "units", "celsius")
# Validate required arguments
if isempty(city)
return agentToolResult(
[textContent("Error: 'city' argument is required.")],
Dict{Any,Any}(), nothing, false
)
end
# Simulate weather fetch — replace with actual API call
# You can call onPartialResult() here for streaming progress updates:
# onPartialResult(Dict("status" => "Fetching weather data..."))
@@ -54,6 +46,7 @@ function getTool()::agentTool
),
execute = executeTool, # reference the function defined above
prepareArguments = nothing,
validateRequiredArgs = nothing,
parallelToolExecute = false
)
end