@archastro/sdk 0.7.0 → 0.8.0
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.
- package/dist/auth.d.ts +5 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +7 -5
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_activity_feed_channel.js +2 -2
- package/dist/channels/api_activity_feed_channel.js.map +1 -1
- package/dist/channels/api_chat_channel.js +2 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/channels/api_object_channel.d.ts +13 -2
- package/dist/channels/api_object_channel.d.ts.map +1 -1
- package/dist/channels/api_object_channel.js +21 -6
- package/dist/channels/api_object_channel.js.map +1 -1
- package/dist/channels/api_tasks_channel.d.ts +30 -0
- package/dist/channels/api_tasks_channel.d.ts.map +1 -0
- package/dist/channels/api_tasks_channel.js +45 -0
- package/dist/channels/api_tasks_channel.js.map +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +66 -52
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +7 -2
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +8 -8
- package/dist/types/artifacts.js +2 -2
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +68 -10
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +22 -2
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +18446 -3559
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +2 -2
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +12646 -2316
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +372 -80
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +22 -10
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +4 -2
- package/dist/types/config.js.map +1 -1
- package/dist/types/device.d.ts +60 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/device.js +25 -0
- package/dist/types/device.js.map +1 -0
- package/dist/types/extractions.d.ts +452 -0
- package/dist/types/extractions.d.ts.map +1 -0
- package/dist/types/extractions.js +52 -0
- package/dist/types/extractions.js.map +1 -0
- package/dist/types/image.js +2 -2
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +5 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.js +2 -2
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +2 -2
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +117 -0
- package/dist/types/oauth.d.ts.map +1 -0
- package/dist/types/oauth.js +21 -0
- package/dist/types/oauth.js.map +1 -0
- package/dist/types/teams.d.ts +2402 -242
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +2 -2
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +1419 -328
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +18 -17
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +2 -2
- package/dist/types/users.js +2 -2
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +84 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +2 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.js +2 -2
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.js +2 -2
- package/dist/v1/resources/agent_env_vars.js.map +1 -1
- package/dist/v1/resources/agent_health_actions.js +2 -2
- package/dist/v1/resources/agent_health_actions.js.map +1 -1
- package/dist/v1/resources/agent_installations.d.ts +2 -2
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +3 -3
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +16 -1
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -1
- package/dist/v1/resources/agent_routine_runs.js +16 -2
- package/dist/v1/resources/agent_routine_runs.js.map +1 -1
- package/dist/v1/resources/agent_routines.d.ts +47 -3
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +42 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +14 -2
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +14 -3
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.js +2 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +2 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +3 -3
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +152 -35
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +148 -42
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +81 -40
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +52 -17
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.js +2 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +41 -6
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +47 -8
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +14 -1
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +15 -3
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.js +2 -2
- package/dist/v1/resources/bug_reports.js.map +1 -1
- package/dist/v1/resources/config.d.ts +3 -0
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +2 -2
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.js +2 -2
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/extractions.d.ts +50 -0
- package/dist/v1/resources/extractions.d.ts.map +1 -0
- package/dist/v1/resources/extractions.js +48 -0
- package/dist/v1/resources/extractions.js.map +1 -0
- package/dist/v1/resources/files.d.ts +88 -1
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +86 -3
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +5 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +7 -2
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.js +2 -2
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.js +2 -2
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +33 -1
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_documents.js +25 -2
- package/dist/v1/resources/knowledge_documents.js.map +1 -1
- package/dist/v1/resources/knowledge_ingestions.d.ts +16 -0
- package/dist/v1/resources/knowledge_ingestions.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_ingestions.js +21 -0
- package/dist/v1/resources/knowledge_ingestions.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +2 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +3 -2
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/kv.js +2 -2
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.js +2 -2
- package/dist/v1/resources/notification_preferences.js.map +1 -1
- package/dist/v1/resources/notifications.js +2 -2
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +115 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -0
- package/dist/v1/resources/oauth.js +112 -0
- package/dist/v1/resources/oauth.js.map +1 -0
- package/dist/v1/resources/orgs.js +2 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +25 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +24 -2
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solution_categories.js +2 -2
- package/dist/v1/resources/solution_categories.js.map +1 -1
- package/dist/v1/resources/solution_instances.d.ts +26 -0
- package/dist/v1/resources/solution_instances.d.ts.map +1 -0
- package/dist/v1/resources/solution_instances.js +35 -0
- package/dist/v1/resources/solution_instances.js.map +1 -0
- package/dist/v1/resources/solution_tags.js +2 -2
- package/dist/v1/resources/solution_tags.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +85 -1
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +67 -3
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/team_memberships.js +2 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +210 -4
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +16 -6
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +24 -4
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +9 -6
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +158 -42
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +121 -32
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +132 -1
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +4 -2
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +78 -0
- package/dist/v1/resources/work_items.d.ts.map +1 -0
- package/dist/v1/resources/work_items.js +86 -0
- package/dist/v1/resources/work_items.js.map +1 -0
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +17 -2
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 9ad87f4fbb55
|
|
4
4
|
export class AgentAgentComputerResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -14,7 +14,7 @@ export class AgentAgentComputerResource {
|
|
|
14
14
|
* returned.
|
|
15
15
|
* Requires an app-scoped API key. If the specified agent does not exist or does
|
|
16
16
|
* not belong to the app, the endpoint returns 404.
|
|
17
|
-
* @param agent - Agent
|
|
17
|
+
* @param agent - Agent IDs (`agi_...`). When provided, only computers belonging to these agents are returned. Multiple values are OR'd.
|
|
18
18
|
* @returns Object containing a `data` array of computer records.
|
|
19
19
|
*/
|
|
20
20
|
async list(agent) {
|
|
@@ -28,7 +28,7 @@ export class AgentAgentComputerResource {
|
|
|
28
28
|
* Requires an app-scoped API key. The agent identified by `agent` must belong
|
|
29
29
|
* to the same app. Supplying a `lookup_key` lets you retrieve this computer
|
|
30
30
|
* later without storing its ID — the key must be unique within the app.
|
|
31
|
-
* @param agent - Agent
|
|
31
|
+
* @param agent - Agent IDs (`agi_...`). When provided, only computers belonging to these agents are returned. Multiple values are OR'd.
|
|
32
32
|
* @param input - Request body.
|
|
33
33
|
* @param input.config - Provider-specific configuration for the computer. Supported keys vary by provider. A top-level `provider` takes precedence over `config.provider`.
|
|
34
34
|
* @param input.lookup_key - Stable, user-defined key for this computer. Must be unique within the app. Use it to look up the computer without storing its ID.
|
|
@@ -128,13 +128,13 @@ export class AgentAgentInstallationResource {
|
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* List available installation kinds
|
|
131
|
-
* Returns the
|
|
132
|
-
*
|
|
131
|
+
* Returns the publicly available installation kinds supported by the API. Use the
|
|
132
|
+
* returned `kind` values when calling the Create Installation endpoint.
|
|
133
133
|
* The list is platform-wide and does not vary by agent. The `agent` parameter is
|
|
134
134
|
* accepted for future per-agent filtering but is currently unused. The caller must
|
|
135
135
|
* have app scope to call this endpoint.
|
|
136
136
|
* @param agent - Agent ID (`agt_...`) whose installations you want to retrieve.
|
|
137
|
-
* @returns The list of
|
|
137
|
+
* @returns The list of publicly available installation kinds.
|
|
138
138
|
*/
|
|
139
139
|
async kinds(agent) {
|
|
140
140
|
return this.http.request(`/api/v1/agents/${agent}/agent_installations/kinds`);
|
|
@@ -157,7 +157,7 @@ export class AgentAgentToolResource {
|
|
|
157
157
|
* Use the `agent` filter to retrieve tools for a specific agent. Supplying an
|
|
158
158
|
* `agent` ID that does not belong to the authenticated app returns 404.
|
|
159
159
|
* Requires app scope.
|
|
160
|
-
* @param agent - Filter results to tools belonging to
|
|
160
|
+
* @param agent - Filter results to tools belonging to these agents (`agi_...`). Omit to return tools across all agents in the app. Multiple values are OR'd.
|
|
161
161
|
* @param params - Query parameters.
|
|
162
162
|
* @param params.kind - Filter by tool kind. One of `"builtin"` or `"custom"`. Omit to return tools of all kinds.
|
|
163
163
|
* @returns List of tools matching the supplied filters.
|
|
@@ -181,7 +181,7 @@ export class AgentAgentToolResource {
|
|
|
181
181
|
* For built-in tools that support multiple instances per agent (those whose
|
|
182
182
|
* catalog entry has a `multi_instance_mode`), supply `name_prefix` to
|
|
183
183
|
* namespace the LLM-facing tool names. Requires app scope.
|
|
184
|
-
* @param agent - Filter results to tools belonging to
|
|
184
|
+
* @param agent - Filter results to tools belonging to these agents (`agi_...`). Omit to return tools across all agents in the app. Multiple values are OR'd.
|
|
185
185
|
* @param input - Request body.
|
|
186
186
|
* @param input.async - When `true`, the tool executes asynchronously and the agent does not block waiting for a result. Applies to `"custom"` tools.
|
|
187
187
|
* @param input.builtin_tool_config - Configuration object for the built-in tool. Shape is defined by the catalog entry's `config_schema` for the chosen `builtin_tool_key`. Applies only to `"builtin"` tools.
|
|
@@ -202,6 +202,80 @@ export class AgentAgentToolResource {
|
|
|
202
202
|
return this.http.request(`/api/v1/agents/${agent}/agent_tools`, { method: "POST", body: input });
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
+
export class AgentWorkingMemoryResource {
|
|
206
|
+
http;
|
|
207
|
+
constructor(http) {
|
|
208
|
+
this.http = http;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* List working memory entries for an agent
|
|
212
|
+
* Returns a paginated list of working memory entries belonging to the specified
|
|
213
|
+
* agent. Entries are key-value pairs the agent stores for context between
|
|
214
|
+
* interactions. Results are ordered by creation time descending (newest first)
|
|
215
|
+
* and can be filtered with a substring search against the key name.
|
|
216
|
+
* Requires an app-scoped API key. The authenticated caller must have access to
|
|
217
|
+
* the app the agent belongs to. Returns 403 if the key is not app-scoped, and
|
|
218
|
+
* 404 if the agent does not exist within the accessible scope.
|
|
219
|
+
* @param agent - Agent ID (`agt_...`) whose working memory entries to retrieve.
|
|
220
|
+
* @param params - Query parameters.
|
|
221
|
+
* @param params.page - Page number to retrieve, starting at 1. Defaults to 1.
|
|
222
|
+
* @param params.pageSize - Number of entries to return per page. Defaults to 25.
|
|
223
|
+
* @param params.search - Substring filter applied to entry keys (case-insensitive). Omit to return all keys.
|
|
224
|
+
* @returns Paginated list of working memory entries for the agent.
|
|
225
|
+
*/
|
|
226
|
+
async list(agent, params) {
|
|
227
|
+
const query = {};
|
|
228
|
+
if (params?.page !== undefined) {
|
|
229
|
+
query["page"] = params?.page;
|
|
230
|
+
}
|
|
231
|
+
if (params?.pageSize !== undefined) {
|
|
232
|
+
query["page_size"] = params?.pageSize;
|
|
233
|
+
}
|
|
234
|
+
if (params?.search !== undefined) {
|
|
235
|
+
query["search"] = params?.search;
|
|
236
|
+
}
|
|
237
|
+
return this.http.request(`/api/v1/agents/${agent}/agent_working_memory`, { query });
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Delete a working memory entry
|
|
241
|
+
* Permanently deletes a working memory entry from the agent. This action is
|
|
242
|
+
* irreversible. Expired entries can also be deleted — they are hidden from
|
|
243
|
+
* list results but persist until overwritten or deleted.
|
|
244
|
+
* Requires an app-scoped API key. The authenticated caller must be able to
|
|
245
|
+
* modify the agent that owns the entry. Returns 403 if the key is not
|
|
246
|
+
* app-scoped or the caller lacks modify access, and 404 if the agent or entry
|
|
247
|
+
* does not exist within the accessible scope.
|
|
248
|
+
* @param agent - Agent ID (`agt_...`) whose working memory entries to retrieve.
|
|
249
|
+
* @param entry - Working memory entry ID (`amm_...`) to delete.
|
|
250
|
+
* @returns Empty body. Returns HTTP 204 on success.
|
|
251
|
+
*/
|
|
252
|
+
async delete(agent, entry) {
|
|
253
|
+
await this.http.request(`/api/v1/agents/${agent}/agent_working_memory/${entry}`, { method: "DELETE" });
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Update a working memory entry
|
|
257
|
+
* Updates the value and/or expiry of an existing working memory entry. Only
|
|
258
|
+
* the fields you supply are changed; omitted fields retain their current
|
|
259
|
+
* values. The entry `key` cannot be changed after creation — delete the entry
|
|
260
|
+
* and let the agent (or a future create call) write a new one instead.
|
|
261
|
+
* Pass `expires_at` as `null` to remove the expiry so the entry no longer
|
|
262
|
+
* expires. Expired entries can still be updated; they stay hidden from list
|
|
263
|
+
* results until their expiry is in the future again.
|
|
264
|
+
* Requires an app-scoped API key. The authenticated caller must be able to
|
|
265
|
+
* modify the agent that owns the entry. Returns 403 if the key is not
|
|
266
|
+
* app-scoped or the caller lacks modify access, and 404 if the agent or entry
|
|
267
|
+
* does not exist within the accessible scope.
|
|
268
|
+
* @param agent - Agent ID (`agt_...`) whose working memory entries to retrieve.
|
|
269
|
+
* @param entry - Working memory entry ID (`amm_...`) to update.
|
|
270
|
+
* @param input - Request body.
|
|
271
|
+
* @param input.expires_at - New expiry for the entry (ISO 8601). Pass `null` to remove the expiry so the entry never expires. Omit to keep the current expiry.
|
|
272
|
+
* @param input.value - Replacement string value to store under the entry's key. Maximum 65,536 characters.
|
|
273
|
+
* @returns The updated working memory entry.
|
|
274
|
+
*/
|
|
275
|
+
async update(agent, entry, input) {
|
|
276
|
+
return this.http.request(`/api/v1/agents/${agent}/agent_working_memory/${entry}`, { method: "PATCH", body: input });
|
|
277
|
+
}
|
|
278
|
+
}
|
|
205
279
|
export class ScheduleResource {
|
|
206
280
|
http;
|
|
207
281
|
constructor(http) {
|
|
@@ -241,20 +315,75 @@ export class ScheduleResource {
|
|
|
241
315
|
return this.http.request(`/api/v1/agents/${agent}/schedules/${schedule}`);
|
|
242
316
|
}
|
|
243
317
|
}
|
|
318
|
+
export class AgentWorkItemResource {
|
|
319
|
+
http;
|
|
320
|
+
constructor(http) {
|
|
321
|
+
this.http = http;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* List active workflow work available to the viewer
|
|
325
|
+
* Lists queued, claimed, and running external work yielded by durable workflows.
|
|
326
|
+
* The top-level collection includes work for every agent the viewer can execute;
|
|
327
|
+
* the agent-nested collection limits results to that agent. This discovery
|
|
328
|
+
* response never includes lease tokens. Use the agent claim endpoint to acquire
|
|
329
|
+
* new work or resume a saved lease.
|
|
330
|
+
* @param agent - Agent ID or lookup key.
|
|
331
|
+
* @param params - Query parameters.
|
|
332
|
+
* @param params.execution - Optional durable execution ID filter.
|
|
333
|
+
* @param params.limit - Maximum work items per page. Defaults to 50; maximum is 100.
|
|
334
|
+
* @param params.afterCursor - Opaque cursor for the next page of older queued work.
|
|
335
|
+
* @returns Successful response
|
|
336
|
+
*/
|
|
337
|
+
async list(agent, params) {
|
|
338
|
+
const query = {};
|
|
339
|
+
if (params?.execution !== undefined) {
|
|
340
|
+
query["execution"] = params?.execution;
|
|
341
|
+
}
|
|
342
|
+
if (params?.limit !== undefined) {
|
|
343
|
+
query["limit"] = params?.limit;
|
|
344
|
+
}
|
|
345
|
+
if (params?.afterCursor !== undefined) {
|
|
346
|
+
query["after_cursor"] = params?.afterCursor;
|
|
347
|
+
}
|
|
348
|
+
return this.http.request(`/api/v1/agents/${agent}/work_items`, { query });
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Claim or resume workflow work for an agent
|
|
352
|
+
* Atomically claims the oldest queued or lease-expired item. To resume after a
|
|
353
|
+
* harness restart, pass both the saved `work_item` and the same `lease_owner`;
|
|
354
|
+
* the server refreshes that active lease without incrementing its attempt.
|
|
355
|
+
* Returns `data: null` when no eligible item exists, including when another
|
|
356
|
+
* lease owns the explicitly requested item.
|
|
357
|
+
* @param agent - Agent ID or lookup key.
|
|
358
|
+
* @param input - Request body.
|
|
359
|
+
* @param input.execution - Optional durable execution ID filter.
|
|
360
|
+
* @param input.lease_owner - Caller-generated random UUID lease token.
|
|
361
|
+
* @param input.lease_seconds - Lease duration from 15 through 3600 seconds. Defaults to 300.
|
|
362
|
+
* @param input.work_item - Saved work item ID to resume or reclaim.
|
|
363
|
+
* @returns Successful response
|
|
364
|
+
*/
|
|
365
|
+
async claim(agent, input) {
|
|
366
|
+
return this.http.request(`/api/v1/agents/${agent}/work_items/claim`, { method: "POST", body: input });
|
|
367
|
+
}
|
|
368
|
+
}
|
|
244
369
|
export class AgentResource {
|
|
245
370
|
http;
|
|
246
371
|
agent_computers;
|
|
247
372
|
agent_env_vars;
|
|
248
373
|
agent_installations;
|
|
249
374
|
agent_tools;
|
|
375
|
+
agent_working_memory;
|
|
250
376
|
schedules;
|
|
377
|
+
work_items;
|
|
251
378
|
constructor(http) {
|
|
252
379
|
this.http = http;
|
|
253
380
|
this.agent_computers = new AgentAgentComputerResource(http);
|
|
254
381
|
this.agent_env_vars = new AgentAgentEnvVarResource(http);
|
|
255
382
|
this.agent_installations = new AgentAgentInstallationResource(http);
|
|
256
383
|
this.agent_tools = new AgentAgentToolResource(http);
|
|
384
|
+
this.agent_working_memory = new AgentWorkingMemoryResource(http);
|
|
257
385
|
this.schedules = new ScheduleResource(http);
|
|
386
|
+
this.work_items = new AgentWorkItemResource(http);
|
|
258
387
|
}
|
|
259
388
|
/**
|
|
260
389
|
* List agents
|
|
@@ -319,6 +448,7 @@ export class AgentResource {
|
|
|
319
448
|
* for the target app.
|
|
320
449
|
* @param input - Request body.
|
|
321
450
|
* @param input.acl - Access control list controlling which users, teams, or orgs can read or manage this agent.
|
|
451
|
+
* @param input.description - Human-readable description of what the agent does.
|
|
322
452
|
* @param input.email - Email address assigned to the agent. Used as the agent's contact identity.
|
|
323
453
|
* @param input.identity - System-prompt identity string describing who the agent is. Passed verbatim to the model on each conversation turn.
|
|
324
454
|
* @param input.lookup_key - Stable, unique slug used to look up this agent by name instead of ID. Must be unique within the owning app or org.
|
|
@@ -374,6 +504,7 @@ export class AgentResource {
|
|
|
374
504
|
* @param agent - ID (`agi_...`) or `lookup_key` of the agent to update.
|
|
375
505
|
* @param input - Request body.
|
|
376
506
|
* @param input.acl - Replacement access control list. Fully replaces the existing ACL.
|
|
507
|
+
* @param input.description - New description of what the agent does. Pass an empty string to clear it.
|
|
377
508
|
* @param input.email - New email address for the agent.
|
|
378
509
|
* @param input.identity - Replacement identity system-prompt string describing who the agent is.
|
|
379
510
|
* @param input.lookup_key - New `lookup_key` slug. Must be unique within the owning app or org.
|
|
@@ -441,6 +572,7 @@ export class AgentResource {
|
|
|
441
572
|
* @param input.event_type - Event type that triggers this routine. Deprecated — use `event_config` instead.
|
|
442
573
|
* @param input.handler_type - Execution model for this routine. One of `"workflow_graph"`, `"script"`, `"preset"`, or `"chain"`.
|
|
443
574
|
* @param input.lookup_key - Stable, unique key you assign to this routine for deterministic lookup. Must be unique within the app.
|
|
575
|
+
* @param input.message_policy - Visibility and explicit recipient selection for messages emitted by the routine.
|
|
444
576
|
* @param input.metadata - Arbitrary key-value metadata you can attach to the routine. Not interpreted by the platform.
|
|
445
577
|
* @param input.name - Human-readable display name for the routine.
|
|
446
578
|
* @param input.preset_config - Configuration passed to the preset at runtime. Used when `handler_type` is `"preset"`.
|
|
@@ -450,40 +582,12 @@ export class AgentResource {
|
|
|
450
582
|
* @param input.status - Initial lifecycle status. One of `"draft"` or `"active"`. Defaults to `"draft"`.
|
|
451
583
|
* @param input.steps - Ordered list of steps for a chain handler. Required when `handler_type` is `"chain"`; must be omitted or empty otherwise. Each step must have exactly one handler body field (`preset_name`, `script`, or `config`) matching that step's `handler_type`.
|
|
452
584
|
* @param input.trigger_context - Context in which the routine is triggered. One of `"chat_session"` or `"event"`. Defaults to `"event"`.
|
|
585
|
+
* @param input.user - Optional co-owner user ID (`usr_...`). When set, that user shares authority over this routine (view/modify/delete) without needing to administer the parent agent. Must be supplied explicitly — the caller's identity is never auto-stamped as co-owner.
|
|
453
586
|
* @returns The newly created routine.
|
|
454
587
|
*/
|
|
455
588
|
async agentRoutines(agent, input) {
|
|
456
589
|
return this.http.request(`/api/v1/agents/${agent}/agent_routines`, { method: "POST", body: input });
|
|
457
590
|
}
|
|
458
|
-
/**
|
|
459
|
-
* List working memory entries for an agent
|
|
460
|
-
* Returns a paginated list of working memory entries belonging to the specified
|
|
461
|
-
* agent. Entries are key-value pairs the agent stores for context between
|
|
462
|
-
* interactions. Results are ordered by creation time descending (newest first)
|
|
463
|
-
* and can be filtered with a substring search against the key name.
|
|
464
|
-
* Requires an app-scoped API key. The authenticated caller must have access to
|
|
465
|
-
* the app the agent belongs to. Returns 403 if the key is not app-scoped, and
|
|
466
|
-
* 404 if the agent does not exist within the accessible scope.
|
|
467
|
-
* @param agent - Agent ID (`agt_...`) whose working memory entries to retrieve.
|
|
468
|
-
* @param params - Query parameters.
|
|
469
|
-
* @param params.page - Page number to retrieve, starting at 1. Defaults to 1.
|
|
470
|
-
* @param params.pageSize - Number of entries to return per page. Defaults to 25.
|
|
471
|
-
* @param params.search - Substring filter applied to entry keys (case-insensitive). Omit to return all keys.
|
|
472
|
-
* @returns Paginated list of working memory entries for the agent.
|
|
473
|
-
*/
|
|
474
|
-
async agentWorkingMemory(agent, params) {
|
|
475
|
-
const query = {};
|
|
476
|
-
if (params?.page !== undefined) {
|
|
477
|
-
query["page"] = params?.page;
|
|
478
|
-
}
|
|
479
|
-
if (params?.pageSize !== undefined) {
|
|
480
|
-
query["page_size"] = params?.pageSize;
|
|
481
|
-
}
|
|
482
|
-
if (params?.search !== undefined) {
|
|
483
|
-
query["search"] = params?.search;
|
|
484
|
-
}
|
|
485
|
-
return this.http.request(`/api/v1/agents/${agent}/agent_working_memory`, { query });
|
|
486
|
-
}
|
|
487
591
|
/**
|
|
488
592
|
* Export an agent as an AgentTemplate
|
|
489
593
|
* Reconstructs an AgentTemplate config from a deployed agent and all of its
|
|
@@ -543,6 +647,7 @@ export class AgentResource {
|
|
|
543
647
|
* @param agent - ID (`agi_...`) or `lookup_key` of the agent whose knowledge base to search.
|
|
544
648
|
* @param input - Request body.
|
|
545
649
|
* @param input.max_results - Maximum total results to return across all kinds. Chunks and documents are ranked together and the list is capped at this value. Defaults to `20`; maximum is `100`.
|
|
650
|
+
* @param input.min_similarity - Cosine-similarity floor for the vector leg, 0.0-1.0, applied to both chunk and document results. Candidates below it are discarded before ranking, so a high value trades recall for precision. Pass `0.0` to disable the floor when a missed match costs more than a weak one — note that with no floor every query returns results, so an empty response can no longer be read as "no match". Omit to use the default.
|
|
546
651
|
* @param input.mode - Retrieval strategy. One of `"hybrid"` (default), `"vector"`, or `"fulltext"`.
|
|
547
652
|
* @param input.query - Natural-language search query used to retrieve relevant knowledge items.
|
|
548
653
|
* @param input.recency_days - When set, restricts results to items indexed within the last N days.
|
|
@@ -564,7 +669,7 @@ export class AgentResource {
|
|
|
564
669
|
* @param agent - Agent ID (`agt_...`). The thread will be owned by this agent.
|
|
565
670
|
* @param input - Request body.
|
|
566
671
|
* @param input.skip_welcome_message - When `true`, suppresses the automatic welcome message that the platform sends when a new thread is created. Defaults to `false`.
|
|
567
|
-
* @param input.thread - Attributes for the new thread.
|
|
672
|
+
* @param input.thread - Attributes for the new thread. See ThreadCreateParams for available fields.
|
|
568
673
|
* @returns The newly created thread.
|
|
569
674
|
*/
|
|
570
675
|
async threads(agent, input) {
|
|
@@ -582,14 +687,15 @@ export class AgentResource {
|
|
|
582
687
|
* removes, noops) without writing any changes. The response includes a
|
|
583
688
|
* `review_fingerprint` you can pass back via `expected_review_fingerprint` on the
|
|
584
689
|
* live apply to guard against the diff changing between review and execution.
|
|
585
|
-
* Safe overrides (`name`, `email`, `phone_number`, `metadata`,
|
|
586
|
-
* `originator`, `model`) let you pin instance-specific values that
|
|
587
|
-
* overwritten by the template during the upgrade.
|
|
690
|
+
* Safe overrides (`name`, `description`, `email`, `phone_number`, `metadata`,
|
|
691
|
+
* `identity`, `originator`, `model`) let you pin instance-specific values that
|
|
692
|
+
* should not be overwritten by the template during the upgrade.
|
|
588
693
|
* The authenticated caller must own the agent or hold write permissions within its
|
|
589
694
|
* owning org or team. When called under a developer app scope, the caller must hold
|
|
590
695
|
* the app scope for the target app.
|
|
591
696
|
* @param agent - ID (`agi_...`) or `lookup_key` of the agent to upgrade.
|
|
592
697
|
* @param input - Request body.
|
|
698
|
+
* @param input.description - Instance-specific description override. Pins this value so the template upgrade does not overwrite it.
|
|
593
699
|
* @param input.dry_run - When `true`, computes and returns the full upgrade diff without persisting any changes. Use with `expected_review_fingerprint` to guard the live apply.
|
|
594
700
|
* @param input.email - Instance-specific email address override. Pins this value so the template upgrade does not overwrite it.
|
|
595
701
|
* @param input.expected_review_fingerprint - Stale-review guard. Pass the `review_fingerprint` returned by a prior `dry_run` response to ensure the diff has not changed between review and live apply. Returns an error if the fingerprint no longer matches.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/v1/resources/agents.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/v1/resources/agents.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,0BAA0B;IACjB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CAAC,KAAa;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,KAAK,kBAAkB,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,KAAkN;QAC5O,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,KAAK,kBAAkB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAED,MAAM,OAAO,wBAAwB;IACf;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CAAC,KAAa;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,KAAK,iBAAiB,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,KAAuE;QACjG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,KAAK,iBAAiB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EA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EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,KAAK,CAAC,OAAO,CAAC,KAAa,EAAE,KAA2a;QACtc,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,KAAK,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
-
import type { AIChatStreamDone, AIChatStreamError, AIChatStreamMessageComplete, AIChatStreamMessageDelta, AIChatStreamToolCallDelta, AIChatStreamToolResult, AICompletionResult, AIImageResult } from "../../types/ai.js";
|
|
3
|
-
export declare class
|
|
2
|
+
import type { AIChatStreamDone, AIChatStreamError, AIChatStreamMessageComplete, AIChatStreamMessageDelta, AIChatStreamThinkingDelta, AIChatStreamToolCallDelta, AIChatStreamToolResult, AICompletionResult, AIImageResult } from "../../types/ai.js";
|
|
3
|
+
export declare class StreamResource {
|
|
4
4
|
private http;
|
|
5
5
|
constructor(http: HttpClient);
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* usage is recorded against the authenticated app and organization.
|
|
14
|
-
* Supply `tools` and `tool_choice` to enable OpenAI-compatible function
|
|
15
|
-
* calling. Use `server_tools` to activate platform-managed tools such as
|
|
16
|
-
* search that run on the server side before the response is returned.
|
|
7
|
+
* Stream a chat completion
|
|
8
|
+
* Streams a chat completion over Server-Sent Events. Emits `thinking_delta` for
|
|
9
|
+
* supported reasoning models, `message_delta`, `message_complete`,
|
|
10
|
+
* `tool_call_*`, `tool_result`, and a terminal `done` (or `error`) event. Same
|
|
11
|
+
* request shape as the non-streaming completion endpoint; the app must have the
|
|
12
|
+
* `llm_calls` entitlement.
|
|
17
13
|
* @param input - Request body.
|
|
18
14
|
* @param input.context - Key-value map used to resolve template variables in message content. Omit if messages contain no templates.
|
|
19
15
|
* @param input.messages - Ordered list of conversation messages to send to the model.
|
|
20
16
|
* @param input.opts - Model and sampling configuration for this request.
|
|
21
|
-
* @
|
|
17
|
+
* @param input.session_id - Optional UUID grouping this and other completions under one session in the Developers dashboard. Pass the same value across requests to link them; omit to auto-generate a per-request session.
|
|
18
|
+
* @returns Server-Sent Events stream
|
|
22
19
|
*/
|
|
23
20
|
create(input: {
|
|
24
21
|
context?: Record<string, unknown> | undefined;
|
|
@@ -56,20 +53,53 @@ export declare class CompletionResource {
|
|
|
56
53
|
type: string;
|
|
57
54
|
}[] | undefined;
|
|
58
55
|
};
|
|
59
|
-
|
|
56
|
+
session_id?: string | undefined;
|
|
57
|
+
}): AsyncIterable<{
|
|
58
|
+
event: "done";
|
|
59
|
+
data: AIChatStreamDone;
|
|
60
|
+
} | {
|
|
61
|
+
event: "error";
|
|
62
|
+
data: AIChatStreamError;
|
|
63
|
+
} | {
|
|
64
|
+
event: "message_complete";
|
|
65
|
+
data: AIChatStreamMessageComplete;
|
|
66
|
+
} | {
|
|
67
|
+
event: "message_delta";
|
|
68
|
+
data: AIChatStreamMessageDelta;
|
|
69
|
+
} | {
|
|
70
|
+
event: "thinking_delta";
|
|
71
|
+
data: AIChatStreamThinkingDelta;
|
|
72
|
+
} | {
|
|
73
|
+
event: "tool_call_delta";
|
|
74
|
+
data: AIChatStreamToolCallDelta;
|
|
75
|
+
} | {
|
|
76
|
+
event: "tool_result";
|
|
77
|
+
data: AIChatStreamToolResult;
|
|
78
|
+
}>;
|
|
79
|
+
}
|
|
80
|
+
export declare class CompletionResource {
|
|
81
|
+
private http;
|
|
82
|
+
readonly stream: StreamResource;
|
|
83
|
+
constructor(http: HttpClient);
|
|
60
84
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
85
|
+
* Create a chat completion
|
|
86
|
+
* Sends a list of messages to the configured AI provider and returns a single
|
|
87
|
+
* completion. Use this endpoint when you want direct, low-level access to the
|
|
88
|
+
* underlying model without any workflow or agent orchestration.
|
|
89
|
+
* The authenticated app must have the `llm_calls` entitlement enabled on its
|
|
90
|
+
* plan. Requests that exceed the plan quota are rejected with `402`. Token
|
|
91
|
+
* usage is recorded against the authenticated app and organization.
|
|
92
|
+
* Supply `tools` and `tool_choice` to enable OpenAI-compatible function
|
|
93
|
+
* calling. Use `server_tools` to activate platform-managed tools such as
|
|
94
|
+
* search that run on the server side before the response is returned.
|
|
66
95
|
* @param input - Request body.
|
|
67
96
|
* @param input.context - Key-value map used to resolve template variables in message content. Omit if messages contain no templates.
|
|
68
97
|
* @param input.messages - Ordered list of conversation messages to send to the model.
|
|
69
98
|
* @param input.opts - Model and sampling configuration for this request.
|
|
70
|
-
* @
|
|
99
|
+
* @param input.session_id - Optional UUID grouping this and other completions under one session in the Developers dashboard. Pass the same value across requests to link them; omit to auto-generate a per-request session.
|
|
100
|
+
* @returns The completed AI response, including the generated message, finish reason, and token usage.
|
|
71
101
|
*/
|
|
72
|
-
|
|
102
|
+
create(input: {
|
|
73
103
|
context?: Record<string, unknown> | undefined;
|
|
74
104
|
messages: {
|
|
75
105
|
content?: string | undefined;
|
|
@@ -94,6 +124,7 @@ export declare class CompletionResource {
|
|
|
94
124
|
max_tokens?: number | undefined;
|
|
95
125
|
model: string;
|
|
96
126
|
server_tools?: Record<string, unknown>[] | undefined;
|
|
127
|
+
structured_output?: Record<string, unknown> | undefined;
|
|
97
128
|
temperature?: number | undefined;
|
|
98
129
|
tool_choice?: string | undefined;
|
|
99
130
|
tools?: {
|
|
@@ -105,25 +136,8 @@ export declare class CompletionResource {
|
|
|
105
136
|
type: string;
|
|
106
137
|
}[] | undefined;
|
|
107
138
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
data: AIChatStreamDone;
|
|
111
|
-
} | {
|
|
112
|
-
event: "error";
|
|
113
|
-
data: AIChatStreamError;
|
|
114
|
-
} | {
|
|
115
|
-
event: "message_complete";
|
|
116
|
-
data: AIChatStreamMessageComplete;
|
|
117
|
-
} | {
|
|
118
|
-
event: "message_delta";
|
|
119
|
-
data: AIChatStreamMessageDelta;
|
|
120
|
-
} | {
|
|
121
|
-
event: "tool_call_delta";
|
|
122
|
-
data: AIChatStreamToolCallDelta;
|
|
123
|
-
} | {
|
|
124
|
-
event: "tool_result";
|
|
125
|
-
data: AIChatStreamToolResult;
|
|
126
|
-
}>;
|
|
139
|
+
session_id?: string | undefined;
|
|
140
|
+
}): Promise<AICompletionResult>;
|
|
127
141
|
}
|
|
128
142
|
export declare class ChatResource {
|
|
129
143
|
private http;
|
|
@@ -141,6 +155,7 @@ export declare class ChatResource {
|
|
|
141
155
|
models(): Promise<{
|
|
142
156
|
data: {
|
|
143
157
|
capabilities: "image" | "search" | "thinking"[];
|
|
158
|
+
context_window?: number | null | undefined;
|
|
144
159
|
default: boolean;
|
|
145
160
|
id: string;
|
|
146
161
|
input_media_formats: string[];
|
|
@@ -149,6 +164,30 @@ export declare class ChatResource {
|
|
|
149
164
|
}[];
|
|
150
165
|
}>;
|
|
151
166
|
}
|
|
167
|
+
export declare class EmbeddingResource {
|
|
168
|
+
private http;
|
|
169
|
+
constructor(http: HttpClient);
|
|
170
|
+
/**
|
|
171
|
+
* Compare the embedding similarity of two texts
|
|
172
|
+
* Embeds both texts in one synchronous request using the platform's default
|
|
173
|
+
* embedding model, then returns their cosine similarity. The score uses the
|
|
174
|
+
* same `1 - cosine_distance` convention as context retrieval. A score near
|
|
175
|
+
* `1.0` indicates similar vector direction; lower scores indicate less similar
|
|
176
|
+
* text. This endpoint is intended for authenticated users interactively
|
|
177
|
+
* exploring how the platform's retrieval similarity behaves.
|
|
178
|
+
* @param input - Request body.
|
|
179
|
+
* @param input.text_a - First text to embed and compare.
|
|
180
|
+
* @param input.text_b - Second text to embed and compare.
|
|
181
|
+
* @returns Successful response
|
|
182
|
+
*/
|
|
183
|
+
similarityComparison(input: {
|
|
184
|
+
text_a: string;
|
|
185
|
+
text_b: string;
|
|
186
|
+
}): Promise<{
|
|
187
|
+
model: string;
|
|
188
|
+
similarity_score: number;
|
|
189
|
+
}>;
|
|
190
|
+
}
|
|
152
191
|
export declare class ImageResource {
|
|
153
192
|
private http;
|
|
154
193
|
constructor(http: HttpClient);
|
|
@@ -248,6 +287,7 @@ export declare class ImageResource {
|
|
|
248
287
|
models(): Promise<{
|
|
249
288
|
data: {
|
|
250
289
|
capabilities: "image" | "search" | "thinking"[];
|
|
290
|
+
context_window?: number | null | undefined;
|
|
251
291
|
default: boolean;
|
|
252
292
|
id: string;
|
|
253
293
|
input_media_formats: string[];
|
|
@@ -259,6 +299,7 @@ export declare class ImageResource {
|
|
|
259
299
|
export declare class AiResource {
|
|
260
300
|
private http;
|
|
261
301
|
readonly chat: ChatResource;
|
|
302
|
+
readonly embedding: EmbeddingResource;
|
|
262
303
|
readonly image: ImageResource;
|
|
263
304
|
constructor(http: HttpClient);
|
|
264
305
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/ai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/ai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,sBAAs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