Skip to content

An open-source, faster Devin alternative

TypeScript

sdk(agents): fix metadata JSDoc — returned as session.metadata (top-level), not session.snapshot.metadata

Igor Zalutskife94660b9880
diff --git a/sdks/typescript/src/agents/sessions.ts b/sdks/typescript/src/agents/sessions.ts
index ef922d0d..996d67be 100644
--- a/sdks/typescript/src/agents/sessions.ts
+++ b/sdks/typescript/src/agents/sessions.ts
@@ -19,7 +19,7 @@ export interface CreateSessionParams {
limits?: Limits;
/**
* Opaque application routing state stored on the session — a JSON object (≤ 16 KB).
- * Returned on `get`/`list` (as `session.snapshot.metadata`) and delivered verbatim in
+ * Returned on `get`/`list` (as `session.metadata`) and delivered verbatim in
* webhooks, so a callback handler can route to the right record without a lookup. It is
* never shown to the model and not indexed/queryable. Distinct from `key`
* (get-or-create) and `idempotencyKey` (dedupe).