Get Agent Messages
GET /api/agents/messages/{agent_id}
Get comprehensive message history for a specific agent with pagination support.
Args: agent_id: Unique identifier of the agent to retrieve messages for request: FastAPI Request object for backend context limit: Maximum number of messages to return (default: 50) offset: Number of messages to skip for pagination (default: 0)
Returns: Dict[str, object]: Agent message history with pagination metadata
Note: Retrieves message history from the communication hub with manual pagination support for efficient message browsing and analysis across agent communications.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Successful Response
Agent message history response model with pagination support.
Returns paginated message history for a specific agent with comprehensive pagination metadata for efficient message browsing and analysis through the communication hub.
Fields: status: Operation status indicator agent_id: Agent identifier for message history messages: List of agent messages (paginated) count: Number of messages in current page total: Total number of messages available offset: Pagination offset (messages skipped) limit: Pagination limit (max messages per page)
Used By: - GET /api/agents/management/messages/{agent_id} endpoint - Agent message history retrieval - Communication analytics
object
Operation status: ‘success’ or error state
Agent identifier for message history
List of agent messages (paginated)
Summary of an agent message.
Used in agent_models.py for messages lists.
Number of messages in current page
Total number of messages available
Pagination offset (messages skipped)
Pagination limit (max messages per page)
Validation Error