Skip to main content

Module types

Module types 

Source
Expand description

Core types (requests, responses, errors). Core types used throughout the A.R.E.S server.

This module contains all the common data structures used for:

  • API requests and responses
  • Agent configuration and context
  • Memory and user preferences
  • Tool definitions and calls
  • RAG (Retrieval Augmented Generation)
  • Authentication
  • Error handling

Structs§

AgentContext
Context passed to agents during request processing.
ChatRequest
Request payload for chat endpoints.
ChatResponse
Response from chat endpoints.
Claims
JWT claims embedded in access tokens.
Document
A document in the RAG knowledge base.
DocumentMetadata
Metadata associated with a document.
LoginRequest
Request payload for user login.
MemoryFact
A fact learned about a user.
Message
A single message in a conversation.
Preference
A user preference entry.
RagDeleteCollectionRequest
Request to delete a collection.
RagDeleteCollectionResponse
Response from collection deletion.
RagIngestRequest
Request to ingest a document into the RAG system.
RagIngestResponse
Response from document ingestion.
RagSearchRequest
Request to search the RAG system.
RagSearchResponse
Response from RAG search.
RagSearchResult
Single search result.
RegisterRequest
Request payload for user registration.
ResearchRequest
Request payload for deep research endpoints.
ResearchResponse
Response from deep research endpoints.
SearchFilter
A filter to apply during search.
SearchQuery
Query parameters for semantic search.
SearchResult
A single search result with relevance score.
Source
A source reference used in responses.
TokenResponse
Response containing authentication tokens.
ToolCall
A request to call a tool.
ToolDefinition
Definition of a tool that can be called by an LLM.
ToolResult
Result from executing a tool.
UserMemory
User memory containing preferences and learned facts.
WorkflowRequest
Request payload for workflow execution endpoints.

Enums§

AgentType
Available agent types in the system.
AppError
Application-wide error type.
ErrorCode
Error codes for programmatic error handling. These are stable identifiers that clients can use to handle specific error cases.
MessageRole
Role of a message sender in a conversation.

Type Aliases§

Result
A specialized Result type for A.R.E.S operations.