- 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:
- langgraph_agent_toolkit.service.utils.get_agent(request, agent_id)[source][source]
Get an agent by its ID from the initialized AgentExecutor.
- 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:
stream_input (StreamInput)
request (Request)
agent_id (str)
- Return type:
AsyncGenerator[str, None]