ContextStore
Methods
Constructor · __init__
Initialize in-memory context store with TTL cache
Constructor · __init__
Initialize in-memory context store with TTL cache
Initialize in-memory context store with TTL cache.Args:
max_contexts: Maximum number of contexts to keep in memory
ttl_seconds: Time-to-live for context instances in seconds (default: 1 hour)
Parameters
| Name | Type | Default |
|---|---|---|
max_contexts | int | 1000 |
context_ttl | timedelta | timedelta(hours=1) |
async create
async create
Parameters
Returns:
| Name | Type | Default |
|---|---|---|
context_id | str | — |
initialized_dependencies | list[Dependency] | — |
ContextStoreInstance