@databricks/sdk-agentkit 0.0.0-beta → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n AppendSessionItemsRequest,\n AppendSessionItemsResponse,\n ClearSessionItemsRequest,\n ClearSessionItemsResponse,\n CreateManagedMemoryEntryRequest,\n CreateManagedMemoryStoreRequest,\n CreateSessionRequest,\n CreateSessionStoreRequest,\n DeleteManagedMemoryEntryRequest,\n DeleteManagedMemoryStoreRequest,\n DeleteSessionRequest,\n DeleteSessionStoreRequest,\n ExtractMemoriesRequest,\n ExtractMemoriesResponse,\n ForkSessionRequest,\n ForkSessionResponse,\n GetManagedMemoryEntryRequest,\n GetManagedMemoryStoreRequest,\n GetSessionRequest,\n GetSessionStoreRequest,\n ListManagedMemoryEntriesRequest,\n ListManagedMemoryEntriesResponse,\n ListManagedMemoryStoresRequest,\n ListManagedMemoryStoresResponse,\n ListSessionItemsRequest,\n ListSessionItemsResponse,\n ListSessionStoresRequest,\n ListSessionStoresResponse,\n ListSessionsRequest,\n ListSessionsResponse,\n ManagedMemoryEntry,\n ManagedMemoryEntrySearchResult,\n ManagedMemoryStore,\n PopSessionItemRequest,\n PopSessionItemResponse,\n SearchManagedMemoryEntriesRequest,\n SearchManagedMemoryEntriesResponse,\n Session,\n SessionItem,\n SessionStore,\n UpdateManagedMemoryEntryRequest,\n UpdateManagedMemoryStoreRequest,\n UpdateSessionRequest,\n UpdateSessionStoreRequest,\n} from './model';\nimport {\n marshalAppendSessionItemsRequestSchema,\n marshalClearSessionItemsRequestSchema,\n marshalExtractMemoriesRequestSchema,\n marshalForkSessionRequestSchema,\n marshalManagedMemoryEntrySchema,\n marshalManagedMemoryStoreSchema,\n marshalPopSessionItemRequestSchema,\n marshalSearchManagedMemoryEntriesRequestSchema,\n marshalSessionSchema,\n marshalSessionStoreSchema,\n unmarshalAppendSessionItemsResponseSchema,\n unmarshalClearSessionItemsResponseSchema,\n unmarshalExtractMemoriesResponseSchema,\n unmarshalForkSessionResponseSchema,\n unmarshalListManagedMemoryEntriesResponseSchema,\n unmarshalListManagedMemoryStoresResponseSchema,\n unmarshalListSessionItemsResponseSchema,\n unmarshalListSessionStoresResponseSchema,\n unmarshalListSessionsResponseSchema,\n unmarshalManagedMemoryEntrySchema,\n unmarshalManagedMemoryStoreSchema,\n unmarshalPopSessionItemResponseSchema,\n unmarshalSearchManagedMemoryEntriesResponseSchema,\n unmarshalSessionSchema,\n unmarshalSessionStoreSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class AgentKitClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /** Appends items to a session. */\n async appendSessionItems(\n req: AppendSessionItemsRequest,\n options?: CallOptions\n ): Promise<AppendSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:append`;\n const body = marshalRequest(req, marshalAppendSessionItemsRequestSchema);\n let resp: AppendSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalAppendSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Clears all items from a session. */\n async clearSessionItems(\n req: ClearSessionItemsRequest,\n options?: CallOptions\n ): Promise<ClearSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:clear`;\n const body = marshalRequest(req, marshalClearSessionItemsRequestSchema);\n let resp: ClearSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalClearSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Creates a managed memory entry using exclusive-create semantics. Callers may choose the entry\n * ID; the service generates one when it is omitted. Returns `ALREADY_EXISTS` when an entry with\n * the same actor, session, and path already exists. Omitted `session_id` is its own uniqueness\n * key: two omitted-session entries with the same actor and path conflict, but an omitted-session\n * entry does not conflict with a session-scoped entry at the same actor and path.\n */\n async createMemory(\n req: CreateManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries`;\n const params = new URLSearchParams();\n if (req.managedMemoryEntryId !== undefined) {\n params.append('managed_memory_entry_id', req.managedMemoryEntryId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryEntry,\n marshalManagedMemoryEntrySchema\n );\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a managed memory store in the caller's workspace. */\n async createMemoryStore(\n req: CreateManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/memory-stores`;\n const params = new URLSearchParams();\n if (req.managedMemoryStoreId !== undefined) {\n params.append('managed_memory_store_id', req.managedMemoryStoreId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryStore,\n marshalManagedMemoryStoreSchema\n );\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a session within a session store. */\n async createSession(\n req: CreateSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions`;\n const params = new URLSearchParams();\n if (req.sessionId !== undefined) {\n params.append('session_id', req.sessionId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.session, marshalSessionSchema);\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a session store. */\n async createSessionStore(\n req: CreateSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/session-stores`;\n const params = new URLSearchParams();\n if (req.sessionStoreId !== undefined) {\n params.append('session_store_id', req.sessionStoreId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.sessionStore, marshalSessionStoreSchema);\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Deletes a managed memory entry by resource name. Returns `NOT_FOUND` when the entry does not\n * exist in the caller's workspace.\n */\n async deleteMemory(\n req: DeleteManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a managed memory store by resource name. Returns `NOT_FOUND` when the store does not\n * exist in the caller's workspace.\n */\n async deleteMemoryStore(\n req: DeleteManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a session, its items, and any descendant sessions recursively. Independently retained\n * memory is not deleted.\n */\n async deleteSession(\n req: DeleteSessionRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a session store, its sessions and items, and its service-managed storage. Memory entries\n * retained by a separate Memory Store are not deleted.\n */\n async deleteSessionStore(\n req: DeleteSessionStoreRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Synchronously extracts memories from a single session into the given memory store, returning\n * the entries that were written.\n */\n async extractMemories(\n req: ExtractMemoriesRequest,\n options?: CallOptions\n ): Promise<ExtractMemoriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.sessionStore ?? ''}/sessions/${req.sessionId ?? ''}/extractions`;\n const body = marshalRequest(req, marshalExtractMemoriesRequestSchema);\n let resp: ExtractMemoriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalExtractMemoriesResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Forks a session into an independent top-level copy. */\n async forkSession(\n req: ForkSessionRequest,\n options?: CallOptions\n ): Promise<ForkSessionResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions:fork`;\n const body = marshalRequest(req, marshalForkSessionRequestSchema);\n let resp: ForkSessionResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalForkSessionResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Retrieves a managed memory entry by resource name. `view` controls whether the response\n * includes memory content. Returns `NOT_FOUND` when the entry does not exist in the caller's\n * workspace.\n */\n async getMemory(\n req: GetManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.view !== undefined) {\n params.append('view', req.view);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Retrieves a managed memory store by resource name. Returns `NOT_FOUND` when the store does not\n * exist in the caller's workspace.\n */\n async getMemoryStore(\n req: GetManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a session by resource name. */\n async getSession(\n req: GetSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a session store by resource name. */\n async getSessionStore(\n req: GetSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Lists managed memory entries for one actor. An exact `path` filters entries across sessions,\n * ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor\n * partition. `view` controls whether each returned entry includes memory content.\n */\n async listMemories(\n req: ListManagedMemoryEntriesRequest,\n options?: CallOptions\n ): Promise<ListManagedMemoryEntriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.actorId !== undefined) {\n params.append('actor_id', req.actorId);\n }\n if (req.pathPrefix !== undefined) {\n params.append('path_prefix', req.pathPrefix);\n }\n if (req.sessionId !== undefined) {\n params.append('session_id', req.sessionId);\n }\n if (req.view !== undefined) {\n params.append('view', req.view);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListManagedMemoryEntriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListManagedMemoryEntriesResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listMemoriesIter(\n req: ListManagedMemoryEntriesRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryEntry> {\n const pageReq: ListManagedMemoryEntriesRequest = {...req};\n for (;;) {\n const resp = await this.listMemories(pageReq, options);\n for (const item of resp.managedMemoryEntries ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists managed memory stores in the caller's workspace. */\n async listMemoryStores(\n req: ListManagedMemoryStoresRequest,\n options?: CallOptions\n ): Promise<ListManagedMemoryStoresResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/memory-stores`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListManagedMemoryStoresResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListManagedMemoryStoresResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listMemoryStoresIter(\n req: ListManagedMemoryStoresRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryStore> {\n const pageReq: ListManagedMemoryStoresRequest = {...req};\n for (;;) {\n const resp = await this.listMemoryStores(pageReq, options);\n for (const item of resp.managedMemoryStores ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists items in a session. */\n async listSessionItems(\n req: ListSessionItemsRequest,\n options?: CallOptions\n ): Promise<ListSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.orderBy !== undefined) {\n params.append('order_by', req.orderBy);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionItemsIter(\n req: ListSessionItemsRequest,\n options?: CallOptions\n ): AsyncGenerator<SessionItem> {\n const pageReq: ListSessionItemsRequest = {...req};\n for (;;) {\n const resp = await this.listSessionItems(pageReq, options);\n for (const item of resp.sessionItems ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists session stores. */\n async listSessionStores(\n req: ListSessionStoresRequest,\n options?: CallOptions\n ): Promise<ListSessionStoresResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/session-stores`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionStoresResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionStoresResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionStoresIter(\n req: ListSessionStoresRequest,\n options?: CallOptions\n ): AsyncGenerator<SessionStore> {\n const pageReq: ListSessionStoresRequest = {...req};\n for (;;) {\n const resp = await this.listSessionStores(pageReq, options);\n for (const item of resp.sessionStores ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists sessions within a session store. */\n async listSessions(\n req: ListSessionsRequest,\n options?: CallOptions\n ): Promise<ListSessionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.filter !== undefined) {\n params.append('filter', req.filter);\n }\n if (req.orderBy !== undefined) {\n params.append('order_by', req.orderBy);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionsIter(\n req: ListSessionsRequest,\n options?: CallOptions\n ): AsyncGenerator<Session> {\n const pageReq: ListSessionsRequest = {...req};\n for (;;) {\n const resp = await this.listSessions(pageReq, options);\n for (const item of resp.sessions ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Pops the newest item from a session. */\n async popSessionItem(\n req: PopSessionItemRequest,\n options?: CallOptions\n ): Promise<PopSessionItemResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:pop`;\n const body = marshalRequest(req, marshalPopSessionItemRequestSchema);\n let resp: PopSessionItemResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalPopSessionItemResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Searches managed memory entries by text query for one actor. Returns matching entries and\n * scores ranked by relevance; `view` controls whether each returned entry includes content.\n */\n async searchMemories(\n req: SearchManagedMemoryEntriesRequest,\n options?: CallOptions\n ): Promise<SearchManagedMemoryEntriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries:search`;\n const body = marshalRequest(\n req,\n marshalSearchManagedMemoryEntriesRequestSchema\n );\n let resp: SearchManagedMemoryEntriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalSearchManagedMemoryEntriesResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *searchMemoriesIter(\n req: SearchManagedMemoryEntriesRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryEntrySearchResult> {\n const pageReq: SearchManagedMemoryEntriesRequest = {...req};\n for (;;) {\n const resp = await this.searchMemories(pageReq, options);\n for (const item of resp.results ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates selected mutable fields on a managed memory entry. Identity fields are immutable. */\n async updateMemory(\n req: UpdateManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.managedMemoryEntry?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryEntry,\n marshalManagedMemoryEntrySchema\n );\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a managed memory store's description and metadata. */\n async updateMemoryStore(\n req: UpdateManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.managedMemoryStore?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryStore,\n marshalManagedMemoryStoreSchema\n );\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a session's mutable fields. */\n async updateSession(\n req: UpdateSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.session?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.session, marshalSessionSchema);\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a session store's description and metadata. */\n async updateSessionStore(\n req: UpdateSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.sessionStore?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.sessionStore, marshalSessionStoreSchema);\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AA6FA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,iBAAb,MAA4B;CAC1B,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,mBACJ,KACA,SACqC;E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AU;AAazC,UAAO,cALU,MAAM,gBAAgB;IACrC,SARc,iBACd,SACA,SACA,SACA,YACA,KACD;IAGC;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,4BAA4B;;AAE7D,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
@@ -0,0 +1,3 @@
1
+ import { AppendSessionItemsRequest, AppendSessionItemsResponse, ClearSessionItemsRequest, ClearSessionItemsResponse, CreateManagedMemoryEntryRequest, CreateManagedMemoryStoreRequest, CreateSessionRequest, CreateSessionStoreRequest, DeleteManagedMemoryEntryRequest, DeleteManagedMemoryStoreRequest, DeleteSessionRequest, DeleteSessionStoreRequest, ExtractMemoriesRequest, ExtractMemoriesResponse, ForkSessionRequest, ForkSessionResponse, GetManagedMemoryEntryRequest, GetManagedMemoryStoreRequest, GetSessionRequest, GetSessionStoreRequest, ListManagedMemoryEntriesRequest, ListManagedMemoryEntriesResponse, ListManagedMemoryStoresRequest, ListManagedMemoryStoresResponse, ListSessionItemsRequest, ListSessionItemsResponse, ListSessionStoresRequest, ListSessionStoresResponse, ListSessionsRequest, ListSessionsResponse, ManagedMemoryEntry, ManagedMemoryEntrySearchResult, ManagedMemoryEntrySourceType, ManagedMemoryEntryView, ManagedMemoryStore, PopSessionItemRequest, PopSessionItemResponse, SearchManagedMemoryEntriesRequest, SearchManagedMemoryEntriesResponse, Session, SessionItem, SessionStore, StorageBackend, StorageBackendType, UpdateManagedMemoryEntryRequest, UpdateManagedMemoryStoreRequest, UpdateSessionRequest, UpdateSessionStoreRequest, managedMemoryEntryFieldMask, managedMemoryStoreFieldMask, sessionFieldMask, sessionStoreFieldMask } from "./model.js";
2
+ import { AgentKitClient } from "./client.js";
3
+ export { AgentKitClient, type AppendSessionItemsRequest, type AppendSessionItemsResponse, type ClearSessionItemsRequest, type ClearSessionItemsResponse, type CreateManagedMemoryEntryRequest, type CreateManagedMemoryStoreRequest, type CreateSessionRequest, type CreateSessionStoreRequest, type DeleteManagedMemoryEntryRequest, type DeleteManagedMemoryStoreRequest, type DeleteSessionRequest, type DeleteSessionStoreRequest, type ExtractMemoriesRequest, type ExtractMemoriesResponse, type ForkSessionRequest, type ForkSessionResponse, type GetManagedMemoryEntryRequest, type GetManagedMemoryStoreRequest, type GetSessionRequest, type GetSessionStoreRequest, type ListManagedMemoryEntriesRequest, type ListManagedMemoryEntriesResponse, type ListManagedMemoryStoresRequest, type ListManagedMemoryStoresResponse, type ListSessionItemsRequest, type ListSessionItemsResponse, type ListSessionStoresRequest, type ListSessionStoresResponse, type ListSessionsRequest, type ListSessionsResponse, type ManagedMemoryEntry, type ManagedMemoryEntrySearchResult, ManagedMemoryEntrySourceType, ManagedMemoryEntryView, type ManagedMemoryStore, type PopSessionItemRequest, type PopSessionItemResponse, type SearchManagedMemoryEntriesRequest, type SearchManagedMemoryEntriesResponse, type Session, type SessionItem, type SessionStore, type StorageBackend, StorageBackendType, type UpdateManagedMemoryEntryRequest, type UpdateManagedMemoryStoreRequest, type UpdateSessionRequest, type UpdateSessionStoreRequest, managedMemoryEntryFieldMask, managedMemoryStoreFieldMask, sessionFieldMask, sessionStoreFieldMask };
@@ -0,0 +1,4 @@
1
+ import { ManagedMemoryEntrySourceType, ManagedMemoryEntryView, StorageBackendType, managedMemoryEntryFieldMask, managedMemoryStoreFieldMask, sessionFieldMask, sessionStoreFieldMask } from "./model.js";
2
+ import { AgentKitClient } from "./client.js";
3
+
4
+ export { AgentKitClient, ManagedMemoryEntrySourceType, ManagedMemoryEntryView, StorageBackendType, managedMemoryEntryFieldMask, managedMemoryStoreFieldMask, sessionFieldMask, sessionStoreFieldMask };