Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aveni-hub/avenieca-python/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheESS class provides methods for creating, retrieving, updating, and searching twins and aggregates in the Embodied State Space. ESS represents discrete states with associated valence scores.
Methods
create(data: ESSInsert)
Create a new ESS (twin or aggregate).
The ESS data to create
Returns a tuple of (ESSResponse | Error | AggregateError, status_code)
get_all(module_id: str)
Get all ESS for a specific module.
The module identifier to retrieve ESS for
Returns a tuple of (List[ESSResponse] | Error, status_code)
get_one(module_id: str, db_id: int)
Get a specific ESS by its database ID.
The module identifier
The database ID of the ESS
Returns a tuple of (ESSResponse | Error, status_code)
get_one_with_embedding(module_id: str, emb_input: int)
Get an ESS using its embedding input ID.
The module identifier
The embedding input ID
Returns a tuple of (ESSResponse | Error, status_code)
get_one_pretty(module_id: str, db_id: int)
Get an ESS with the state mapped to a vector of the original input values.
The module identifier
The database ID of the ESS
Returns a tuple of (PrettyESS | Error, status_code). PrettyESS contains state values mapped to their original string representations.
get_one_sequence(module_id: str, sequence_id: int)
Get the reference ESS for a specific sequence.
The module identifier
The sequence database ID
Returns a tuple of (ESSResponse | Error, status_code)
get_all_sequence(module_id: str)
Get all ESS from all sequences for a module. Returns ESS ordered in descending order from the most recent sequence.
The module identifier
Returns a tuple of (List[ESSResponse] | Error, status_code)
get_all_aggregates(module_id: str, aggregate_module_id: str, ess_id: int)
Get all aggregates that have the given ESS as a constituent (in-twin).
The module identifier of the constituent ESS
The module identifier of the aggregate
The ESS database ID
Returns a tuple of (List[ESSResponse] | Error, status_code)
update(module_id: str, db_id: int, data: ESSInsert)
Update an existing ESS.
The module identifier
The database ID of the ESS to update
The updated ESS data
Returns a tuple of (ESSResponse | Error | AggregateError, status_code)
search(data: Search)
Search for ESS with similar states using vector similarity.
The search parameters
Returns a tuple of (List[SearchResult] | Error, status_code)
upsert(module_id: str, db_id: int)
Upsert an ESS to the Vector Search Engine (VSE) collection.
The module identifier
The database ID of the ESS
Returns a tuple of (response | Error, status_code)