-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hey folks! I'm having trouble extending the timeout for my tool calls. It doesn’t matter what timeout value I pass in the options, it gets cut at 5000.
start_time = DateTime.utc_now()
opts = [timeout: 900_000]
try do
MCPClient.call_tool(
"get-model-schema", %{"model_uuid" => "<UUID>"}, opts)
|> dbg()
after
DateTime.diff(DateTime.utc_now(), start_time, :millisecond) |> dbg()
endError:
** (exit) exited in: GenServer.call(AstroBee.MCPClient, {:operation, %Hermes.Client.Operation{method: "tools/call", params: %{"arguments" => %{"model_uuid" => "<UUID>"}, "name" => "get-model-schema"}, progress_opts: nil, timeout: 900000}}, 901000)
** (EXIT) exited in: GenServer.call(AstroBee.MCPClient.Transport, {:send, "{\"id\":\"req_GFUBG45Kcyp2AFjZUn0=\",\"jsonrpc\":\"2.0\",\"method\":\"tools/call\",\"params\":{\"arguments\":{\"model_uuid\":\"<UUID>\"},\"name\":\"get-model-schema\"}}\n"}, 5000)
** (EXIT) time out
(elixir 1.18.2) lib/gen_server.ex:1128: GenServer.call/3
#cell:x7o2sd5ey2tvyzwi:6: (file)
The operation timeout looks correct, but it seems send is using 5000 as the timeout. Am I missing some configuration here?
Metadata
Metadata
Assignees
Labels
No labels