mirror of
https://github.com/kennethnym/aris.git
synced 2026-06-16 20:41:18 +01:00
feat: add agent query API (#130)
This commit is contained in:
@@ -125,4 +125,12 @@ export class Context {
|
||||
get size(): number {
|
||||
return this.store.size
|
||||
}
|
||||
|
||||
/** Returns all context entries for serialization and diagnostics. */
|
||||
entries(): Array<{ key: readonly ContextKeyPart[]; value: unknown }> {
|
||||
return Array.from(this.store.values()).map((entry) => ({
|
||||
key: entry.key,
|
||||
value: entry.value,
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user