feat: add agent query API (#130)

This commit is contained in:
2026-06-14 16:05:04 +01:00
committed by GitHub
parent 083f6d2695
commit 825f67db13
16 changed files with 2590 additions and 144 deletions

View File

@@ -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,
}))
}
}