Skip to content

Add timeout settings to function tools #2346

@varunursekar

Description

@varunursekar

Currently, in order to implement adaptable timeouts for tool invocations, one either needs to: (a) construct tools dynamically using closures, or (b) pass timeout variables via RunContext and alter the timeout logic of the function. It would be convenient for developers to be able to specify a tool_timeout and model_response_timeout in the FunctionTool and RunConfig classes respectively in order to prevent tools from taking too long; for gated OAI tools, both options are out of the picture. Ideally, for tool timeouts one can decide whether to raise an AgentsException or not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions