langchain.agents.output_parsers.tools.parse_ai_message_to_tool_action¶

langchain.agents.output_parsers.tools.parse_ai_message_to_tool_action(message: BaseMessage) Union[List[AgentAction], AgentFinish][source]¶

Parse an AI message potentially containing tool_calls.

Parameters

message (BaseMessage) –

Return type

Union[List[AgentAction], AgentFinish]