memories
FastAPI endpoint functions for agent memories.
Attributes
memories_router
module-attribute
memories_router = APIRouter(
prefix=format_path(RESOURCE_MEMORIES),
tags=[RESOURCE_MEMORIES],
responses=DEFAULT_HTTP_ERROR_RESPONSES,
)
Classes
Functions
create_memories
async
create_memories(
fastapi_request: Request,
request: List[CreateMemoryRequestV1],
collection_pkid: str = collection_path_param,
job_pool: ThreadPoolExecutor = Depends(
job_pool_dependency
),
)
Creates new observational memories.
get_memory
async
get_memory(
fastapi_request: Request,
collection_pkid: str = collection_path_param,
memory_pkid: str = memory_path_param,
job_pool: ThreadPoolExecutor = Depends(
job_pool_dependency
),
)
Get a memory resource by pkid
soft_delete_memory
async
soft_delete_memory(
fastapi_request: Request,
collection_pkid: str = collection_path_param,
memory_pkid: str = memory_path_param,
job_pool: ThreadPoolExecutor = Depends(
job_pool_dependency
),
)
Soft delete a memory resource
undelete_memory
async
undelete_memory(
fastapi_request: Request,
collection_pkid: str = collection_path_param,
memory_pkid: str = memory_path_param,
job_pool: ThreadPoolExecutor = Depends(
job_pool_dependency
),
)
Undeletes a soft-deleted memory resource
update_memory
async
update_memory(
fastapi_request: Request,
request: MemoryUpdateRequestV1,
collection_pkid: str = collection_path_param,
memory_pkid: str = memory_path_param,
job_pool: ThreadPoolExecutor = Depends(
job_pool_dependency
),
)
Update a memory resource