Skip to main content

portia.execution_agents.clarification_tool

Tool for raising clarifications if unsure on an arg.

ClarificationToolSchema Objects

class ClarificationToolSchema(BaseModel)

Schema defining the inputs for the ClarificationTool.

ClarificationTool Objects

class ClarificationTool(Tool[str])

Raises a clarification if the agent is unsure of an argument.

run

def run(ctx: ToolRunContext, argument_name: str) -> str

Run the ClarificationTool.