Module long_running

Module long_running 

Source
Expand description

Long-running function tool wrapper.

Wraps any ToolFunction and marks it as long-running by appending an instruction to the tool description that tells the LLM not to re-invoke the tool while it is still pending.

Structsยง

LongRunningFunctionTool
Wraps a ToolFunction and marks it as long-running.