Toggle Menu
Prev Up Next

# `langchain.agents.output_parsers.openai_tools`.parse_ai_message_to_openai_tool_action

langchain.agents.output_parsers.openai_tools.parse_ai_message_to_openai_tool_action(message: BaseMessage) → Union[List[AgentAction], AgentFinish]

  Parse an AI message potentially containing tool_calls.

  Parameters

    message (BaseMessage) –

  Return type

    Union[List[AgentAction], AgentFinish]