langgraph_agent_toolkit.service.utils.verify_bearer(http_auth)[source][source]
Parameters:

http_auth (Annotated[HTTPAuthorizationCredentials | None, Depends(HTTPBearer)])

Return type:

None

langgraph_agent_toolkit.service.utils.get_agent_executor(request)[source][source]

Get the AgentExecutor instance that was initialized in lifespan.

Parameters:

request (Request)

Return type:

AgentExecutor

langgraph_agent_toolkit.service.utils.get_agent(request, agent_id)[source][source]

Get an agent by its ID from the initialized AgentExecutor.

Parameters:
Return type:

Agent

langgraph_agent_toolkit.service.utils.get_all_agent_info(request)[source][source]

Get information about all available agents from the initialized AgentExecutor.

Parameters:

request (Request)

async langgraph_agent_toolkit.service.utils.message_generator(stream_input, request, agent_id)[source][source]

Generate messages from an agent.

Parameters:
Return type:

AsyncGenerator[str, None]

langgraph_agent_toolkit.service.utils.setup_logging()[source][source]

Configure application logging to use loguru.