[docs]defpydantic_agent_callable(agent:Agent)->Callable[[ChatInput],ChatOutput|str]:"""Create a callable that can be used with the Agentstr framework. Args: agent: The Pydantic agent to wrap. Returns: A callable that can be used with the Agentstr framework. """asyncdefagent_callable(input:ChatInput)->str:result=awaitagent.run(input.message)returnresult.outputreturnagent_callable