@nimble-way/nimble-js 0.19.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 +20 -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/agents/agents.d.mts +811 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +811 -0
- 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 +413 -128
- package/resources/agents/runs.d.mts.map +1 -0
- package/resources/{task-agent → agents}/runs.d.ts +413 -128
- 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/agents/templates.d.mts +258 -0
- package/resources/agents/templates.d.mts.map +1 -0
- package/resources/agents/templates.d.ts +258 -0
- package/resources/agents/templates.d.ts.map +1 -0
- package/resources/{task-agent → agents}/templates.js +5 -4
- 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/{agent.d.ts → extract/templates/templates.d.mts} +475 -263
- package/resources/extract/templates/templates.d.mts.map +1 -0
- package/resources/{agent.d.mts → extract/templates/templates.d.ts} +475 -263
- 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 +34 -90
- package/resources/jobs/jobs.d.mts.map +1 -1
- package/resources/jobs/jobs.d.ts +34 -90
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js +10 -16
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +11 -17
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/runs/artifacts.d.mts +7 -17
- package/resources/jobs/runs/artifacts.d.mts.map +1 -1
- package/resources/jobs/runs/artifacts.d.ts +7 -17
- package/resources/jobs/runs/artifacts.d.ts.map +1 -1
- package/resources/jobs/runs/artifacts.js +8 -8
- package/resources/jobs/runs/artifacts.mjs +8 -8
- 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 +59 -21
- package/resources/jobs/runs/runs.d.mts.map +1 -1
- package/resources/jobs/runs/runs.d.ts +59 -21
- package/resources/jobs/runs/runs.d.ts.map +1 -1
- package/resources/jobs/runs/runs.js +12 -6
- package/resources/jobs/runs/runs.js.map +1 -1
- package/resources/jobs/runs/runs.mjs +12 -6
- 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 -1208
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +1 -1208
- package/resources/top-level.d.ts.map +1 -1
- package/src/client.ts +41 -123
- package/src/resources/agents/agents.ts +1039 -0
- package/src/resources/agents/index.ts +30 -0
- package/src/resources/{task-agent → agents}/runs.ts +450 -154
- package/src/resources/agents/templates.ts +324 -0
- 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 +49 -112
- package/src/resources/jobs/runs/artifacts.ts +11 -21
- package/src/resources/jobs/runs/index.ts +1 -0
- package/src/resources/jobs/runs/runs.ts +74 -24
- 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 +88 -5192
- 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.map +0 -1
- package/resources/agent.d.ts.map +0 -1
- package/resources/agent.js +0 -101
- package/resources/agent.js.map +0 -1
- package/resources/agent.mjs +0 -97
- 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 -65
- package/resources/task-agent/runs.js.map +0 -1
- package/resources/task-agent/runs.mjs +0 -61
- package/resources/task-agent/runs.mjs.map +0 -1
- package/resources/task-agent/task-agent.d.mts +0 -481
- package/resources/task-agent/task-agent.d.mts.map +0 -1
- package/resources/task-agent/task-agent.d.ts +0 -481
- package/resources/task-agent/task-agent.d.ts.map +0 -1
- package/resources/task-agent/task-agent.js +0 -68
- package/resources/task-agent/task-agent.js.map +0 -1
- package/resources/task-agent/task-agent.mjs +0 -63
- package/resources/task-agent/task-agent.mjs.map +0 -1
- package/resources/task-agent/templates.d.mts +0 -107
- package/resources/task-agent/templates.d.mts.map +0 -1
- package/resources/task-agent/templates.d.ts +0 -107
- 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 -18
- 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 -952
- package/src/resources/task-agent/index.ts +0 -32
- package/src/resources/task-agent/task-agent.ts +0 -746
- package/src/resources/task-agent/templates.ts +0 -172
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/resources/agents/runs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAIvG;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,aAA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ChB;QAED,UAAiB,KAAK;YACpB;;eAEG;YACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAEvB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Runs = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Runs extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Start an agent run. The run executes asynchronously: the response returns
|
|
11
|
+
* immediately with status `queued`, then poll `GET .../runs/{run_id}` until
|
|
12
|
+
* `completed` and fetch the output from `GET .../runs/{run_id}/result` — or set
|
|
13
|
+
* `enable_events: true` and follow `GET .../runs/{run_id}/events` for live
|
|
14
|
+
* progress.
|
|
15
|
+
*
|
|
16
|
+
* To enrich existing records instead of researching from scratch, pass them in
|
|
17
|
+
* `input_data`; this requires an `output_schema` (on the request or the agent).
|
|
18
|
+
*/
|
|
19
|
+
create(agentID, body, options) {
|
|
20
|
+
return this._client.post((0, path_1.path) `/v2/agents/${agentID}/runs`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List the runs of an agent, newest first, paginated with `offset`/`limit`.
|
|
24
|
+
*/
|
|
25
|
+
list(agentID, query = {}, options) {
|
|
26
|
+
return this._client.get((0, path_1.path) `/v2/agents/${agentID}/runs`, { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a run's current state. Poll this endpoint after creating a run: the run
|
|
30
|
+
* is finished once `status` is `completed`, `failed`, or `cancelled`.
|
|
31
|
+
*/
|
|
32
|
+
get(runID, params, options) {
|
|
33
|
+
const { agent_id } = params;
|
|
34
|
+
return this._client.get((0, path_1.path) `/v2/agents/${agent_id}/runs/${runID}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Fetch the output of a completed run. The `output` is `type: "text"` (a prose
|
|
38
|
+
* answer) or `type: "json"` (structured data matching the output schema), plus
|
|
39
|
+
* `trust` metadata with per-claim citations for the answer.
|
|
40
|
+
*
|
|
41
|
+
* While the run is still `queued` or `running` this endpoint returns `409`; if the
|
|
42
|
+
* run `failed` or was `cancelled` it returns `422` with the run and error details.
|
|
43
|
+
*/
|
|
44
|
+
result(runID, params, options) {
|
|
45
|
+
const { agent_id } = params;
|
|
46
|
+
return this._client.get((0, path_1.path) `/v2/agents/${agent_id}/runs/${runID}/result`, options);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Stream a run's progress as
|
|
50
|
+
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)
|
|
51
|
+
* (`text/event-stream`). Create the run with `enable_events: true` to have events
|
|
52
|
+
* published. A keep-alive comment is sent every 15 seconds.
|
|
53
|
+
*/
|
|
54
|
+
streamEvents(runID, params, options) {
|
|
55
|
+
const { agent_id } = params;
|
|
56
|
+
return this._client.get((0, path_1.path) `/v2/agents/${agent_id}/runs/${runID}/events`, {
|
|
57
|
+
...options,
|
|
58
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Runs = Runs;
|
|
63
|
+
//# sourceMappingURL=runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/resources/agents/runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAe,EAAE,IAAqB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,KAAa,EAAE,MAAoB,EAAE,OAAwB;QAC/D,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAa,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,SAAS,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,KAAa,EAAE,MAA6B,EAAE,OAAwB;QACjF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,SAAS,KAAK,SAAS,EAAE;YACzE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA7DD,oBA6DC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Runs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Start an agent run. The run executes asynchronously: the response returns
|
|
8
|
+
* immediately with status `queued`, then poll `GET .../runs/{run_id}` until
|
|
9
|
+
* `completed` and fetch the output from `GET .../runs/{run_id}/result` — or set
|
|
10
|
+
* `enable_events: true` and follow `GET .../runs/{run_id}/events` for live
|
|
11
|
+
* progress.
|
|
12
|
+
*
|
|
13
|
+
* To enrich existing records instead of researching from scratch, pass them in
|
|
14
|
+
* `input_data`; this requires an `output_schema` (on the request or the agent).
|
|
15
|
+
*/
|
|
16
|
+
create(agentID, body, options) {
|
|
17
|
+
return this._client.post(path `/v2/agents/${agentID}/runs`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List the runs of an agent, newest first, paginated with `offset`/`limit`.
|
|
21
|
+
*/
|
|
22
|
+
list(agentID, query = {}, options) {
|
|
23
|
+
return this._client.get(path `/v2/agents/${agentID}/runs`, { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve a run's current state. Poll this endpoint after creating a run: the run
|
|
27
|
+
* is finished once `status` is `completed`, `failed`, or `cancelled`.
|
|
28
|
+
*/
|
|
29
|
+
get(runID, params, options) {
|
|
30
|
+
const { agent_id } = params;
|
|
31
|
+
return this._client.get(path `/v2/agents/${agent_id}/runs/${runID}`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetch the output of a completed run. The `output` is `type: "text"` (a prose
|
|
35
|
+
* answer) or `type: "json"` (structured data matching the output schema), plus
|
|
36
|
+
* `trust` metadata with per-claim citations for the answer.
|
|
37
|
+
*
|
|
38
|
+
* While the run is still `queued` or `running` this endpoint returns `409`; if the
|
|
39
|
+
* run `failed` or was `cancelled` it returns `422` with the run and error details.
|
|
40
|
+
*/
|
|
41
|
+
result(runID, params, options) {
|
|
42
|
+
const { agent_id } = params;
|
|
43
|
+
return this._client.get(path `/v2/agents/${agent_id}/runs/${runID}/result`, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Stream a run's progress as
|
|
47
|
+
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)
|
|
48
|
+
* (`text/event-stream`). Create the run with `enable_events: true` to have events
|
|
49
|
+
* published. A keep-alive comment is sent every 15 seconds.
|
|
50
|
+
*/
|
|
51
|
+
streamEvents(runID, params, options) {
|
|
52
|
+
const { agent_id } = params;
|
|
53
|
+
return this._client.get(path `/v2/agents/${agent_id}/runs/${runID}/events`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=runs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.mjs","sourceRoot":"","sources":["../../src/resources/agents/runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAe,EAAE,IAAqB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,KAAa,EAAE,MAAoB,EAAE,OAAwB;QAC/D,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,QAAQ,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAa,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,QAAQ,SAAS,KAAK,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,KAAa,EAAE,MAA6B,EAAE,OAAwB;QACjF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,QAAQ,SAAS,KAAK,SAAS,EAAE;YACzE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Templates extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List the pre-built agent templates available to your account. Use a template's
|
|
7
|
+
* `template_name` with `POST /v2/agents` to create an agent instance from it.
|
|
8
|
+
*/
|
|
9
|
+
list(query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<TemplateListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a single agent template by its stable `template_name`.
|
|
12
|
+
*/
|
|
13
|
+
get(templateName: string, options?: RequestOptions): APIPromise<TemplateGetResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface TemplateListResponse {
|
|
16
|
+
/**
|
|
17
|
+
* Items returned in this page.
|
|
18
|
+
*/
|
|
19
|
+
items: Array<TemplateListResponse.Item>;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of items returned.
|
|
22
|
+
*/
|
|
23
|
+
limit: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of items skipped before this page.
|
|
26
|
+
*/
|
|
27
|
+
offset: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total number of items matching the query.
|
|
30
|
+
*/
|
|
31
|
+
total: number;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace TemplateListResponse {
|
|
34
|
+
interface Item {
|
|
35
|
+
/**
|
|
36
|
+
* Unique template identifier (wsat\_<uuid>).
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* When the template was created.
|
|
41
|
+
*/
|
|
42
|
+
created_at: string;
|
|
43
|
+
/**
|
|
44
|
+
* Template description shown to users.
|
|
45
|
+
*/
|
|
46
|
+
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* Human-friendly template name shown to users.
|
|
49
|
+
*/
|
|
50
|
+
display_name: string;
|
|
51
|
+
/**
|
|
52
|
+
* Domain expertise or operating context for the template.
|
|
53
|
+
*/
|
|
54
|
+
domain_expertise: string;
|
|
55
|
+
/**
|
|
56
|
+
* Default effort level for runs created from this template.
|
|
57
|
+
*/
|
|
58
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
59
|
+
/**
|
|
60
|
+
* Ordered goals for the template.
|
|
61
|
+
*/
|
|
62
|
+
goals: Array<Item.Goal>;
|
|
63
|
+
/**
|
|
64
|
+
* Icon identifier used when presenting the template.
|
|
65
|
+
*/
|
|
66
|
+
icon: string;
|
|
67
|
+
/**
|
|
68
|
+
* JSON schema describing the structured output the agent should produce.
|
|
69
|
+
*/
|
|
70
|
+
output_schema: {
|
|
71
|
+
[key: string]: unknown;
|
|
72
|
+
} | null;
|
|
73
|
+
/**
|
|
74
|
+
* Ordered source groups for the template.
|
|
75
|
+
*/
|
|
76
|
+
sources: Array<Item.Source>;
|
|
77
|
+
/**
|
|
78
|
+
* Suggested prompts for the template.
|
|
79
|
+
*/
|
|
80
|
+
suggested_questions: Array<Item.SuggestedQuestion>;
|
|
81
|
+
/**
|
|
82
|
+
* Stable template name used to create agent instances.
|
|
83
|
+
*/
|
|
84
|
+
template_name: string;
|
|
85
|
+
/**
|
|
86
|
+
* When the template was last updated.
|
|
87
|
+
*/
|
|
88
|
+
updated_at: string;
|
|
89
|
+
/**
|
|
90
|
+
* Primary use case supported by the template.
|
|
91
|
+
*/
|
|
92
|
+
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
93
|
+
}
|
|
94
|
+
namespace Item {
|
|
95
|
+
interface Goal {
|
|
96
|
+
/**
|
|
97
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* Goal text.
|
|
102
|
+
*/
|
|
103
|
+
goal: string;
|
|
104
|
+
/**
|
|
105
|
+
* Zero-based goal position.
|
|
106
|
+
*/
|
|
107
|
+
order: number;
|
|
108
|
+
}
|
|
109
|
+
interface Source {
|
|
110
|
+
/**
|
|
111
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
/**
|
|
115
|
+
* Domains included in this source group.
|
|
116
|
+
*/
|
|
117
|
+
domains: Array<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Zero-based source group position.
|
|
120
|
+
*/
|
|
121
|
+
order: number;
|
|
122
|
+
/**
|
|
123
|
+
* Source group title.
|
|
124
|
+
*/
|
|
125
|
+
title: string;
|
|
126
|
+
}
|
|
127
|
+
interface SuggestedQuestion {
|
|
128
|
+
/**
|
|
129
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
/**
|
|
133
|
+
* Zero-based suggested question position.
|
|
134
|
+
*/
|
|
135
|
+
order: number;
|
|
136
|
+
/**
|
|
137
|
+
* Suggested prompt text.
|
|
138
|
+
*/
|
|
139
|
+
question: string;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export interface TemplateGetResponse {
|
|
144
|
+
/**
|
|
145
|
+
* Unique template identifier (wsat\_<uuid>).
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* When the template was created.
|
|
150
|
+
*/
|
|
151
|
+
created_at: string;
|
|
152
|
+
/**
|
|
153
|
+
* Template description shown to users.
|
|
154
|
+
*/
|
|
155
|
+
description: string;
|
|
156
|
+
/**
|
|
157
|
+
* Human-friendly template name shown to users.
|
|
158
|
+
*/
|
|
159
|
+
display_name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Domain expertise or operating context for the template.
|
|
162
|
+
*/
|
|
163
|
+
domain_expertise: string;
|
|
164
|
+
/**
|
|
165
|
+
* Default effort level for runs created from this template.
|
|
166
|
+
*/
|
|
167
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
168
|
+
/**
|
|
169
|
+
* Ordered goals for the template.
|
|
170
|
+
*/
|
|
171
|
+
goals: Array<TemplateGetResponse.Goal>;
|
|
172
|
+
/**
|
|
173
|
+
* Icon identifier used when presenting the template.
|
|
174
|
+
*/
|
|
175
|
+
icon: string;
|
|
176
|
+
/**
|
|
177
|
+
* JSON schema describing the structured output the agent should produce.
|
|
178
|
+
*/
|
|
179
|
+
output_schema: {
|
|
180
|
+
[key: string]: unknown;
|
|
181
|
+
} | null;
|
|
182
|
+
/**
|
|
183
|
+
* Ordered source groups for the template.
|
|
184
|
+
*/
|
|
185
|
+
sources: Array<TemplateGetResponse.Source>;
|
|
186
|
+
/**
|
|
187
|
+
* Suggested prompts for the template.
|
|
188
|
+
*/
|
|
189
|
+
suggested_questions: Array<TemplateGetResponse.SuggestedQuestion>;
|
|
190
|
+
/**
|
|
191
|
+
* Stable template name used to create agent instances.
|
|
192
|
+
*/
|
|
193
|
+
template_name: string;
|
|
194
|
+
/**
|
|
195
|
+
* When the template was last updated.
|
|
196
|
+
*/
|
|
197
|
+
updated_at: string;
|
|
198
|
+
/**
|
|
199
|
+
* Primary use case supported by the template.
|
|
200
|
+
*/
|
|
201
|
+
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
202
|
+
}
|
|
203
|
+
export declare namespace TemplateGetResponse {
|
|
204
|
+
interface Goal {
|
|
205
|
+
/**
|
|
206
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
207
|
+
*/
|
|
208
|
+
id: string;
|
|
209
|
+
/**
|
|
210
|
+
* Goal text.
|
|
211
|
+
*/
|
|
212
|
+
goal: string;
|
|
213
|
+
/**
|
|
214
|
+
* Zero-based goal position.
|
|
215
|
+
*/
|
|
216
|
+
order: number;
|
|
217
|
+
}
|
|
218
|
+
interface Source {
|
|
219
|
+
/**
|
|
220
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
221
|
+
*/
|
|
222
|
+
id: string;
|
|
223
|
+
/**
|
|
224
|
+
* Domains included in this source group.
|
|
225
|
+
*/
|
|
226
|
+
domains: Array<string>;
|
|
227
|
+
/**
|
|
228
|
+
* Zero-based source group position.
|
|
229
|
+
*/
|
|
230
|
+
order: number;
|
|
231
|
+
/**
|
|
232
|
+
* Source group title.
|
|
233
|
+
*/
|
|
234
|
+
title: string;
|
|
235
|
+
}
|
|
236
|
+
interface SuggestedQuestion {
|
|
237
|
+
/**
|
|
238
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
239
|
+
*/
|
|
240
|
+
id: string;
|
|
241
|
+
/**
|
|
242
|
+
* Zero-based suggested question position.
|
|
243
|
+
*/
|
|
244
|
+
order: number;
|
|
245
|
+
/**
|
|
246
|
+
* Suggested prompt text.
|
|
247
|
+
*/
|
|
248
|
+
question: string;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
export interface TemplateListParams {
|
|
252
|
+
limit?: number;
|
|
253
|
+
offset?: number;
|
|
254
|
+
}
|
|
255
|
+
export declare namespace Templates {
|
|
256
|
+
export { type TemplateListResponse as TemplateListResponse, type TemplateGetResponse as TemplateGetResponse, type TemplateListParams as TemplateListParams, };
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=templates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.mts","sourceRoot":"","sources":["../../src/resources/agents/templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;QAErD;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExB;;WAEG;QACH,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AAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Templates extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List the pre-built agent templates available to your account. Use a template's
|
|
7
|
+
* `template_name` with `POST /v2/agents` to create an agent instance from it.
|
|
8
|
+
*/
|
|
9
|
+
list(query?: TemplateListParams | null | undefined, options?: RequestOptions): APIPromise<TemplateListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a single agent template by its stable `template_name`.
|
|
12
|
+
*/
|
|
13
|
+
get(templateName: string, options?: RequestOptions): APIPromise<TemplateGetResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface TemplateListResponse {
|
|
16
|
+
/**
|
|
17
|
+
* Items returned in this page.
|
|
18
|
+
*/
|
|
19
|
+
items: Array<TemplateListResponse.Item>;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of items returned.
|
|
22
|
+
*/
|
|
23
|
+
limit: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of items skipped before this page.
|
|
26
|
+
*/
|
|
27
|
+
offset: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total number of items matching the query.
|
|
30
|
+
*/
|
|
31
|
+
total: number;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace TemplateListResponse {
|
|
34
|
+
interface Item {
|
|
35
|
+
/**
|
|
36
|
+
* Unique template identifier (wsat\_<uuid>).
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* When the template was created.
|
|
41
|
+
*/
|
|
42
|
+
created_at: string;
|
|
43
|
+
/**
|
|
44
|
+
* Template description shown to users.
|
|
45
|
+
*/
|
|
46
|
+
description: string;
|
|
47
|
+
/**
|
|
48
|
+
* Human-friendly template name shown to users.
|
|
49
|
+
*/
|
|
50
|
+
display_name: string;
|
|
51
|
+
/**
|
|
52
|
+
* Domain expertise or operating context for the template.
|
|
53
|
+
*/
|
|
54
|
+
domain_expertise: string;
|
|
55
|
+
/**
|
|
56
|
+
* Default effort level for runs created from this template.
|
|
57
|
+
*/
|
|
58
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
59
|
+
/**
|
|
60
|
+
* Ordered goals for the template.
|
|
61
|
+
*/
|
|
62
|
+
goals: Array<Item.Goal>;
|
|
63
|
+
/**
|
|
64
|
+
* Icon identifier used when presenting the template.
|
|
65
|
+
*/
|
|
66
|
+
icon: string;
|
|
67
|
+
/**
|
|
68
|
+
* JSON schema describing the structured output the agent should produce.
|
|
69
|
+
*/
|
|
70
|
+
output_schema: {
|
|
71
|
+
[key: string]: unknown;
|
|
72
|
+
} | null;
|
|
73
|
+
/**
|
|
74
|
+
* Ordered source groups for the template.
|
|
75
|
+
*/
|
|
76
|
+
sources: Array<Item.Source>;
|
|
77
|
+
/**
|
|
78
|
+
* Suggested prompts for the template.
|
|
79
|
+
*/
|
|
80
|
+
suggested_questions: Array<Item.SuggestedQuestion>;
|
|
81
|
+
/**
|
|
82
|
+
* Stable template name used to create agent instances.
|
|
83
|
+
*/
|
|
84
|
+
template_name: string;
|
|
85
|
+
/**
|
|
86
|
+
* When the template was last updated.
|
|
87
|
+
*/
|
|
88
|
+
updated_at: string;
|
|
89
|
+
/**
|
|
90
|
+
* Primary use case supported by the template.
|
|
91
|
+
*/
|
|
92
|
+
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
93
|
+
}
|
|
94
|
+
namespace Item {
|
|
95
|
+
interface Goal {
|
|
96
|
+
/**
|
|
97
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* Goal text.
|
|
102
|
+
*/
|
|
103
|
+
goal: string;
|
|
104
|
+
/**
|
|
105
|
+
* Zero-based goal position.
|
|
106
|
+
*/
|
|
107
|
+
order: number;
|
|
108
|
+
}
|
|
109
|
+
interface Source {
|
|
110
|
+
/**
|
|
111
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
/**
|
|
115
|
+
* Domains included in this source group.
|
|
116
|
+
*/
|
|
117
|
+
domains: Array<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Zero-based source group position.
|
|
120
|
+
*/
|
|
121
|
+
order: number;
|
|
122
|
+
/**
|
|
123
|
+
* Source group title.
|
|
124
|
+
*/
|
|
125
|
+
title: string;
|
|
126
|
+
}
|
|
127
|
+
interface SuggestedQuestion {
|
|
128
|
+
/**
|
|
129
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
/**
|
|
133
|
+
* Zero-based suggested question position.
|
|
134
|
+
*/
|
|
135
|
+
order: number;
|
|
136
|
+
/**
|
|
137
|
+
* Suggested prompt text.
|
|
138
|
+
*/
|
|
139
|
+
question: string;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export interface TemplateGetResponse {
|
|
144
|
+
/**
|
|
145
|
+
* Unique template identifier (wsat\_<uuid>).
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* When the template was created.
|
|
150
|
+
*/
|
|
151
|
+
created_at: string;
|
|
152
|
+
/**
|
|
153
|
+
* Template description shown to users.
|
|
154
|
+
*/
|
|
155
|
+
description: string;
|
|
156
|
+
/**
|
|
157
|
+
* Human-friendly template name shown to users.
|
|
158
|
+
*/
|
|
159
|
+
display_name: string;
|
|
160
|
+
/**
|
|
161
|
+
* Domain expertise or operating context for the template.
|
|
162
|
+
*/
|
|
163
|
+
domain_expertise: string;
|
|
164
|
+
/**
|
|
165
|
+
* Default effort level for runs created from this template.
|
|
166
|
+
*/
|
|
167
|
+
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
168
|
+
/**
|
|
169
|
+
* Ordered goals for the template.
|
|
170
|
+
*/
|
|
171
|
+
goals: Array<TemplateGetResponse.Goal>;
|
|
172
|
+
/**
|
|
173
|
+
* Icon identifier used when presenting the template.
|
|
174
|
+
*/
|
|
175
|
+
icon: string;
|
|
176
|
+
/**
|
|
177
|
+
* JSON schema describing the structured output the agent should produce.
|
|
178
|
+
*/
|
|
179
|
+
output_schema: {
|
|
180
|
+
[key: string]: unknown;
|
|
181
|
+
} | null;
|
|
182
|
+
/**
|
|
183
|
+
* Ordered source groups for the template.
|
|
184
|
+
*/
|
|
185
|
+
sources: Array<TemplateGetResponse.Source>;
|
|
186
|
+
/**
|
|
187
|
+
* Suggested prompts for the template.
|
|
188
|
+
*/
|
|
189
|
+
suggested_questions: Array<TemplateGetResponse.SuggestedQuestion>;
|
|
190
|
+
/**
|
|
191
|
+
* Stable template name used to create agent instances.
|
|
192
|
+
*/
|
|
193
|
+
template_name: string;
|
|
194
|
+
/**
|
|
195
|
+
* When the template was last updated.
|
|
196
|
+
*/
|
|
197
|
+
updated_at: string;
|
|
198
|
+
/**
|
|
199
|
+
* Primary use case supported by the template.
|
|
200
|
+
*/
|
|
201
|
+
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
202
|
+
}
|
|
203
|
+
export declare namespace TemplateGetResponse {
|
|
204
|
+
interface Goal {
|
|
205
|
+
/**
|
|
206
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
207
|
+
*/
|
|
208
|
+
id: string;
|
|
209
|
+
/**
|
|
210
|
+
* Goal text.
|
|
211
|
+
*/
|
|
212
|
+
goal: string;
|
|
213
|
+
/**
|
|
214
|
+
* Zero-based goal position.
|
|
215
|
+
*/
|
|
216
|
+
order: number;
|
|
217
|
+
}
|
|
218
|
+
interface Source {
|
|
219
|
+
/**
|
|
220
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
221
|
+
*/
|
|
222
|
+
id: string;
|
|
223
|
+
/**
|
|
224
|
+
* Domains included in this source group.
|
|
225
|
+
*/
|
|
226
|
+
domains: Array<string>;
|
|
227
|
+
/**
|
|
228
|
+
* Zero-based source group position.
|
|
229
|
+
*/
|
|
230
|
+
order: number;
|
|
231
|
+
/**
|
|
232
|
+
* Source group title.
|
|
233
|
+
*/
|
|
234
|
+
title: string;
|
|
235
|
+
}
|
|
236
|
+
interface SuggestedQuestion {
|
|
237
|
+
/**
|
|
238
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
239
|
+
*/
|
|
240
|
+
id: string;
|
|
241
|
+
/**
|
|
242
|
+
* Zero-based suggested question position.
|
|
243
|
+
*/
|
|
244
|
+
order: number;
|
|
245
|
+
/**
|
|
246
|
+
* Suggested prompt text.
|
|
247
|
+
*/
|
|
248
|
+
question: string;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
export interface TemplateListParams {
|
|
252
|
+
limit?: number;
|
|
253
|
+
offset?: number;
|
|
254
|
+
}
|
|
255
|
+
export declare namespace Templates {
|
|
256
|
+
export { type TemplateListResponse as TemplateListResponse, type TemplateGetResponse as TemplateGetResponse, type TemplateListParams as TemplateListParams, };
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=templates.d.ts.map
|