@@ -34,7 +34,7 @@ def __init__(
3434 toolset_name : Optional [str ] = None ,
3535 tool_names : Optional [List [str ]] = None ,
3636 credentials : Optional [CredentialConfig ] = None ,
37- additional_headers : Optional [Dict [str , str ]] = None ,
37+ additional_headers : Optional [Dict [str , Union [ str , Callable [[], str ], Callable [[], Awaitable [ str ]]] ]] = None ,
3838 bound_params : Optional [Mapping [str , Union [Callable [[], Any ], Any ]]] = None ,
3939 pre_hook : Optional [Callable [[ToolboxContext ], Awaitable [None ]]] = None ,
4040 post_hook : Optional [Callable [[ToolboxContext ], Awaitable [None ]]] = None ,
@@ -46,7 +46,7 @@ def __init__(
4646 toolset_name: The name of the remote toolset to load.
4747 tool_names: Specific tool names to load (alternative to toolset_name).
4848 credentials: Authentication configuration.
49- additional_headers: Extra static headers (e.g. for proxy auth ).
49+ additional_headers: Extra headers (static or dynamic ).
5050 bound_params: Parameters to bind globally to loaded tools.
5151 pre_hook: Hook to run before every tool execution.
5252 post_hook: Hook to run after every tool execution.
0 commit comments