Overview
This page documents all data models available in the AveniECA Python SDK. All models inherit from theBase class, providing serialization and deserialization capabilities.
Base Class
All models inherit fromBase, which provides:
__dict__property: Returns a dictionary representationjsonproperty: Returns a JSON string representationto_json_file(file)method: Writes the model to a JSON filefrom_json()class method: Creates an instance from JSON (via JSONWizard)from_dict()class method: Creates an instance from a dictionary (via JSONWizard)
Authentication Models
AuthLogin
Credentials for authenticating with the AveniECA API.Username for authentication
Password for authentication
AuthResponse
Response returned after successful authentication.User role in the system
Session identifier for authenticated requests
Unique user identifier
Username of the authenticated user
Config
Configuration object for API client setup.API token for authentication
Username for authentication
Password for authentication
API endpoint URI
ESS (Episodic State Store) Models
ESSInsert
Model for inserting a new ESS entry.State vector representing the episodic state
Module identifier for organizing ESS entries
Valence value for this state
Average valence across aggregated states
Total score across aggregated states
Average score across aggregated states
Score for this state
Reference to the embedding input ID
List of aggregated ESS entry IDs
List of valence values from aggregated entries
List of scores from aggregated entries
List of module IDs from aggregated entries
Shape information for aggregated entries
Context information from aggregated entries
Embedding input IDs from aggregated entries
Optional context string for this entry
ESSResponse
Response model for ESS entries retrieved from the database.Unique database identifier for this ESS entry
State vector
Module identifier
Valence value
Timestamp when the entry was created
Timestamp when the entry was last updated
Average valence across aggregated states
Total score across aggregated states
Average score across aggregated states
Score for this state
Reference to the embedding input ID
List of aggregated ESS entry IDs
List of valence values from aggregated entries
List of scores from aggregated entries
List of module IDs from aggregated entries
Shape information for aggregated entries
Context information from aggregated entries
Embedding input IDs from aggregated entries
Optional context string
PrettyESS
Formatted ESS response with additional display fields.Unique database identifier
State vector as strings for display
List of aggregated ESS entry IDs
List of valence values from aggregated entries
List of scores from aggregated entries
List of module IDs from aggregated entries
Shape information for aggregated entries
Module identifier
Valence value
Average valence across aggregated states
Total score across aggregated states
Average score across aggregated states
Creation timestamp
Last update timestamp
Score for this state
Reference to the embedding input ID
Context information from aggregated entries
Embedding input IDs from aggregated entries
Optional context string
Numeric representation of state
String representation of state
AggregateError
Error model for validation issues when aggregating ESS entries.Error message for ESS aggregation issues
List of field length validation errors
List of module ID position errors
List of ESS existence verification errors
List of ESS mismatch errors
List of invalid ESS database IDs
List of invalid module IDs
Error message for incorrect average ESS score
Error message for incorrect average ESS valence
Error message for incorrect valence
Error message for incorrect total ESS score
Sequence Models
SequenceInsert
Model for inserting a new sequence entry.Module identifier for the sequence
Instance identifier within the module
Status of the sequence (e.g., ‘n’ for new)
Optional context for the sequence
SequenceResponse
Response model for sequence entries.Unique database identifier
Module identifier
Instance identifier
Current status of the sequence
Creation timestamp
Last update timestamp
Optional context
NextStateRequest
Request model for predicting next states in a sequence.Module identifier to search within
Range parameter for state prediction
Number of previous states to recall
Number of next states to predict
Filter by sequence status
Current state ID
List of previous state IDs
Whether to store the response
Whether to store the sequence
NextStateResponse
Response containing current and predicted next states.List of Twin objects representing the current state
List of Twins objects representing predicted next states
NextStateResponseRaw
Raw response with float state vectors instead of string representations.List of TwinRaw objects for current state
List of TwinsRaw objects for predicted next states
Twin Models
Twin
Represents a state twin with string representation.Aggregate identifier
ESS entry identifier
Module identifier
State representation as string
TwinRaw
Represents a state twin with raw float vector.State vector as list of floats
Aggregate identifier
ESS entry identifier
Module identifier
Twins
Collection of Twin objects.List of Twin objects
TwinsRaw
Collection of TwinRaw objects.List of TwinRaw objects
Document Models
DocumentInsert
Model for inserting a new document.Unique document identifier
Document text content
Whether to generate embeddings for this document
DocumentResponse
Response model for document entries.Unique database identifier
Document identifier
Document text content
Processing status of the document
Creation timestamp
Last update timestamp
Embedding Models
EmbeddingInputInsert
Model for inserting embedding input.Module identifier
Input text to be embedded
Hash of the input for deduplication
EmbeddingInputResponse
Response model for embedding input entries.Unique database identifier
Module identifier
Input text
Hash of the input
Creation timestamp
Last update timestamp
EmbeddingInputHash
Model for querying by embedding input hash.Hash of the embedding input
Search Models
Search
Model for performing similarity search in ESS.Module identifier to search within
Query state vector for similarity search
Maximum number of results to return
SearchResult
Single search result with similarity score.Similarity score for this result
The matching ESS entry
Retrieval Models
RetrievalRequest
Request model for retrieval-augmented generation.Query string for retrieval
RetrievalResponse
Response from retrieval-augmented generation.Generated response text
ECA (Event-Condition-Action) Models
ECAResponse
Response model for ECA rule entries.List of ESS IDs associated with percepts
List of ESS IDs associated with responses
Names of percept states
Names of response states
Name of the ECA rule
Unique database identifier
Percept identifier
Response identifier
Module identifier for twin states
Status of the ECA rule
Creation timestamp
Last update timestamp
Error Models
Error
General error response model.List of error messages