LongRunningFunctionTool. It instructs the LLM not to re-invoke the tool while pending:
NOTE: This is a long-running operation. Do not call this tool again if it has already returned some intermediate or pending status.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Handle slow tools like deployments and data processing with LongRunningFunctionTool, preventing the LLM from re-invoking while pending.
LongRunningFunctionTool. It instructs the LLM not to re-invoke the tool while pending:
from orxhestra.tools import LongRunningFunctionTool
async def deploy_service(env: str) -> str:
"""Deploy the service to the given environment."""
await some_long_operation(env)
return f"Deployed to {env}"
tool = LongRunningFunctionTool(deploy_service)
agent = LlmAgent(name="deployer", model=model, tools=[tool.as_tool()])
NOTE: This is a long-running operation. Do not call this tool again if it has already returned some intermediate or pending status.
Was this page helpful?