@letta-ai/letta-client 1.0.0-alpha.16 → 1.0.0-alpha.17
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/CHANGELOG.md +15 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +962 -111
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +962 -111
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/blocks.d.mts +1 -15
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +1 -15
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/folders.d.mts +2 -7
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +2 -7
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/messages.d.mts +0 -10
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +0 -10
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/archives.d.mts +0 -6
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +0 -6
- package/resources/archives.d.ts.map +1 -1
- package/resources/folders/folders.d.mts +0 -6
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +0 -6
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +0 -10
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +0 -10
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.js.map +1 -1
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
- package/resources/models/embeddings.d.mts +1 -66
- package/resources/models/embeddings.d.mts.map +1 -1
- package/resources/models/embeddings.d.ts +1 -66
- package/resources/models/embeddings.d.ts.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +169 -109
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +169 -109
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/runs/runs.d.mts +0 -5
- package/resources/runs/runs.d.mts.map +1 -1
- package/resources/runs/runs.d.ts +0 -5
- package/resources/runs/runs.d.ts.map +1 -1
- package/resources/runs/runs.js.map +1 -1
- package/resources/runs/runs.mjs.map +1 -1
- package/resources/tools.d.mts +0 -4
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +0 -4
- package/resources/tools.d.ts.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/agents/agents.ts +1235 -69
- package/src/resources/agents/blocks.ts +1 -15
- package/src/resources/agents/folders.ts +2 -7
- package/src/resources/agents/messages.ts +0 -10
- package/src/resources/archives.ts +0 -6
- package/src/resources/folders/folders.ts +0 -6
- package/src/resources/index.ts +2 -0
- package/src/resources/mcp-servers/mcp-servers.ts +0 -10
- package/src/resources/models/embeddings.ts +1 -100
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +249 -153
- package/src/resources/runs/runs.ts +0 -5
- package/src/resources/tools.ts +0 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -78,21 +78,7 @@ export class Blocks extends APIResource {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* A Block represents a reserved section of the LLM's context window
|
|
82
|
-
* editable. `Block` objects contained in the `Memory` object, which is able to
|
|
83
|
-
* edit the Block values.
|
|
84
|
-
*
|
|
85
|
-
* Parameters: label (str): The label of the block (e.g. 'human', 'persona'). This
|
|
86
|
-
* defines a category for the block. value (str): The value of the block. This is
|
|
87
|
-
* the string that is represented in the context window. limit (int): The character
|
|
88
|
-
* limit of the block. is_template (bool): Whether the block is a template (e.g.
|
|
89
|
-
* saved human/persona options). Non-template blocks are not stored in the database
|
|
90
|
-
* and are ephemeral, while templated blocks are stored in the database. label
|
|
91
|
-
* (str): The label of the block (e.g. 'human', 'persona'). This defines a category
|
|
92
|
-
* for the block. template_name (str): The name of the block template (if it is a
|
|
93
|
-
* template). description (str): Description of the block. metadata (Dict):
|
|
94
|
-
* Metadata of the block. user_id (str): The unique identifier of the user
|
|
95
|
-
* associated with the block.
|
|
81
|
+
* A Block represents a reserved section of the LLM's context window.
|
|
96
82
|
*/
|
|
97
83
|
export interface Block {
|
|
98
84
|
/**
|
|
@@ -52,13 +52,8 @@ export class Folders extends APIResource {
|
|
|
52
52
|
export type FolderListResponsesArrayPage = ArrayPage<FolderListResponse>;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Representation of a source, which is a collection of
|
|
56
|
-
*
|
|
57
|
-
* Parameters: id (str): The ID of the source name (str): The name of the source.
|
|
58
|
-
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
59
|
-
* source. user_id (str): The ID of the user that created the source. metadata
|
|
60
|
-
* (dict): Metadata associated with the source. description (str): The description
|
|
61
|
-
* of the source.
|
|
55
|
+
* (Deprecated: Use Folder) Representation of a source, which is a collection of
|
|
56
|
+
* files and passages.
|
|
62
57
|
*/
|
|
63
58
|
export interface FolderListResponse {
|
|
64
59
|
/**
|
|
@@ -1362,16 +1362,6 @@ export interface RedactedReasoningContent {
|
|
|
1362
1362
|
* Representation of a run - a conversation or processing session for an agent.
|
|
1363
1363
|
* Runs track when agents process messages and maintain the relationship between
|
|
1364
1364
|
* agents, steps, and messages.
|
|
1365
|
-
*
|
|
1366
|
-
* Parameters: id (str): The unique identifier of the run (prefixed with 'run-').
|
|
1367
|
-
* status (JobStatus): The current status of the run. created_at (datetime): The
|
|
1368
|
-
* timestamp when the run was created. completed_at (datetime): The timestamp when
|
|
1369
|
-
* the run was completed. agent_id (str): The unique identifier of the agent
|
|
1370
|
-
* associated with the run. base_template_id (str): The base template ID that the
|
|
1371
|
-
* run belongs to. stop_reason (StopReasonType): The reason why the run was
|
|
1372
|
-
* stopped. background (bool): Whether the run was created in background mode.
|
|
1373
|
-
* metadata (dict): Additional metadata for the run. request_config
|
|
1374
|
-
* (LettaRequestConfig): The request configuration for the run.
|
|
1375
1365
|
*/
|
|
1376
1366
|
export interface Run {
|
|
1377
1367
|
/**
|
|
@@ -53,12 +53,6 @@ export type ArchivesArrayPage = ArrayPage<Archive>;
|
|
|
53
53
|
/**
|
|
54
54
|
* Representation of an archive - a collection of archival passages that can be
|
|
55
55
|
* shared between agents.
|
|
56
|
-
*
|
|
57
|
-
* Parameters: id (str): The unique identifier of the archive. name (str): The name
|
|
58
|
-
* of the archive. description (str): A description of the archive. organization_id
|
|
59
|
-
* (str): The organization this archive belongs to. created_at (datetime): The
|
|
60
|
-
* creation date of the archive. metadata (dict): Additional metadata for the
|
|
61
|
-
* archive.
|
|
62
56
|
*/
|
|
63
57
|
export interface Archive {
|
|
64
58
|
/**
|
|
@@ -66,12 +66,6 @@ export type FoldersArrayPage = ArrayPage<Folder>;
|
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Representation of a folder, which is a collection of files and passages.
|
|
69
|
-
*
|
|
70
|
-
* Parameters: id (str): The ID of the folder name (str): The name of the folder.
|
|
71
|
-
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
72
|
-
* folder. user_id (str): The ID of the user that created the folder. metadata
|
|
73
|
-
* (dict): Metadata associated with the folder. description (str): The description
|
|
74
|
-
* of the folder.
|
|
75
69
|
*/
|
|
76
70
|
export interface Folder {
|
|
77
71
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -302,16 +302,6 @@ export interface ToolExecutionResult {
|
|
|
302
302
|
* Representation of an agent's state. This is the state of the agent at a given
|
|
303
303
|
* time, and is persisted in the DB backend. The state has all the information
|
|
304
304
|
* needed to recreate a persisted agent.
|
|
305
|
-
*
|
|
306
|
-
* Parameters: id (str): The unique identifier of the agent. name (str): The name
|
|
307
|
-
* of the agent (must be unique to the user). created_at (datetime): The datetime
|
|
308
|
-
* the agent was created. message_ids (List[str]): The ids of the messages in the
|
|
309
|
-
* agent's in-context memory. memory (Memory): The in-context memory of the agent.
|
|
310
|
-
* tools (List[str]): The tools used by the agent. This includes any memory editing
|
|
311
|
-
* functions specified in `memory`. system (str): The system prompt used by the
|
|
312
|
-
* agent. llm_config (LLMConfig): The LLM configuration used by the agent.
|
|
313
|
-
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
314
|
-
* agent.
|
|
315
305
|
*/
|
|
316
306
|
agent_state?: AgentsAPI.AgentState | null;
|
|
317
307
|
|
|
@@ -19,106 +19,7 @@ export class Embeddings extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export type EmbeddingListResponse = Array<
|
|
23
|
-
|
|
24
|
-
export namespace EmbeddingListResponse {
|
|
25
|
-
export interface EmbeddingListResponseItem {
|
|
26
|
-
/**
|
|
27
|
-
* Display name for the model shown in UI
|
|
28
|
-
*/
|
|
29
|
-
display_name: string;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The dimension of the embedding
|
|
33
|
-
*/
|
|
34
|
-
embedding_dim: number;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
38
|
-
* the embedding model.
|
|
39
|
-
*/
|
|
40
|
-
embedding_endpoint_type:
|
|
41
|
-
| 'openai'
|
|
42
|
-
| 'anthropic'
|
|
43
|
-
| 'bedrock'
|
|
44
|
-
| 'google_ai'
|
|
45
|
-
| 'google_vertex'
|
|
46
|
-
| 'azure'
|
|
47
|
-
| 'groq'
|
|
48
|
-
| 'ollama'
|
|
49
|
-
| 'webui'
|
|
50
|
-
| 'webui-legacy'
|
|
51
|
-
| 'lmstudio'
|
|
52
|
-
| 'lmstudio-legacy'
|
|
53
|
-
| 'llamacpp'
|
|
54
|
-
| 'koboldcpp'
|
|
55
|
-
| 'vllm'
|
|
56
|
-
| 'hugging-face'
|
|
57
|
-
| 'mistral'
|
|
58
|
-
| 'together'
|
|
59
|
-
| 'pinecone';
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated Deprecated: Use 'name' field instead. Embedding model name.
|
|
63
|
-
*/
|
|
64
|
-
embedding_model: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The actual model name used by the provider
|
|
68
|
-
*/
|
|
69
|
-
name: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The name of the provider
|
|
73
|
-
*/
|
|
74
|
-
provider_name: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The type of the provider
|
|
78
|
-
*/
|
|
79
|
-
provider_type: ModelsAPI.ProviderType;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated Deprecated: The Azure deployment for the model.
|
|
83
|
-
*/
|
|
84
|
-
azure_deployment?: string | null;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @deprecated Deprecated: The Azure endpoint for the model.
|
|
88
|
-
*/
|
|
89
|
-
azure_endpoint?: string | null;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Deprecated: The Azure version for the model.
|
|
93
|
-
*/
|
|
94
|
-
azure_version?: string | null;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated Deprecated: The maximum batch size for processing embeddings.
|
|
98
|
-
*/
|
|
99
|
-
batch_size?: number;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @deprecated Deprecated: The chunk size of the embedding.
|
|
103
|
-
*/
|
|
104
|
-
embedding_chunk_size?: number | null;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated Deprecated: The endpoint for the model.
|
|
108
|
-
*/
|
|
109
|
-
embedding_endpoint?: string | null;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* The handle for this config, in the format provider/model-name.
|
|
113
|
-
*/
|
|
114
|
-
handle?: string | null;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Type of model (llm or embedding)
|
|
118
|
-
*/
|
|
119
|
-
model_type?: 'embedding';
|
|
120
|
-
}
|
|
121
|
-
}
|
|
22
|
+
export type EmbeddingListResponse = Array<ModelsAPI.EmbeddingModel>;
|
|
122
23
|
|
|
123
24
|
export declare namespace Embeddings {
|
|
124
25
|
export { type EmbeddingListResponse as EmbeddingListResponse };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as ModelsAPI from './models';
|
|
5
4
|
import * as EmbeddingsAPI from './embeddings';
|
|
6
5
|
import { EmbeddingListResponse, Embeddings } from './embeddings';
|
|
7
6
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -100,6 +99,103 @@ export interface EmbeddingConfig {
|
|
|
100
99
|
handle?: string | null;
|
|
101
100
|
}
|
|
102
101
|
|
|
102
|
+
export interface EmbeddingModel {
|
|
103
|
+
/**
|
|
104
|
+
* Display name for the model shown in UI
|
|
105
|
+
*/
|
|
106
|
+
display_name: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The dimension of the embedding
|
|
110
|
+
*/
|
|
111
|
+
embedding_dim: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
115
|
+
* the embedding model.
|
|
116
|
+
*/
|
|
117
|
+
embedding_endpoint_type:
|
|
118
|
+
| 'openai'
|
|
119
|
+
| 'anthropic'
|
|
120
|
+
| 'bedrock'
|
|
121
|
+
| 'google_ai'
|
|
122
|
+
| 'google_vertex'
|
|
123
|
+
| 'azure'
|
|
124
|
+
| 'groq'
|
|
125
|
+
| 'ollama'
|
|
126
|
+
| 'webui'
|
|
127
|
+
| 'webui-legacy'
|
|
128
|
+
| 'lmstudio'
|
|
129
|
+
| 'lmstudio-legacy'
|
|
130
|
+
| 'llamacpp'
|
|
131
|
+
| 'koboldcpp'
|
|
132
|
+
| 'vllm'
|
|
133
|
+
| 'hugging-face'
|
|
134
|
+
| 'mistral'
|
|
135
|
+
| 'together'
|
|
136
|
+
| 'pinecone';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated Deprecated: Use 'name' field instead. Embedding model name.
|
|
140
|
+
*/
|
|
141
|
+
embedding_model: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The actual model name used by the provider
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The name of the provider
|
|
150
|
+
*/
|
|
151
|
+
provider_name: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The type of the provider
|
|
155
|
+
*/
|
|
156
|
+
provider_type: ProviderType;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @deprecated Deprecated: The Azure deployment for the model.
|
|
160
|
+
*/
|
|
161
|
+
azure_deployment?: string | null;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated Deprecated: The Azure endpoint for the model.
|
|
165
|
+
*/
|
|
166
|
+
azure_endpoint?: string | null;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated Deprecated: The Azure version for the model.
|
|
170
|
+
*/
|
|
171
|
+
azure_version?: string | null;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @deprecated Deprecated: The maximum batch size for processing embeddings.
|
|
175
|
+
*/
|
|
176
|
+
batch_size?: number;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @deprecated Deprecated: The chunk size of the embedding.
|
|
180
|
+
*/
|
|
181
|
+
embedding_chunk_size?: number | null;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @deprecated Deprecated: The endpoint for the model.
|
|
185
|
+
*/
|
|
186
|
+
embedding_endpoint?: string | null;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The handle for this config, in the format provider/model-name.
|
|
190
|
+
*/
|
|
191
|
+
handle?: string | null;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Type of model (llm or embedding)
|
|
195
|
+
*/
|
|
196
|
+
model_type?: 'embedding';
|
|
197
|
+
}
|
|
198
|
+
|
|
103
199
|
/**
|
|
104
200
|
* Configuration for Language Model (LLM) connection and generation parameters.
|
|
105
201
|
*/
|
|
@@ -235,6 +331,155 @@ export interface LlmConfig {
|
|
|
235
331
|
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
236
332
|
}
|
|
237
333
|
|
|
334
|
+
export interface Model {
|
|
335
|
+
/**
|
|
336
|
+
* @deprecated Deprecated: Use 'max_context_window' field instead. The context
|
|
337
|
+
* window size for the model.
|
|
338
|
+
*/
|
|
339
|
+
context_window: number;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The maximum context window for the model
|
|
343
|
+
*/
|
|
344
|
+
max_context_window: number;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @deprecated Deprecated: Use 'name' field instead. LLM model name.
|
|
348
|
+
*/
|
|
349
|
+
model: string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
353
|
+
* the model.
|
|
354
|
+
*/
|
|
355
|
+
model_endpoint_type:
|
|
356
|
+
| 'openai'
|
|
357
|
+
| 'anthropic'
|
|
358
|
+
| 'google_ai'
|
|
359
|
+
| 'google_vertex'
|
|
360
|
+
| 'azure'
|
|
361
|
+
| 'groq'
|
|
362
|
+
| 'ollama'
|
|
363
|
+
| 'webui'
|
|
364
|
+
| 'webui-legacy'
|
|
365
|
+
| 'lmstudio'
|
|
366
|
+
| 'lmstudio-legacy'
|
|
367
|
+
| 'lmstudio-chatcompletions'
|
|
368
|
+
| 'llamacpp'
|
|
369
|
+
| 'koboldcpp'
|
|
370
|
+
| 'vllm'
|
|
371
|
+
| 'hugging-face'
|
|
372
|
+
| 'mistral'
|
|
373
|
+
| 'together'
|
|
374
|
+
| 'bedrock'
|
|
375
|
+
| 'deepseek'
|
|
376
|
+
| 'xai';
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* The actual model name used by the provider
|
|
380
|
+
*/
|
|
381
|
+
name: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The type of the provider
|
|
385
|
+
*/
|
|
386
|
+
provider_type: ProviderType;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @deprecated Deprecated: The framework compatibility type for the model.
|
|
390
|
+
*/
|
|
391
|
+
compatibility_type?: 'gguf' | 'mlx' | null;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* A human-friendly display name for the model.
|
|
395
|
+
*/
|
|
396
|
+
display_name?: string | null;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated Deprecated: Whether or not the model should use extended thinking if
|
|
400
|
+
* it is a 'reasoning' style model.
|
|
401
|
+
*/
|
|
402
|
+
enable_reasoner?: boolean;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @deprecated Deprecated: Positive values penalize new tokens based on their
|
|
406
|
+
* existing frequency in the text so far.
|
|
407
|
+
*/
|
|
408
|
+
frequency_penalty?: number | null;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* The handle for this config, in the format provider/model-name.
|
|
412
|
+
*/
|
|
413
|
+
handle?: string | null;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @deprecated Deprecated: Configurable thinking budget for extended thinking.
|
|
417
|
+
*/
|
|
418
|
+
max_reasoning_tokens?: number;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @deprecated Deprecated: The maximum number of tokens to generate.
|
|
422
|
+
*/
|
|
423
|
+
max_tokens?: number | null;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @deprecated Deprecated: The endpoint for the model.
|
|
427
|
+
*/
|
|
428
|
+
model_endpoint?: string | null;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Type of model (llm or embedding)
|
|
432
|
+
*/
|
|
433
|
+
model_type?: 'llm';
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @deprecated Deprecated: The wrapper for the model.
|
|
437
|
+
*/
|
|
438
|
+
model_wrapper?: string | null;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @deprecated Deprecated: If set to True, enables parallel tool calling.
|
|
442
|
+
*/
|
|
443
|
+
parallel_tool_calls?: boolean | null;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* @deprecated Deprecated: The provider category for the model.
|
|
447
|
+
*/
|
|
448
|
+
provider_category?: ProviderCategory | null;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* The provider name for the model.
|
|
452
|
+
*/
|
|
453
|
+
provider_name?: string | null;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @deprecated Deprecated: Puts 'inner_thoughts' as a kwarg in the function call.
|
|
457
|
+
*/
|
|
458
|
+
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @deprecated Deprecated: The reasoning effort to use when generating text
|
|
462
|
+
* reasoning models.
|
|
463
|
+
*/
|
|
464
|
+
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* @deprecated Deprecated: The temperature to use when generating text with the
|
|
468
|
+
* model.
|
|
469
|
+
*/
|
|
470
|
+
temperature?: number;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @deprecated Deprecated: The cost tier for the model (cloud only).
|
|
474
|
+
*/
|
|
475
|
+
tier?: string | null;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated Deprecated: Soft control for how verbose model output should be.
|
|
479
|
+
*/
|
|
480
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
481
|
+
}
|
|
482
|
+
|
|
238
483
|
export type ProviderCategory = 'base' | 'byok';
|
|
239
484
|
|
|
240
485
|
export type ProviderType =
|
|
@@ -256,158 +501,7 @@ export type ProviderType =
|
|
|
256
501
|
| 'vllm'
|
|
257
502
|
| 'xai';
|
|
258
503
|
|
|
259
|
-
export type ModelListResponse = Array<
|
|
260
|
-
|
|
261
|
-
export namespace ModelListResponse {
|
|
262
|
-
export interface ModelListResponseItem {
|
|
263
|
-
/**
|
|
264
|
-
* @deprecated Deprecated: Use 'max_context_window' field instead. The context
|
|
265
|
-
* window size for the model.
|
|
266
|
-
*/
|
|
267
|
-
context_window: number;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* The maximum context window for the model
|
|
271
|
-
*/
|
|
272
|
-
max_context_window: number;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* @deprecated Deprecated: Use 'name' field instead. LLM model name.
|
|
276
|
-
*/
|
|
277
|
-
model: string;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated Deprecated: Use 'provider_type' field instead. The endpoint type for
|
|
281
|
-
* the model.
|
|
282
|
-
*/
|
|
283
|
-
model_endpoint_type:
|
|
284
|
-
| 'openai'
|
|
285
|
-
| 'anthropic'
|
|
286
|
-
| 'google_ai'
|
|
287
|
-
| 'google_vertex'
|
|
288
|
-
| 'azure'
|
|
289
|
-
| 'groq'
|
|
290
|
-
| 'ollama'
|
|
291
|
-
| 'webui'
|
|
292
|
-
| 'webui-legacy'
|
|
293
|
-
| 'lmstudio'
|
|
294
|
-
| 'lmstudio-legacy'
|
|
295
|
-
| 'lmstudio-chatcompletions'
|
|
296
|
-
| 'llamacpp'
|
|
297
|
-
| 'koboldcpp'
|
|
298
|
-
| 'vllm'
|
|
299
|
-
| 'hugging-face'
|
|
300
|
-
| 'mistral'
|
|
301
|
-
| 'together'
|
|
302
|
-
| 'bedrock'
|
|
303
|
-
| 'deepseek'
|
|
304
|
-
| 'xai';
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* The actual model name used by the provider
|
|
308
|
-
*/
|
|
309
|
-
name: string;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* The type of the provider
|
|
313
|
-
*/
|
|
314
|
-
provider_type: ModelsAPI.ProviderType;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @deprecated Deprecated: The framework compatibility type for the model.
|
|
318
|
-
*/
|
|
319
|
-
compatibility_type?: 'gguf' | 'mlx' | null;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* A human-friendly display name for the model.
|
|
323
|
-
*/
|
|
324
|
-
display_name?: string | null;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated Deprecated: Whether or not the model should use extended thinking if
|
|
328
|
-
* it is a 'reasoning' style model.
|
|
329
|
-
*/
|
|
330
|
-
enable_reasoner?: boolean;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* @deprecated Deprecated: Positive values penalize new tokens based on their
|
|
334
|
-
* existing frequency in the text so far.
|
|
335
|
-
*/
|
|
336
|
-
frequency_penalty?: number | null;
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* The handle for this config, in the format provider/model-name.
|
|
340
|
-
*/
|
|
341
|
-
handle?: string | null;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @deprecated Deprecated: Configurable thinking budget for extended thinking.
|
|
345
|
-
*/
|
|
346
|
-
max_reasoning_tokens?: number;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* @deprecated Deprecated: The maximum number of tokens to generate.
|
|
350
|
-
*/
|
|
351
|
-
max_tokens?: number | null;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @deprecated Deprecated: The endpoint for the model.
|
|
355
|
-
*/
|
|
356
|
-
model_endpoint?: string | null;
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Type of model (llm or embedding)
|
|
360
|
-
*/
|
|
361
|
-
model_type?: 'llm';
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* @deprecated Deprecated: The wrapper for the model.
|
|
365
|
-
*/
|
|
366
|
-
model_wrapper?: string | null;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* @deprecated Deprecated: If set to True, enables parallel tool calling.
|
|
370
|
-
*/
|
|
371
|
-
parallel_tool_calls?: boolean | null;
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* @deprecated Deprecated: The provider category for the model.
|
|
375
|
-
*/
|
|
376
|
-
provider_category?: ModelsAPI.ProviderCategory | null;
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* The provider name for the model.
|
|
380
|
-
*/
|
|
381
|
-
provider_name?: string | null;
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* @deprecated Deprecated: Puts 'inner_thoughts' as a kwarg in the function call.
|
|
385
|
-
*/
|
|
386
|
-
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* @deprecated Deprecated: The reasoning effort to use when generating text
|
|
390
|
-
* reasoning models.
|
|
391
|
-
*/
|
|
392
|
-
reasoning_effort?: 'minimal' | 'low' | 'medium' | 'high' | null;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* @deprecated Deprecated: The temperature to use when generating text with the
|
|
396
|
-
* model.
|
|
397
|
-
*/
|
|
398
|
-
temperature?: number;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* @deprecated Deprecated: The cost tier for the model (cloud only).
|
|
402
|
-
*/
|
|
403
|
-
tier?: string | null;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* @deprecated Deprecated: Soft control for how verbose model output should be.
|
|
407
|
-
*/
|
|
408
|
-
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
504
|
+
export type ModelListResponse = Array<Model>;
|
|
411
505
|
|
|
412
506
|
export interface ModelListParams {
|
|
413
507
|
provider_category?: Array<ProviderCategory> | null;
|
|
@@ -422,7 +516,9 @@ Models.Embeddings = Embeddings;
|
|
|
422
516
|
export declare namespace Models {
|
|
423
517
|
export {
|
|
424
518
|
type EmbeddingConfig as EmbeddingConfig,
|
|
519
|
+
type EmbeddingModel as EmbeddingModel,
|
|
425
520
|
type LlmConfig as LlmConfig,
|
|
521
|
+
type Model as Model,
|
|
426
522
|
type ProviderCategory as ProviderCategory,
|
|
427
523
|
type ProviderType as ProviderType,
|
|
428
524
|
type ModelListResponse as ModelListResponse,
|
|
@@ -40,11 +40,6 @@ export class Runs extends APIResource {
|
|
|
40
40
|
/**
|
|
41
41
|
* Representation of offline jobs, used for tracking status of data loading tasks
|
|
42
42
|
* (involving parsing and embedding files).
|
|
43
|
-
*
|
|
44
|
-
* Parameters: id (str): The unique identifier of the job. status (JobStatus): The
|
|
45
|
-
* status of the job. created_at (datetime): The unix timestamp of when the job was
|
|
46
|
-
* created. completed_at (datetime): The unix timestamp of when the job was
|
|
47
|
-
* completed. user_id (str): The unique identifier of the user associated with the.
|
|
48
43
|
*/
|
|
49
44
|
export interface Job {
|
|
50
45
|
/**
|
package/src/resources/tools.ts
CHANGED
|
@@ -89,10 +89,6 @@ export interface PipRequirement {
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Representation of a tool, which is a function that can be called by the agent.
|
|
92
|
-
*
|
|
93
|
-
* Parameters: id (str): The unique identifier of the tool. name (str): The name of
|
|
94
|
-
* the function. tags (List[str]): Metadata tags. source_code (str): The source
|
|
95
|
-
* code of the function. json_schema (Dict): The JSON schema of the function.
|
|
96
92
|
*/
|
|
97
93
|
export interface Tool {
|
|
98
94
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.0.0-alpha.
|
|
1
|
+
export const VERSION = '1.0.0-alpha.17'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "1.0.0-alpha.17";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|