external_tools_condition#

langchain_azure_ai.agents.agent_service.external_tools_condition(
state: MessagesState,
) β†’ Literal['tools', '__end__'][source]#

Determine the next node based on whether the AI message contains tool calls.

Parameters:

state (MessagesState)

Return type:

Literal[β€˜tools’, β€˜__end__’]