parse_ai_message_to_tool_action#
- langchain.agents.output_parsers.tools.parse_ai_message_to_tool_action(message: BaseMessage) List[AgentAction] | AgentFinish [source]#
Parse an AI message potentially containing tool_calls.
- Parameters:
message (BaseMessage) –
- Return type:
List[AgentAction] | AgentFinish