@nimble-way/nimble-js 0.20.0 → 1.0.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/CHANGELOG.md +9 -0
- package/README.md +10 -10
- package/client.d.mts +10 -39
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -39
- package/client.d.ts.map +1 -1
- package/client.js +8 -43
- package/client.js.map +1 -1
- package/client.mjs +8 -43
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/{task-agent/task-agent.d.mts → agents/agents.d.mts} +51 -213
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/{task-agent/task-agent.d.ts → agents/agents.d.ts} +51 -213
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +67 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +62 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/index.d.mts +4 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +4 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/{task-agent → agents}/index.js +3 -3
- package/resources/agents/index.js.map +1 -0
- package/resources/{task-agent → agents}/index.mjs +1 -1
- package/resources/agents/index.mjs.map +1 -0
- package/resources/{task-agent → agents}/runs.d.mts +192 -43
- package/resources/agents/runs.d.mts.map +1 -0
- package/resources/{task-agent → agents}/runs.d.ts +192 -43
- package/resources/agents/runs.d.ts.map +1 -0
- package/resources/agents/runs.js +63 -0
- package/resources/agents/runs.js.map +1 -0
- package/resources/agents/runs.mjs +59 -0
- package/resources/agents/runs.mjs.map +1 -0
- package/resources/{task-agent → agents}/templates.d.mts +3 -6
- package/resources/agents/templates.d.mts.map +1 -0
- package/resources/{task-agent → agents}/templates.d.ts +3 -6
- package/resources/agents/templates.d.ts.map +1 -0
- package/resources/{task-agent → agents}/templates.js +5 -8
- package/resources/agents/templates.js.map +1 -0
- package/resources/agents/templates.mjs +19 -0
- package/resources/agents/templates.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/{task-agent.js → agents.js} +2 -2
- package/resources/agents.js.map +1 -0
- package/resources/{task-agent.mjs → agents.mjs} +2 -2
- package/resources/agents.mjs.map +1 -0
- package/resources/batches.js +3 -3
- package/resources/batches.mjs +3 -3
- package/resources/crawl.js +4 -4
- package/resources/crawl.mjs +4 -4
- package/resources/domain-knowledge.js +1 -1
- package/resources/domain-knowledge.mjs +1 -1
- package/resources/extract/extract.d.mts +1243 -0
- package/resources/extract/extract.d.mts.map +1 -0
- package/resources/extract/extract.d.ts +1243 -0
- package/resources/extract/extract.d.ts.map +1 -0
- package/resources/extract/extract.js +52 -0
- package/resources/extract/extract.js.map +1 -0
- package/resources/extract/extract.mjs +47 -0
- package/resources/extract/extract.mjs.map +1 -0
- package/resources/extract/index.d.mts +3 -0
- package/resources/extract/index.d.mts.map +1 -0
- package/resources/extract/index.d.ts +3 -0
- package/resources/extract/index.d.ts.map +1 -0
- package/resources/extract/index.js +9 -0
- package/resources/extract/index.js.map +1 -0
- package/resources/extract/index.mjs +4 -0
- package/resources/extract/index.mjs.map +1 -0
- package/resources/extract/templates/generations.d.mts +364 -0
- package/resources/extract/templates/generations.d.mts.map +1 -0
- package/resources/extract/templates/generations.d.ts +364 -0
- package/resources/extract/templates/generations.d.ts.map +1 -0
- package/resources/extract/templates/generations.js +39 -0
- package/resources/extract/templates/generations.js.map +1 -0
- package/resources/extract/templates/generations.mjs +35 -0
- package/resources/extract/templates/generations.mjs.map +1 -0
- package/resources/extract/templates/index.d.mts +4 -0
- package/resources/extract/templates/index.d.mts.map +1 -0
- package/resources/extract/templates/index.d.ts +4 -0
- package/resources/extract/templates/index.d.ts.map +1 -0
- package/resources/extract/templates/index.js +11 -0
- package/resources/extract/templates/index.js.map +1 -0
- package/resources/extract/templates/index.mjs +5 -0
- package/resources/extract/templates/index.mjs.map +1 -0
- package/resources/extract/templates/templates.d.mts +870 -0
- package/resources/extract/templates/templates.d.mts.map +1 -0
- package/resources/extract/templates/templates.d.ts +870 -0
- package/resources/extract/templates/templates.d.ts.map +1 -0
- package/resources/extract/templates/templates.js +120 -0
- package/resources/extract/templates/templates.js.map +1 -0
- package/resources/extract/templates/templates.mjs +115 -0
- package/resources/extract/templates/templates.mjs.map +1 -0
- package/resources/extract/templates/versions.d.mts +226 -0
- package/resources/extract/templates/versions.d.mts.map +1 -0
- package/resources/extract/templates/versions.d.ts +226 -0
- package/resources/extract/templates/versions.d.ts.map +1 -0
- package/resources/extract/templates/versions.js +42 -0
- package/resources/extract/templates/versions.js.map +1 -0
- package/resources/extract/templates/versions.mjs +38 -0
- package/resources/extract/templates/versions.mjs.map +1 -0
- package/resources/extract/templates.d.mts +2 -0
- package/resources/extract/templates.d.mts.map +1 -0
- package/resources/extract/templates.d.ts +2 -0
- package/resources/extract/templates.d.ts.map +1 -0
- package/resources/extract/templates.js +6 -0
- package/resources/extract/templates.js.map +1 -0
- package/resources/extract/templates.mjs +3 -0
- package/resources/extract/templates.mjs.map +1 -0
- package/resources/extract.d.mts +2 -0
- package/resources/extract.d.mts.map +1 -0
- package/resources/extract.d.ts +2 -0
- package/resources/extract.d.ts.map +1 -0
- package/resources/extract.js +6 -0
- package/resources/extract.js.map +1 -0
- package/resources/extract.mjs +3 -0
- package/resources/extract.mjs.map +1 -0
- package/resources/fast-serp.js +1 -1
- package/resources/fast-serp.mjs +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/jobs/index.d.mts +2 -2
- package/resources/jobs/index.d.mts.map +1 -1
- package/resources/jobs/index.d.ts +2 -2
- package/resources/jobs/index.d.ts.map +1 -1
- package/resources/jobs/index.js.map +1 -1
- package/resources/jobs/index.mjs.map +1 -1
- package/resources/jobs/jobs.d.mts +35 -103
- package/resources/jobs/jobs.d.mts.map +1 -1
- package/resources/jobs/jobs.d.ts +35 -103
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js +10 -28
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +11 -29
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/runs/artifacts.d.mts +4 -12
- package/resources/jobs/runs/artifacts.d.mts.map +1 -1
- package/resources/jobs/runs/artifacts.d.ts +4 -12
- package/resources/jobs/runs/artifacts.d.ts.map +1 -1
- package/resources/jobs/runs/artifacts.js +8 -16
- package/resources/jobs/runs/artifacts.js.map +1 -1
- package/resources/jobs/runs/artifacts.mjs +8 -16
- package/resources/jobs/runs/artifacts.mjs.map +1 -1
- package/resources/jobs/runs/index.d.mts +1 -1
- package/resources/jobs/runs/index.d.mts.map +1 -1
- package/resources/jobs/runs/index.d.ts +1 -1
- package/resources/jobs/runs/index.d.ts.map +1 -1
- package/resources/jobs/runs/index.js.map +1 -1
- package/resources/jobs/runs/index.mjs.map +1 -1
- package/resources/jobs/runs/runs.d.mts +60 -28
- package/resources/jobs/runs/runs.d.mts.map +1 -1
- package/resources/jobs/runs/runs.d.ts +60 -28
- package/resources/jobs/runs/runs.d.ts.map +1 -1
- package/resources/jobs/runs/runs.js +12 -12
- package/resources/jobs/runs/runs.js.map +1 -1
- package/resources/jobs/runs/runs.mjs +12 -12
- package/resources/jobs/runs/runs.mjs.map +1 -1
- package/resources/media.js +2 -2
- package/resources/media.mjs +2 -2
- package/resources/serp.js +3 -3
- package/resources/serp.mjs +3 -3
- package/resources/tasks.js +3 -3
- package/resources/tasks.mjs +3 -3
- package/resources/top-level.d.mts +1 -1202
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +1 -1202
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +41 -123
- package/src/resources/{task-agent/task-agent.ts → agents/agents.ts} +71 -258
- package/src/resources/{task-agent → agents}/index.ts +14 -14
- package/src/resources/{task-agent → agents}/runs.ts +228 -54
- package/src/resources/{task-agent → agents}/templates.ts +5 -8
- package/src/resources/{task-agent.ts → agents.ts} +1 -1
- package/src/resources/batches.ts +3 -3
- package/src/resources/crawl.ts +4 -4
- package/src/resources/domain-knowledge.ts +1 -1
- package/src/resources/extract/extract.ts +5182 -0
- package/src/resources/extract/index.ts +25 -0
- package/src/resources/extract/templates/generations.ts +435 -0
- package/src/resources/extract/templates/index.ts +29 -0
- package/src/resources/extract/templates/templates.ts +1176 -0
- package/src/resources/extract/templates/versions.ts +284 -0
- package/src/resources/extract/templates.ts +3 -0
- package/src/resources/extract.ts +3 -0
- package/src/resources/fast-serp.ts +1 -1
- package/src/resources/index.ts +16 -36
- package/src/resources/jobs/index.ts +1 -1
- package/src/resources/jobs/jobs.ts +50 -125
- package/src/resources/jobs/runs/artifacts.ts +8 -16
- package/src/resources/jobs/runs/index.ts +1 -0
- package/src/resources/jobs/runs/runs.ts +75 -31
- package/src/resources/media.ts +2 -2
- package/src/resources/serp.ts +3 -3
- package/src/resources/tasks.ts +3 -3
- package/src/resources/top-level.ts +72 -5171
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/agent.d.mts +0 -641
- package/resources/agent.d.mts.map +0 -1
- package/resources/agent.d.ts +0 -641
- package/resources/agent.d.ts.map +0 -1
- package/resources/agent.js +0 -84
- package/resources/agent.js.map +0 -1
- package/resources/agent.mjs +0 -80
- package/resources/agent.mjs.map +0 -1
- package/resources/task-agent/index.d.mts +0 -4
- package/resources/task-agent/index.d.mts.map +0 -1
- package/resources/task-agent/index.d.ts +0 -4
- package/resources/task-agent/index.d.ts.map +0 -1
- package/resources/task-agent/index.js.map +0 -1
- package/resources/task-agent/index.mjs.map +0 -1
- package/resources/task-agent/runs.d.mts.map +0 -1
- package/resources/task-agent/runs.d.ts.map +0 -1
- package/resources/task-agent/runs.js +0 -63
- package/resources/task-agent/runs.js.map +0 -1
- package/resources/task-agent/runs.mjs +0 -59
- package/resources/task-agent/runs.mjs.map +0 -1
- package/resources/task-agent/task-agent.d.mts.map +0 -1
- package/resources/task-agent/task-agent.d.ts.map +0 -1
- package/resources/task-agent/task-agent.js +0 -80
- package/resources/task-agent/task-agent.js.map +0 -1
- package/resources/task-agent/task-agent.mjs +0 -75
- package/resources/task-agent/task-agent.mjs.map +0 -1
- package/resources/task-agent/templates.d.mts.map +0 -1
- package/resources/task-agent/templates.d.ts.map +0 -1
- package/resources/task-agent/templates.js.map +0 -1
- package/resources/task-agent/templates.mjs +0 -22
- package/resources/task-agent/templates.mjs.map +0 -1
- package/resources/task-agent.d.mts +0 -2
- package/resources/task-agent.d.mts.map +0 -1
- package/resources/task-agent.d.ts +0 -2
- package/resources/task-agent.d.ts.map +0 -1
- package/resources/task-agent.js.map +0 -1
- package/resources/task-agent.mjs.map +0 -1
- package/src/resources/agent.ts +0 -935
package/src/resources/agent.ts
DELETED
|
@@ -1,935 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
import { path } from '../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
export class Agent extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List Agent Templates
|
|
11
|
-
*
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
list(
|
|
15
|
-
query: AgentListParams | null | undefined = {},
|
|
16
|
-
options?: RequestOptions,
|
|
17
|
-
): APIPromise<AgentListResponse> {
|
|
18
|
-
return this._client.get('/v1/agents', { query, ...options });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create Agent Generation
|
|
23
|
-
*
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
generate(body: AgentGenerateParams, options?: RequestOptions): APIPromise<AgentGenerateResponse> {
|
|
27
|
-
return this._client.post('/v1/agents/generations', { body, ...options });
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Get Agent Template
|
|
32
|
-
*
|
|
33
|
-
* @deprecated
|
|
34
|
-
*/
|
|
35
|
-
get(templateName: string, options?: RequestOptions): APIPromise<AgentGetResponse> {
|
|
36
|
-
return this._client.get(path`/v1/agents/${templateName}`, options);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Get Agent Generation
|
|
41
|
-
*
|
|
42
|
-
* @deprecated
|
|
43
|
-
*/
|
|
44
|
-
getGeneration(generationID: string, options?: RequestOptions): APIPromise<AgentGetGenerationResponse> {
|
|
45
|
-
return this._client.get(path`/v1/agents/generations/${generationID}`, options);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Execute WSA Realtime Endpoint
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* const response = await client.agent.run({
|
|
54
|
-
* agent: 'agent',
|
|
55
|
-
* params: { foo: 'bar' },
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
run(body: AgentRunParams, options?: RequestOptions): APIPromise<AgentRunResponse> {
|
|
60
|
-
return this._client.post('/v1/agents/run', { body, ...options });
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Execute WSA Async Endpoint
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* const response = await client.agent.runAsync({
|
|
69
|
-
* agent: 'agent',
|
|
70
|
-
* params: { foo: 'bar' },
|
|
71
|
-
* });
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
runAsync(body: AgentRunAsyncParams, options?: RequestOptions): APIPromise<AgentRunAsyncResponse> {
|
|
75
|
-
return this._client.post('/v1/agents/async', { body, ...options });
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Execute WSA Batch Endpoint
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const response = await client.agent.runBatch({
|
|
84
|
-
* inputs: [{}],
|
|
85
|
-
* shared_inputs: { agent: 'agent' },
|
|
86
|
-
* });
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
runBatch(body: AgentRunBatchParams, options?: RequestOptions): APIPromise<AgentRunBatchResponse> {
|
|
90
|
-
return this._client.post('/v1/agents/batch', { body, ...options });
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export type AgentListResponse = Array<AgentListResponse.AgentListResponseItem>;
|
|
95
|
-
|
|
96
|
-
export namespace AgentListResponse {
|
|
97
|
-
export interface AgentListResponseItem {
|
|
98
|
-
display_name: string;
|
|
99
|
-
|
|
100
|
-
is_public: boolean;
|
|
101
|
-
|
|
102
|
-
name: string;
|
|
103
|
-
|
|
104
|
-
description?: string | null;
|
|
105
|
-
|
|
106
|
-
domain?: string | null;
|
|
107
|
-
|
|
108
|
-
entity_type?: string | null;
|
|
109
|
-
|
|
110
|
-
managed_by?: string | null;
|
|
111
|
-
|
|
112
|
-
vertical?: string | null;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface AgentGenerateResponse {
|
|
117
|
-
id: string;
|
|
118
|
-
|
|
119
|
-
status: string;
|
|
120
|
-
|
|
121
|
-
agent_name?: string | null;
|
|
122
|
-
|
|
123
|
-
completed_at?: string | null;
|
|
124
|
-
|
|
125
|
-
created_at?: string | null;
|
|
126
|
-
|
|
127
|
-
error?: string | null;
|
|
128
|
-
|
|
129
|
-
generated_version?: AgentGenerateResponse.GeneratedVersion | null;
|
|
130
|
-
|
|
131
|
-
generated_version_id?: string | null;
|
|
132
|
-
|
|
133
|
-
source_version_id?: string | null;
|
|
134
|
-
|
|
135
|
-
started_at?: string | null;
|
|
136
|
-
|
|
137
|
-
summary?: string | null;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export namespace AgentGenerateResponse {
|
|
141
|
-
export interface GeneratedVersion {
|
|
142
|
-
id: string;
|
|
143
|
-
|
|
144
|
-
agent_name: string;
|
|
145
|
-
|
|
146
|
-
created_at: string;
|
|
147
|
-
|
|
148
|
-
input_schema: { [key: string]: unknown };
|
|
149
|
-
|
|
150
|
-
metadata: GeneratedVersion.Metadata;
|
|
151
|
-
|
|
152
|
-
output_schema: { [key: string]: unknown };
|
|
153
|
-
|
|
154
|
-
version_number: number;
|
|
155
|
-
|
|
156
|
-
samples?: Array<GeneratedVersion.Sample> | null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export namespace GeneratedVersion {
|
|
160
|
-
export interface Metadata {
|
|
161
|
-
data_source?: string | null;
|
|
162
|
-
|
|
163
|
-
description?: string | null;
|
|
164
|
-
|
|
165
|
-
display_name?: string | null;
|
|
166
|
-
|
|
167
|
-
domain?: string | null;
|
|
168
|
-
|
|
169
|
-
entity_type?: string | null;
|
|
170
|
-
|
|
171
|
-
tags?: Array<string>;
|
|
172
|
-
|
|
173
|
-
vertical?: string | null;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface Sample {
|
|
177
|
-
input?: unknown;
|
|
178
|
-
|
|
179
|
-
output?: unknown;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface AgentGetResponse {
|
|
185
|
-
display_name: string;
|
|
186
|
-
|
|
187
|
-
is_public: boolean;
|
|
188
|
-
|
|
189
|
-
name: string;
|
|
190
|
-
|
|
191
|
-
description?: string | null;
|
|
192
|
-
|
|
193
|
-
domain?: string | null;
|
|
194
|
-
|
|
195
|
-
entity_type?: string | null;
|
|
196
|
-
|
|
197
|
-
feature_flags?: AgentGetResponse.FeatureFlags;
|
|
198
|
-
|
|
199
|
-
input_properties?: Array<AgentGetResponse.InputProperty> | null;
|
|
200
|
-
|
|
201
|
-
managed_by?: string | null;
|
|
202
|
-
|
|
203
|
-
output_schema?: { [key: string]: unknown } | null;
|
|
204
|
-
|
|
205
|
-
vertical?: string | null;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export namespace AgentGetResponse {
|
|
209
|
-
export interface FeatureFlags {
|
|
210
|
-
is_localization_supported?: boolean;
|
|
211
|
-
|
|
212
|
-
is_pagination_supported?: boolean;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface InputProperty {
|
|
216
|
-
default?: string | boolean | number | null;
|
|
217
|
-
|
|
218
|
-
description?: string | null;
|
|
219
|
-
|
|
220
|
-
examples?: Array<unknown> | null;
|
|
221
|
-
|
|
222
|
-
is_localization_param?: boolean;
|
|
223
|
-
|
|
224
|
-
is_pagination_param?: boolean;
|
|
225
|
-
|
|
226
|
-
name?: string;
|
|
227
|
-
|
|
228
|
-
required?: boolean;
|
|
229
|
-
|
|
230
|
-
rules?: Array<string> | null;
|
|
231
|
-
|
|
232
|
-
type?: string;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export interface AgentGetGenerationResponse {
|
|
237
|
-
id: string;
|
|
238
|
-
|
|
239
|
-
status: string;
|
|
240
|
-
|
|
241
|
-
agent_name?: string | null;
|
|
242
|
-
|
|
243
|
-
completed_at?: string | null;
|
|
244
|
-
|
|
245
|
-
created_at?: string | null;
|
|
246
|
-
|
|
247
|
-
error?: string | null;
|
|
248
|
-
|
|
249
|
-
generated_version?: AgentGetGenerationResponse.GeneratedVersion | null;
|
|
250
|
-
|
|
251
|
-
generated_version_id?: string | null;
|
|
252
|
-
|
|
253
|
-
source_version_id?: string | null;
|
|
254
|
-
|
|
255
|
-
started_at?: string | null;
|
|
256
|
-
|
|
257
|
-
summary?: string | null;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export namespace AgentGetGenerationResponse {
|
|
261
|
-
export interface GeneratedVersion {
|
|
262
|
-
id: string;
|
|
263
|
-
|
|
264
|
-
agent_name: string;
|
|
265
|
-
|
|
266
|
-
created_at: string;
|
|
267
|
-
|
|
268
|
-
input_schema: { [key: string]: unknown };
|
|
269
|
-
|
|
270
|
-
metadata: GeneratedVersion.Metadata;
|
|
271
|
-
|
|
272
|
-
output_schema: { [key: string]: unknown };
|
|
273
|
-
|
|
274
|
-
version_number: number;
|
|
275
|
-
|
|
276
|
-
samples?: Array<GeneratedVersion.Sample> | null;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export namespace GeneratedVersion {
|
|
280
|
-
export interface Metadata {
|
|
281
|
-
data_source?: string | null;
|
|
282
|
-
|
|
283
|
-
description?: string | null;
|
|
284
|
-
|
|
285
|
-
display_name?: string | null;
|
|
286
|
-
|
|
287
|
-
domain?: string | null;
|
|
288
|
-
|
|
289
|
-
entity_type?: string | null;
|
|
290
|
-
|
|
291
|
-
tags?: Array<string>;
|
|
292
|
-
|
|
293
|
-
vertical?: string | null;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface Sample {
|
|
297
|
-
input?: unknown;
|
|
298
|
-
|
|
299
|
-
output?: unknown;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export interface AgentRunResponse {
|
|
305
|
-
data: AgentRunResponse.Data;
|
|
306
|
-
|
|
307
|
-
metadata: AgentRunResponse.Metadata;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* The status of the task.
|
|
311
|
-
*/
|
|
312
|
-
status: 'success' | 'skipped' | 'fatal' | 'error' | 'postponed' | 'ignored' | 'rejected' | 'blocked';
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Unique identifier for the task.
|
|
316
|
-
*/
|
|
317
|
-
task_id: string;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* The final URL.
|
|
321
|
-
*/
|
|
322
|
-
url: string;
|
|
323
|
-
|
|
324
|
-
debug?: AgentRunResponse.Debug;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Pagination information if applicable.
|
|
328
|
-
*/
|
|
329
|
-
pagination?: AgentRunResponse.NextPageParams | Array<AgentRunResponse.UnionMember1>;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* The HTTP status code of the task.
|
|
333
|
-
*/
|
|
334
|
-
status_code?: number;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* List of warnings generated during the task.
|
|
338
|
-
*/
|
|
339
|
-
warnings?: Array<string>;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export namespace AgentRunResponse {
|
|
343
|
-
export interface Data {
|
|
344
|
-
/**
|
|
345
|
-
* Browser actions execution results. Present only when browser_actions were
|
|
346
|
-
* specified in the request.
|
|
347
|
-
*/
|
|
348
|
-
browser_actions?: Data.BrowserActions;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* The cookies collected from browser actions during the task.
|
|
352
|
-
*/
|
|
353
|
-
cookies?: Array<unknown>;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The evaluation results from browser actions during the task.
|
|
357
|
-
*/
|
|
358
|
-
eval?: Array<unknown>;
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* The http requests from browser actions made during the task.
|
|
362
|
-
*/
|
|
363
|
-
fetch?: Array<unknown>;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* The headers received during the task.
|
|
367
|
-
*/
|
|
368
|
-
headers?: { [key: string]: string };
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* The HTML content of the page.
|
|
372
|
-
*/
|
|
373
|
-
html?: string;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* List of all unique URLs found on the page.
|
|
377
|
-
*/
|
|
378
|
-
links?: Array<string>;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* The Markdown version of the HTML content.
|
|
382
|
-
*/
|
|
383
|
-
markdown?: string;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* The network capture data collected during the task.
|
|
387
|
-
*/
|
|
388
|
-
network_capture?: Array<Data.NetworkCapture>;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Individual HTML content of each pagination page, before merging.
|
|
392
|
-
*/
|
|
393
|
-
pages_html?: Array<string>;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* The parsing results extracted from the HTML & network content.
|
|
397
|
-
*/
|
|
398
|
-
parsing?: Data.ParsingSuccessResult | Data.ParsingErrorResult | { [key: string]: unknown };
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* The list of redirects that occurred during the task.
|
|
402
|
-
*/
|
|
403
|
-
redirects?: Array<Data.Redirect>;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Screenshots taken during the task, from browser actions, or the screenshot
|
|
407
|
-
* format.
|
|
408
|
-
*/
|
|
409
|
-
screenshots?: Array<unknown>;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export namespace Data {
|
|
413
|
-
/**
|
|
414
|
-
* Browser actions execution results. Present only when browser_actions were
|
|
415
|
-
* specified in the request.
|
|
416
|
-
*/
|
|
417
|
-
export interface BrowserActions {
|
|
418
|
-
results: Array<BrowserActions.Result>;
|
|
419
|
-
|
|
420
|
-
success: boolean;
|
|
421
|
-
|
|
422
|
-
total_duration: number;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export namespace BrowserActions {
|
|
426
|
-
export interface Result {
|
|
427
|
-
duration: number;
|
|
428
|
-
|
|
429
|
-
name:
|
|
430
|
-
| 'goto'
|
|
431
|
-
| 'wait'
|
|
432
|
-
| 'wait_for_element'
|
|
433
|
-
| 'wait_for_navigation'
|
|
434
|
-
| 'click'
|
|
435
|
-
| 'fill'
|
|
436
|
-
| 'press'
|
|
437
|
-
| 'scroll'
|
|
438
|
-
| 'auto_scroll'
|
|
439
|
-
| 'screenshot'
|
|
440
|
-
| 'get_cookies'
|
|
441
|
-
| 'eval'
|
|
442
|
-
| 'fetch';
|
|
443
|
-
|
|
444
|
-
status: 'no-run' | 'in-progress' | 'done' | 'error' | 'skipped';
|
|
445
|
-
|
|
446
|
-
error?: string;
|
|
447
|
-
|
|
448
|
-
result?: unknown;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
export interface NetworkCapture {
|
|
453
|
-
filter: NetworkCapture.Filter;
|
|
454
|
-
|
|
455
|
-
results: Array<NetworkCapture.Result>;
|
|
456
|
-
|
|
457
|
-
errorMessage?: string;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
export namespace NetworkCapture {
|
|
461
|
-
export interface Filter {
|
|
462
|
-
validation: boolean;
|
|
463
|
-
|
|
464
|
-
wait_for_requests_count: number;
|
|
465
|
-
|
|
466
|
-
method?: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Resource type for network capture filtering
|
|
470
|
-
*/
|
|
471
|
-
resource_type?:
|
|
472
|
-
| 'document'
|
|
473
|
-
| 'stylesheet'
|
|
474
|
-
| 'image'
|
|
475
|
-
| 'media'
|
|
476
|
-
| 'font'
|
|
477
|
-
| 'script'
|
|
478
|
-
| 'texttrack'
|
|
479
|
-
| 'xhr'
|
|
480
|
-
| 'fetch'
|
|
481
|
-
| 'prefetch'
|
|
482
|
-
| 'eventsource'
|
|
483
|
-
| 'websocket'
|
|
484
|
-
| 'manifest'
|
|
485
|
-
| 'signedexchange'
|
|
486
|
-
| 'ping'
|
|
487
|
-
| 'cspviolationreport'
|
|
488
|
-
| 'preflight'
|
|
489
|
-
| 'other'
|
|
490
|
-
| 'fedcm'
|
|
491
|
-
| Array<
|
|
492
|
-
| 'document'
|
|
493
|
-
| 'stylesheet'
|
|
494
|
-
| 'image'
|
|
495
|
-
| 'media'
|
|
496
|
-
| 'font'
|
|
497
|
-
| 'script'
|
|
498
|
-
| 'texttrack'
|
|
499
|
-
| 'xhr'
|
|
500
|
-
| 'fetch'
|
|
501
|
-
| 'prefetch'
|
|
502
|
-
| 'eventsource'
|
|
503
|
-
| 'websocket'
|
|
504
|
-
| 'manifest'
|
|
505
|
-
| 'signedexchange'
|
|
506
|
-
| 'ping'
|
|
507
|
-
| 'cspviolationreport'
|
|
508
|
-
| 'preflight'
|
|
509
|
-
| 'other'
|
|
510
|
-
| 'fedcm'
|
|
511
|
-
>;
|
|
512
|
-
|
|
513
|
-
status_code?: number | Array<number>;
|
|
514
|
-
|
|
515
|
-
url?: Filter.URL;
|
|
516
|
-
|
|
517
|
-
wait_for_requests_count_timeout?: number;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
export namespace Filter {
|
|
521
|
-
export interface URL {
|
|
522
|
-
type: 'exact' | 'contains';
|
|
523
|
-
|
|
524
|
-
value: string;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export interface Result {
|
|
529
|
-
request: Result.Request;
|
|
530
|
-
|
|
531
|
-
response: Result.Response;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
export namespace Result {
|
|
535
|
-
export interface Request {
|
|
536
|
-
headers: { [key: string]: string };
|
|
537
|
-
|
|
538
|
-
method: string;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Resource type for network capture filtering
|
|
542
|
-
*/
|
|
543
|
-
resource_type:
|
|
544
|
-
| 'document'
|
|
545
|
-
| 'stylesheet'
|
|
546
|
-
| 'image'
|
|
547
|
-
| 'media'
|
|
548
|
-
| 'font'
|
|
549
|
-
| 'script'
|
|
550
|
-
| 'texttrack'
|
|
551
|
-
| 'xhr'
|
|
552
|
-
| 'fetch'
|
|
553
|
-
| 'prefetch'
|
|
554
|
-
| 'eventsource'
|
|
555
|
-
| 'websocket'
|
|
556
|
-
| 'manifest'
|
|
557
|
-
| 'signedexchange'
|
|
558
|
-
| 'ping'
|
|
559
|
-
| 'cspviolationreport'
|
|
560
|
-
| 'preflight'
|
|
561
|
-
| 'other'
|
|
562
|
-
| 'fedcm';
|
|
563
|
-
|
|
564
|
-
url: string;
|
|
565
|
-
|
|
566
|
-
body?: string;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export interface Response {
|
|
570
|
-
body: string;
|
|
571
|
-
|
|
572
|
-
headers: { [key: string]: string };
|
|
573
|
-
|
|
574
|
-
serialization: 'none' | 'base64';
|
|
575
|
-
|
|
576
|
-
status: number;
|
|
577
|
-
|
|
578
|
-
status_text: string;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
export interface ParsingSuccessResult {
|
|
584
|
-
entities: { [key: string]: unknown };
|
|
585
|
-
|
|
586
|
-
status: 'success';
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
export interface ParsingErrorResult {
|
|
590
|
-
error: string;
|
|
591
|
-
|
|
592
|
-
status: 'error';
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export interface Redirect {
|
|
596
|
-
status_code: number;
|
|
597
|
-
|
|
598
|
-
url: string;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
export interface Metadata {
|
|
603
|
-
/**
|
|
604
|
-
* The name of the agent used for the query.
|
|
605
|
-
*/
|
|
606
|
-
agent?: string;
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* The driver used for the task.
|
|
610
|
-
*/
|
|
611
|
-
driver?: string;
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* The localization identifier for the query.
|
|
615
|
-
*/
|
|
616
|
-
localization_id?: string;
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* The duration in milliseconds of the query processing.
|
|
620
|
-
*/
|
|
621
|
-
query_duration?: number;
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* The time when the query was received.
|
|
625
|
-
*/
|
|
626
|
-
query_time?: string;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Additional response parameters.
|
|
630
|
-
*/
|
|
631
|
-
response_parameters?: unknown;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* A tag associated with the query.
|
|
635
|
-
*/
|
|
636
|
-
tag?: string;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export interface Debug {
|
|
640
|
-
/**
|
|
641
|
-
* Performance metrics collected during the task.
|
|
642
|
-
*/
|
|
643
|
-
performance_metrics?: { [key: string]: number };
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Total bytes used by the proxy during the task.
|
|
647
|
-
*/
|
|
648
|
-
proxy_total_bytes_usage?: number;
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* The transformed output after applying any transformations.
|
|
652
|
-
*/
|
|
653
|
-
transformed_output?: unknown;
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* The userbrowser instance using during the task.
|
|
657
|
-
*/
|
|
658
|
-
userbrowser?: unknown;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
export interface NextPageParams {
|
|
662
|
-
next_page_params: { [key: string]: unknown };
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
export interface UnionMember1 {
|
|
666
|
-
next_page_params: { [key: string]: unknown };
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
export interface AgentRunAsyncResponse {
|
|
671
|
-
status: 'success';
|
|
672
|
-
|
|
673
|
-
task: { [key: string]: unknown };
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
/**
|
|
677
|
-
* Response when a batch of extract tasks is created successfully.
|
|
678
|
-
*/
|
|
679
|
-
export interface AgentRunBatchResponse {
|
|
680
|
-
/**
|
|
681
|
-
* Unique identifier for the batch.
|
|
682
|
-
*/
|
|
683
|
-
batch_id: string;
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* Number of tasks in the batch.
|
|
687
|
-
*/
|
|
688
|
-
batch_size: number;
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* List of created tasks.
|
|
692
|
-
*/
|
|
693
|
-
tasks: Array<AgentRunBatchResponse.Task>;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
export namespace AgentRunBatchResponse {
|
|
697
|
-
export interface Task {
|
|
698
|
-
/**
|
|
699
|
-
* Unique task identifier.
|
|
700
|
-
*/
|
|
701
|
-
id: string;
|
|
702
|
-
|
|
703
|
-
_query: unknown;
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Timestamp when the task was created.
|
|
707
|
-
*/
|
|
708
|
-
created_at: string;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Original input data for the task.
|
|
712
|
-
*/
|
|
713
|
-
input: unknown;
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Current state of the task.
|
|
717
|
-
*/
|
|
718
|
-
state: 'pending' | 'queued' | 'in_progress' | 'success' | 'error';
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* URL for checking the task status.
|
|
722
|
-
*/
|
|
723
|
-
status_url: string;
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Account name that owns the task.
|
|
727
|
-
*/
|
|
728
|
-
account_name?: string;
|
|
729
|
-
|
|
730
|
-
api_type?: 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs';
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Batch ID if this task is part of a batch.
|
|
734
|
-
*/
|
|
735
|
-
batch_id?: string | null;
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* URL for downloading the task results.
|
|
739
|
-
*/
|
|
740
|
-
download_url?: string | null;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Error message if the task failed.
|
|
744
|
-
*/
|
|
745
|
-
error?: string | null;
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Classification of the error type.
|
|
749
|
-
*/
|
|
750
|
-
error_type?: string | null;
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* Timestamp when the task was last modified.
|
|
754
|
-
*/
|
|
755
|
-
modified_at?: string;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Storage location of the output data.
|
|
759
|
-
*/
|
|
760
|
-
output_url?: string | null;
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Queue name the task was submitted to.
|
|
764
|
-
*/
|
|
765
|
-
queue?: string;
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* HTTP status code from the task execution.
|
|
769
|
-
*/
|
|
770
|
-
status_code?: number;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
export interface AgentListParams {
|
|
775
|
-
/**
|
|
776
|
-
* Number of results per page
|
|
777
|
-
*/
|
|
778
|
-
limit?: number;
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Filter templates by attribution
|
|
782
|
-
*/
|
|
783
|
-
managed_by?: 'nimble' | 'community' | 'self_managed' | null;
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Pagination offset
|
|
787
|
-
*/
|
|
788
|
-
offset?: number;
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* Filter by privacy level
|
|
792
|
-
*/
|
|
793
|
-
privacy?: 'public' | 'private' | 'all' | null;
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Search templates by name, domain, or vertical
|
|
797
|
-
*/
|
|
798
|
-
search?: string | null;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
export type AgentGenerateParams =
|
|
802
|
-
| AgentGenerateParams.CreateTemplateGenerationRequestPublicV1
|
|
803
|
-
| AgentGenerateParams.CreateTemplateRefinementRequestPublicV1;
|
|
804
|
-
|
|
805
|
-
export declare namespace AgentGenerateParams {
|
|
806
|
-
export interface CreateTemplateGenerationRequestPublicV1 {
|
|
807
|
-
prompt: string;
|
|
808
|
-
|
|
809
|
-
url: string;
|
|
810
|
-
|
|
811
|
-
input_schema?: { [key: string]: unknown };
|
|
812
|
-
|
|
813
|
-
metadata?: CreateTemplateGenerationRequestPublicV1.Metadata | null;
|
|
814
|
-
|
|
815
|
-
name?: string | null;
|
|
816
|
-
|
|
817
|
-
output_schema?: { [key: string]: unknown };
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
export namespace CreateTemplateGenerationRequestPublicV1 {
|
|
821
|
-
export interface Metadata {
|
|
822
|
-
description?: string | null;
|
|
823
|
-
|
|
824
|
-
display_name?: string | null;
|
|
825
|
-
|
|
826
|
-
tags?: Array<string>;
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
export interface CreateTemplateRefinementRequestPublicV1 {
|
|
831
|
-
from_agent: string;
|
|
832
|
-
|
|
833
|
-
prompt: string;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
export interface AgentRunParams {
|
|
838
|
-
agent: string;
|
|
839
|
-
|
|
840
|
-
params: { [key: string]: unknown };
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* Response formats to include. All disabled by default.
|
|
844
|
-
*/
|
|
845
|
-
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
|
|
846
|
-
|
|
847
|
-
localization?: boolean;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
export interface AgentRunAsyncParams {
|
|
851
|
-
agent: string;
|
|
852
|
-
|
|
853
|
-
params: { [key: string]: unknown };
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* URL to call back when async operation completes
|
|
857
|
-
*/
|
|
858
|
-
callback_url?: string;
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* Response formats to include. All disabled by default.
|
|
862
|
-
*/
|
|
863
|
-
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
|
|
864
|
-
|
|
865
|
-
localization?: boolean;
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* Whether to compress stored data
|
|
869
|
-
*/
|
|
870
|
-
storage_compress?: boolean;
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* Custom name for the stored object
|
|
874
|
-
*/
|
|
875
|
-
storage_object_name?: string;
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Type of storage to use for results
|
|
879
|
-
*/
|
|
880
|
-
storage_type?: string;
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* URL for storage location
|
|
884
|
-
*/
|
|
885
|
-
storage_url?: string;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export interface AgentRunBatchParams {
|
|
889
|
-
inputs: Array<AgentRunBatchParams.Input>;
|
|
890
|
-
|
|
891
|
-
shared_inputs: AgentRunBatchParams.SharedInputs;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
export namespace AgentRunBatchParams {
|
|
895
|
-
export interface Input {
|
|
896
|
-
/**
|
|
897
|
-
* Response formats to include. All disabled by default.
|
|
898
|
-
*/
|
|
899
|
-
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
|
|
900
|
-
|
|
901
|
-
localization?: boolean;
|
|
902
|
-
|
|
903
|
-
params?: { [key: string]: unknown };
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
export interface SharedInputs {
|
|
907
|
-
agent: string;
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Response formats to include. All disabled by default.
|
|
911
|
-
*/
|
|
912
|
-
formats?: Array<'html' | 'markdown' | 'screenshot' | 'headers' | 'links'>;
|
|
913
|
-
|
|
914
|
-
localization?: boolean;
|
|
915
|
-
|
|
916
|
-
params?: { [key: string]: unknown };
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
export declare namespace Agent {
|
|
921
|
-
export {
|
|
922
|
-
type AgentListResponse as AgentListResponse,
|
|
923
|
-
type AgentGenerateResponse as AgentGenerateResponse,
|
|
924
|
-
type AgentGetResponse as AgentGetResponse,
|
|
925
|
-
type AgentGetGenerationResponse as AgentGetGenerationResponse,
|
|
926
|
-
type AgentRunResponse as AgentRunResponse,
|
|
927
|
-
type AgentRunAsyncResponse as AgentRunAsyncResponse,
|
|
928
|
-
type AgentRunBatchResponse as AgentRunBatchResponse,
|
|
929
|
-
type AgentListParams as AgentListParams,
|
|
930
|
-
type AgentGenerateParams as AgentGenerateParams,
|
|
931
|
-
type AgentRunParams as AgentRunParams,
|
|
932
|
-
type AgentRunAsyncParams as AgentRunAsyncParams,
|
|
933
|
-
type AgentRunBatchParams as AgentRunBatchParams,
|
|
934
|
-
};
|
|
935
|
-
}
|