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