@letta-ai/letta-client 1.1.2 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +23 -13
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +23 -13
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/tools.d.mts +59 -1
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +59 -1
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +10 -0
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +10 -0
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives/archives.d.mts +3 -3
- package/resources/archives/archives.d.mts.map +1 -1
- package/resources/archives/archives.d.ts +3 -3
- package/resources/archives/archives.d.ts.map +1 -1
- package/resources/archives/archives.js +5 -1
- package/resources/archives/archives.js.map +1 -1
- package/resources/archives/archives.mjs +5 -1
- package/resources/archives/archives.mjs.map +1 -1
- package/resources/archives/index.d.mts +1 -1
- package/resources/archives/index.d.mts.map +1 -1
- package/resources/archives/index.d.ts +1 -1
- package/resources/archives/index.d.ts.map +1 -1
- package/resources/archives/index.js.map +1 -1
- package/resources/archives/index.mjs +1 -1
- package/resources/archives/index.mjs.map +1 -1
- package/resources/archives/passages.d.mts +3 -71
- package/resources/archives/passages.d.mts.map +1 -1
- package/resources/archives/passages.d.ts +3 -71
- package/resources/archives/passages.d.ts.map +1 -1
- package/resources/blocks/agents.d.mts +4 -4
- package/resources/blocks/agents.d.ts +4 -4
- package/resources/blocks/blocks.d.mts +9 -8
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +9 -8
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +1 -1
- package/resources/mcp-servers/index.d.mts.map +1 -1
- package/resources/mcp-servers/index.d.ts +1 -1
- package/resources/mcp-servers/index.d.ts.map +1 -1
- package/resources/mcp-servers/index.js.map +1 -1
- package/resources/mcp-servers/index.mjs.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +1 -41
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +1 -41
- 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/mcp-servers/tools.d.mts +4 -4
- package/resources/mcp-servers/tools.d.mts.map +1 -1
- package/resources/mcp-servers/tools.d.ts +4 -4
- package/resources/mcp-servers/tools.d.ts.map +1 -1
- package/resources/mcp-servers/tools.js +1 -1
- package/resources/mcp-servers/tools.mjs +1 -1
- package/resources/messages.d.mts +114 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +114 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +24 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +20 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/models/models.d.mts +21 -0
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +21 -0
- 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/passages.d.mts +150 -0
- package/resources/passages.d.mts.map +1 -0
- package/resources/passages.d.ts +150 -0
- package/resources/passages.d.ts.map +1 -0
- package/resources/passages.js +25 -0
- package/resources/passages.js.map +1 -0
- package/resources/passages.mjs +21 -0
- package/resources/passages.mjs.map +1 -0
- package/resources/tools.d.mts +83 -1
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +83 -1
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +11 -0
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +11 -0
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +39 -4
- package/src/resources/agents/agents.ts +36 -12
- package/src/resources/agents/index.ts +3 -0
- package/src/resources/agents/tools.ts +70 -0
- package/src/resources/archives/archives.ts +7 -4
- package/src/resources/archives/index.ts +1 -6
- package/src/resources/archives/passages.ts +3 -88
- package/src/resources/blocks/agents.ts +4 -4
- package/src/resources/blocks/blocks.ts +9 -8
- package/src/resources/index.ts +14 -2
- package/src/resources/mcp-servers/index.ts +0 -2
- package/src/resources/mcp-servers/mcp-servers.ts +0 -47
- package/src/resources/mcp-servers/tools.ts +4 -4
- package/src/resources/messages.ts +165 -0
- package/src/resources/models/models.ts +33 -0
- package/src/resources/passages.ts +182 -0
- package/src/resources/tools.ts +105 -0
- 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
package/resources/tools.js
CHANGED
|
@@ -36,6 +36,17 @@ class Tools extends resource_1.APIResource {
|
|
|
36
36
|
delete(toolID, options) {
|
|
37
37
|
return this._client.delete((0, path_1.path) `/v1/tools/${toolID}`, options);
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Search tools using semantic search.
|
|
41
|
+
*
|
|
42
|
+
* Requires tool embedding to be enabled (embed_tools=True). Uses vector search,
|
|
43
|
+
* full-text search, or hybrid mode to find tools matching the query.
|
|
44
|
+
*
|
|
45
|
+
* Returns tools ranked by relevance with their search scores.
|
|
46
|
+
*/
|
|
47
|
+
search(body, options) {
|
|
48
|
+
return this._client.post('/v1/tools/search', { body, ...options });
|
|
49
|
+
}
|
|
39
50
|
/**
|
|
40
51
|
* Create or update a tool
|
|
41
52
|
*/
|
package/resources/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAkF;AAElF,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,sBAAe,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAkF;AAElF,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,sBAAe,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAhED,sBAgEC"}
|
package/resources/tools.mjs
CHANGED
|
@@ -33,6 +33,17 @@ export class Tools extends APIResource {
|
|
|
33
33
|
delete(toolID, options) {
|
|
34
34
|
return this._client.delete(path `/v1/tools/${toolID}`, options);
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Search tools using semantic search.
|
|
38
|
+
*
|
|
39
|
+
* Requires tool embedding to be enabled (embed_tools=True). Uses vector search,
|
|
40
|
+
* full-text search, or hybrid mode to find tools matching the query.
|
|
41
|
+
*
|
|
42
|
+
* Returns tools ranked by relevance with their search scores.
|
|
43
|
+
*/
|
|
44
|
+
search(body, options) {
|
|
45
|
+
return this._client.post('/v1/tools/search', { body, ...options });
|
|
46
|
+
}
|
|
36
47
|
/**
|
|
37
48
|
* Create or update a tool
|
|
38
49
|
*/
|
package/resources/tools.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,SAAe,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,SAAe,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -38,6 +38,16 @@ import {
|
|
|
38
38
|
AccessTokenListResponse,
|
|
39
39
|
AccessTokens,
|
|
40
40
|
} from './resources/access-tokens';
|
|
41
|
+
import {
|
|
42
|
+
MessageListParams,
|
|
43
|
+
MessageListResponse,
|
|
44
|
+
MessageSearchParams,
|
|
45
|
+
MessageSearchRequest,
|
|
46
|
+
MessageSearchResponse,
|
|
47
|
+
MessageSearchResult,
|
|
48
|
+
Messages,
|
|
49
|
+
} from './resources/messages';
|
|
50
|
+
import { Passage, PassageSearchParams, PassageSearchResponse, Passages } from './resources/passages';
|
|
41
51
|
import { TagListParams, TagListResponse, Tags } from './resources/tags';
|
|
42
52
|
import {
|
|
43
53
|
NpmRequirement,
|
|
@@ -48,6 +58,10 @@ import {
|
|
|
48
58
|
ToolDeleteResponse,
|
|
49
59
|
ToolListParams,
|
|
50
60
|
ToolReturnMessage,
|
|
61
|
+
ToolSearchParams,
|
|
62
|
+
ToolSearchRequest,
|
|
63
|
+
ToolSearchResponse,
|
|
64
|
+
ToolSearchResult,
|
|
51
65
|
ToolType,
|
|
52
66
|
ToolUpdateParams,
|
|
53
67
|
ToolUpsertBaseToolsResponse,
|
|
@@ -171,11 +185,9 @@ import {
|
|
|
171
185
|
McpServerUpdateParams,
|
|
172
186
|
McpServerUpdateResponse,
|
|
173
187
|
McpServers,
|
|
174
|
-
McpToolExecuteRequest,
|
|
175
188
|
SseMcpServer,
|
|
176
189
|
StdioMcpServer,
|
|
177
190
|
StreamableHTTPMcpServer,
|
|
178
|
-
ToolExecutionResult,
|
|
179
191
|
UpdateSseMcpServer,
|
|
180
192
|
UpdateStdioMcpServer,
|
|
181
193
|
UpdateStreamableHTTPMcpServer,
|
|
@@ -956,6 +968,8 @@ export class Letta {
|
|
|
956
968
|
tags: API.Tags = new API.Tags(this);
|
|
957
969
|
identities: API.Identities = new API.Identities(this);
|
|
958
970
|
groups: API.Groups = new API.Groups(this);
|
|
971
|
+
messages: API.Messages = new API.Messages(this);
|
|
972
|
+
passages: API.Passages = new API.Passages(this);
|
|
959
973
|
batches: API.Batches = new API.Batches(this);
|
|
960
974
|
accessTokens: API.AccessTokens = new API.AccessTokens(this);
|
|
961
975
|
}
|
|
@@ -973,6 +987,8 @@ Letta.Templates = Templates;
|
|
|
973
987
|
Letta.Tags = Tags;
|
|
974
988
|
Letta.Identities = Identities;
|
|
975
989
|
Letta.Groups = Groups;
|
|
990
|
+
Letta.Messages = Messages;
|
|
991
|
+
Letta.Passages = Passages;
|
|
976
992
|
Letta.Batches = Batches;
|
|
977
993
|
Letta.AccessTokens = AccessTokens;
|
|
978
994
|
|
|
@@ -1041,13 +1057,17 @@ export declare namespace Letta {
|
|
|
1041
1057
|
type Tool as Tool,
|
|
1042
1058
|
type ToolCreate as ToolCreate,
|
|
1043
1059
|
type ToolReturnMessage as ToolReturnMessage,
|
|
1060
|
+
type ToolSearchRequest as ToolSearchRequest,
|
|
1061
|
+
type ToolSearchResult as ToolSearchResult,
|
|
1044
1062
|
type ToolType as ToolType,
|
|
1045
1063
|
type ToolDeleteResponse as ToolDeleteResponse,
|
|
1064
|
+
type ToolSearchResponse as ToolSearchResponse,
|
|
1046
1065
|
type ToolUpsertBaseToolsResponse as ToolUpsertBaseToolsResponse,
|
|
1047
1066
|
type ToolsArrayPage as ToolsArrayPage,
|
|
1048
1067
|
type ToolCreateParams as ToolCreateParams,
|
|
1049
1068
|
type ToolUpdateParams as ToolUpdateParams,
|
|
1050
1069
|
type ToolListParams as ToolListParams,
|
|
1070
|
+
type ToolSearchParams as ToolSearchParams,
|
|
1051
1071
|
type ToolUpsertParams as ToolUpsertParams,
|
|
1052
1072
|
};
|
|
1053
1073
|
|
|
@@ -1099,11 +1119,9 @@ export declare namespace Letta {
|
|
|
1099
1119
|
type CreateSseMcpServer as CreateSseMcpServer,
|
|
1100
1120
|
type CreateStdioMcpServer as CreateStdioMcpServer,
|
|
1101
1121
|
type CreateStreamableHTTPMcpServer as CreateStreamableHTTPMcpServer,
|
|
1102
|
-
type McpToolExecuteRequest as McpToolExecuteRequest,
|
|
1103
1122
|
type SseMcpServer as SseMcpServer,
|
|
1104
1123
|
type StdioMcpServer as StdioMcpServer,
|
|
1105
1124
|
type StreamableHTTPMcpServer as StreamableHTTPMcpServer,
|
|
1106
|
-
type ToolExecutionResult as ToolExecutionResult,
|
|
1107
1125
|
type UpdateSseMcpServer as UpdateSseMcpServer,
|
|
1108
1126
|
type UpdateStdioMcpServer as UpdateStdioMcpServer,
|
|
1109
1127
|
type UpdateStreamableHTTPMcpServer as UpdateStreamableHTTPMcpServer,
|
|
@@ -1165,6 +1183,23 @@ export declare namespace Letta {
|
|
|
1165
1183
|
type GroupListParams as GroupListParams,
|
|
1166
1184
|
};
|
|
1167
1185
|
|
|
1186
|
+
export {
|
|
1187
|
+
Messages as Messages,
|
|
1188
|
+
type MessageSearchRequest as MessageSearchRequest,
|
|
1189
|
+
type MessageSearchResult as MessageSearchResult,
|
|
1190
|
+
type MessageListResponse as MessageListResponse,
|
|
1191
|
+
type MessageSearchResponse as MessageSearchResponse,
|
|
1192
|
+
type MessageListParams as MessageListParams,
|
|
1193
|
+
type MessageSearchParams as MessageSearchParams,
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
export {
|
|
1197
|
+
Passages as Passages,
|
|
1198
|
+
type Passage as Passage,
|
|
1199
|
+
type PassageSearchResponse as PassageSearchResponse,
|
|
1200
|
+
type PassageSearchParams as PassageSearchParams,
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1168
1203
|
export {
|
|
1169
1204
|
Batches as Batches,
|
|
1170
1205
|
type BatchJob as BatchJob,
|
|
@@ -107,7 +107,16 @@ import {
|
|
|
107
107
|
UserMessage,
|
|
108
108
|
} from './messages';
|
|
109
109
|
import * as AgentsToolsAPI from './tools';
|
|
110
|
-
import {
|
|
110
|
+
import {
|
|
111
|
+
ToolAttachParams,
|
|
112
|
+
ToolDetachParams,
|
|
113
|
+
ToolExecuteRequest,
|
|
114
|
+
ToolExecutionResult,
|
|
115
|
+
ToolListParams,
|
|
116
|
+
ToolRunParams,
|
|
117
|
+
ToolUpdateApprovalParams,
|
|
118
|
+
Tools,
|
|
119
|
+
} from './tools';
|
|
111
120
|
import * as ArchivesArchivesAPI from '../archives/archives';
|
|
112
121
|
import * as BlocksBlocksAPI from '../blocks/blocks';
|
|
113
122
|
import * as GroupsGroupsAPI from '../groups/groups';
|
|
@@ -740,6 +749,12 @@ export type AgentType =
|
|
|
740
749
|
| 'voice_sleeptime_agent';
|
|
741
750
|
|
|
742
751
|
export interface AnthropicModelSettings {
|
|
752
|
+
/**
|
|
753
|
+
* Effort level for Opus 4.5 model (controls token conservation). Not setting this
|
|
754
|
+
* gives similar performance to 'high'.
|
|
755
|
+
*/
|
|
756
|
+
effort?: 'low' | 'medium' | 'high' | null;
|
|
757
|
+
|
|
743
758
|
/**
|
|
744
759
|
* The maximum number of tokens the model can generate.
|
|
745
760
|
*/
|
|
@@ -755,6 +770,11 @@ export interface AnthropicModelSettings {
|
|
|
755
770
|
*/
|
|
756
771
|
provider_type?: 'anthropic';
|
|
757
772
|
|
|
773
|
+
/**
|
|
774
|
+
* The response format for the model.
|
|
775
|
+
*/
|
|
776
|
+
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
777
|
+
|
|
758
778
|
/**
|
|
759
779
|
* The temperature of the model.
|
|
760
780
|
*/
|
|
@@ -1657,7 +1677,8 @@ export interface AgentCreateParams {
|
|
|
1657
1677
|
reasoning?: boolean | null;
|
|
1658
1678
|
|
|
1659
1679
|
/**
|
|
1660
|
-
*
|
|
1680
|
+
* @deprecated Deprecated: Use `model_settings` field to configure response format
|
|
1681
|
+
* instead. The response format for the agent.
|
|
1661
1682
|
*/
|
|
1662
1683
|
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1663
1684
|
|
|
@@ -1746,10 +1767,10 @@ export interface AgentRetrieveParams {
|
|
|
1746
1767
|
>;
|
|
1747
1768
|
|
|
1748
1769
|
/**
|
|
1749
|
-
* Specify which relational fields (e.g., 'tools', 'sources', 'memory')
|
|
1750
|
-
* in the response. If not provided, all relationships are loaded by
|
|
1751
|
-
* this can optimize performance by reducing unnecessary joins.This
|
|
1752
|
-
* parameter, and no longer supported after 1.0.0 SDK versions.
|
|
1770
|
+
* @deprecated Specify which relational fields (e.g., 'tools', 'sources', 'memory')
|
|
1771
|
+
* to include in the response. If not provided, all relationships are loaded by
|
|
1772
|
+
* default. Using this can optimize performance by reducing unnecessary joins.This
|
|
1773
|
+
* is a legacy parameter, and no longer supported after 1.0.0 SDK versions.
|
|
1753
1774
|
*/
|
|
1754
1775
|
include_relationships?: Array<string> | null;
|
|
1755
1776
|
}
|
|
@@ -1909,8 +1930,8 @@ export interface AgentUpdateParams {
|
|
|
1909
1930
|
reasoning?: boolean | null;
|
|
1910
1931
|
|
|
1911
1932
|
/**
|
|
1912
|
-
* @deprecated Deprecated: Use `
|
|
1913
|
-
* The response format for the agent.
|
|
1933
|
+
* @deprecated Deprecated: Use `model_settings` field to configure response format
|
|
1934
|
+
* instead. The response format for the agent.
|
|
1914
1935
|
*/
|
|
1915
1936
|
response_format?: TextResponseFormat | JsonSchemaResponseFormat | JsonObjectResponseFormat | null;
|
|
1916
1937
|
|
|
@@ -2008,10 +2029,10 @@ export interface AgentListParams extends ArrayPageParams {
|
|
|
2008
2029
|
>;
|
|
2009
2030
|
|
|
2010
2031
|
/**
|
|
2011
|
-
* Specify which relational fields (e.g., 'tools', 'sources', 'memory')
|
|
2012
|
-
* in the response. If not provided, all relationships are loaded by
|
|
2013
|
-
* this can optimize performance by reducing unnecessary joins.This
|
|
2014
|
-
* parameter, and no longer supported after 1.0.0 SDK versions.
|
|
2032
|
+
* @deprecated Specify which relational fields (e.g., 'tools', 'sources', 'memory')
|
|
2033
|
+
* to include in the response. If not provided, all relationships are loaded by
|
|
2034
|
+
* default. Using this can optimize performance by reducing unnecessary joins.This
|
|
2035
|
+
* is a legacy parameter, and no longer supported after 1.0.0 SDK versions.
|
|
2015
2036
|
*/
|
|
2016
2037
|
include_relationships?: Array<string> | null;
|
|
2017
2038
|
|
|
@@ -2257,9 +2278,12 @@ export declare namespace Agents {
|
|
|
2257
2278
|
|
|
2258
2279
|
export {
|
|
2259
2280
|
Tools as Tools,
|
|
2281
|
+
type ToolExecuteRequest as ToolExecuteRequest,
|
|
2282
|
+
type ToolExecutionResult as ToolExecutionResult,
|
|
2260
2283
|
type ToolListParams as ToolListParams,
|
|
2261
2284
|
type ToolAttachParams as ToolAttachParams,
|
|
2262
2285
|
type ToolDetachParams as ToolDetachParams,
|
|
2286
|
+
type ToolRunParams as ToolRunParams,
|
|
2263
2287
|
type ToolUpdateApprovalParams as ToolUpdateApprovalParams,
|
|
2264
2288
|
};
|
|
2265
2289
|
|
|
@@ -140,8 +140,11 @@ export {
|
|
|
140
140
|
} from './messages';
|
|
141
141
|
export {
|
|
142
142
|
Tools,
|
|
143
|
+
type ToolExecuteRequest,
|
|
144
|
+
type ToolExecutionResult,
|
|
143
145
|
type ToolListParams,
|
|
144
146
|
type ToolAttachParams,
|
|
145
147
|
type ToolDetachParams,
|
|
148
|
+
type ToolRunParams,
|
|
146
149
|
type ToolUpdateApprovalParams,
|
|
147
150
|
} from './tools';
|
|
@@ -48,6 +48,17 @@ export class Tools extends APIResource {
|
|
|
48
48
|
return this._client.patch(path`/v1/agents/${agent_id}/tools/detach/${toolID}`, options);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Trigger a tool by name on a specific agent, providing the necessary arguments.
|
|
53
|
+
*
|
|
54
|
+
* This endpoint executes a tool that is attached to the agent, using the agent's
|
|
55
|
+
* state and environment variables for execution context.
|
|
56
|
+
*/
|
|
57
|
+
run(toolName: string, params: ToolRunParams, options?: RequestOptions): APIPromise<ToolExecutionResult> {
|
|
58
|
+
const { agent_id, ...body } = params;
|
|
59
|
+
return this._client.post(path`/v1/agents/${agent_id}/tools/${toolName}/run`, { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
|
|
51
62
|
/**
|
|
52
63
|
* Modify the approval requirement for a tool attached to an agent.
|
|
53
64
|
*
|
|
@@ -68,6 +79,50 @@ export class Tools extends APIResource {
|
|
|
68
79
|
}
|
|
69
80
|
}
|
|
70
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Request to execute a tool.
|
|
84
|
+
*/
|
|
85
|
+
export interface ToolExecuteRequest {
|
|
86
|
+
/**
|
|
87
|
+
* Arguments to pass to the tool
|
|
88
|
+
*/
|
|
89
|
+
args?: { [key: string]: unknown };
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface ToolExecutionResult {
|
|
93
|
+
/**
|
|
94
|
+
* The status of the tool execution and return object
|
|
95
|
+
*/
|
|
96
|
+
status: 'success' | 'error';
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Representation of an agent's state. This is the state of the agent at a given
|
|
100
|
+
* time, and is persisted in the DB backend. The state has all the information
|
|
101
|
+
* needed to recreate a persisted agent.
|
|
102
|
+
*/
|
|
103
|
+
agent_state?: AgentsAPI.AgentState | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The function return object
|
|
107
|
+
*/
|
|
108
|
+
func_return?: unknown;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The fingerprint of the config for the sandbox
|
|
112
|
+
*/
|
|
113
|
+
sandbox_config_fingerprint?: string | null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Captured stderr from the function invocation
|
|
117
|
+
*/
|
|
118
|
+
stderr?: Array<string> | null;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Captured stdout (prints, logs) from function invocation
|
|
122
|
+
*/
|
|
123
|
+
stdout?: Array<string> | null;
|
|
124
|
+
}
|
|
125
|
+
|
|
71
126
|
export interface ToolListParams extends ArrayPageParams {}
|
|
72
127
|
|
|
73
128
|
export interface ToolAttachParams {
|
|
@@ -84,6 +139,18 @@ export interface ToolDetachParams {
|
|
|
84
139
|
agent_id: string;
|
|
85
140
|
}
|
|
86
141
|
|
|
142
|
+
export interface ToolRunParams {
|
|
143
|
+
/**
|
|
144
|
+
* Path param: The ID of the agent in the format 'agent-<uuid4>'
|
|
145
|
+
*/
|
|
146
|
+
agent_id: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Body param: Arguments to pass to the tool
|
|
150
|
+
*/
|
|
151
|
+
args?: { [key: string]: unknown };
|
|
152
|
+
}
|
|
153
|
+
|
|
87
154
|
export interface ToolUpdateApprovalParams {
|
|
88
155
|
/**
|
|
89
156
|
* Path param: The ID of the agent in the format 'agent-<uuid4>'
|
|
@@ -103,9 +170,12 @@ export interface ToolUpdateApprovalParams {
|
|
|
103
170
|
|
|
104
171
|
export declare namespace Tools {
|
|
105
172
|
export {
|
|
173
|
+
type ToolExecuteRequest as ToolExecuteRequest,
|
|
174
|
+
type ToolExecutionResult as ToolExecutionResult,
|
|
106
175
|
type ToolListParams as ToolListParams,
|
|
107
176
|
type ToolAttachParams as ToolAttachParams,
|
|
108
177
|
type ToolDetachParams as ToolDetachParams,
|
|
178
|
+
type ToolRunParams as ToolRunParams,
|
|
109
179
|
type ToolUpdateApprovalParams as ToolUpdateApprovalParams,
|
|
110
180
|
};
|
|
111
181
|
}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as PassagesAPI from './passages';
|
|
5
|
-
import { PassageCreateParams,
|
|
5
|
+
import { PassageCreateParams, PassageDeleteParams, Passages } from './passages';
|
|
6
6
|
import * as ModelsAPI from '../models/models';
|
|
7
7
|
import { APIPromise } from '../../core/api-promise';
|
|
8
8
|
import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
|
|
9
|
+
import { buildHeaders } from '../../internal/headers';
|
|
9
10
|
import { RequestOptions } from '../../internal/request-options';
|
|
10
11
|
import { path } from '../../internal/utils/path';
|
|
11
12
|
|
|
@@ -47,8 +48,11 @@ export class Archives extends APIResource {
|
|
|
47
48
|
/**
|
|
48
49
|
* Delete an archive by its ID.
|
|
49
50
|
*/
|
|
50
|
-
delete(archiveID: string, options?: RequestOptions): APIPromise<
|
|
51
|
-
return this._client.delete(path`/v1/archives/${archiveID}`,
|
|
51
|
+
delete(archiveID: string, options?: RequestOptions): APIPromise<void> {
|
|
52
|
+
return this._client.delete(path`/v1/archives/${archiveID}`, {
|
|
53
|
+
...options,
|
|
54
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
+
});
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -163,7 +167,6 @@ export declare namespace Archives {
|
|
|
163
167
|
|
|
164
168
|
export {
|
|
165
169
|
Passages as Passages,
|
|
166
|
-
type PassageCreateResponse as PassageCreateResponse,
|
|
167
170
|
type PassageCreateParams as PassageCreateParams,
|
|
168
171
|
type PassageDeleteParams as PassageDeleteParams,
|
|
169
172
|
};
|
|
@@ -9,9 +9,4 @@ export {
|
|
|
9
9
|
type ArchiveListParams,
|
|
10
10
|
type ArchivesArrayPage,
|
|
11
11
|
} from './archives';
|
|
12
|
-
export {
|
|
13
|
-
Passages,
|
|
14
|
-
type PassageCreateResponse,
|
|
15
|
-
type PassageCreateParams,
|
|
16
|
-
type PassageDeleteParams,
|
|
17
|
-
} from './passages';
|
|
12
|
+
export { Passages, type PassageCreateParams, type PassageDeleteParams } from './passages';
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
import * as PassagesAPI from '../passages';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
6
|
import { buildHeaders } from '../../internal/headers';
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -17,7 +17,7 @@ export class Passages extends APIResource {
|
|
|
17
17
|
archiveID: string,
|
|
18
18
|
body: PassageCreateParams,
|
|
19
19
|
options?: RequestOptions,
|
|
20
|
-
): APIPromise<
|
|
20
|
+
): APIPromise<PassagesAPI.Passage> {
|
|
21
21
|
return this._client.post(path`/v1/archives/${archiveID}/passages`, { body, ...options });
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -36,87 +36,6 @@ export class Passages extends APIResource {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* Representation of a passage, which is stored in archival memory.
|
|
41
|
-
*/
|
|
42
|
-
export interface PassageCreateResponse {
|
|
43
|
-
/**
|
|
44
|
-
* The embedding of the passage.
|
|
45
|
-
*/
|
|
46
|
-
embedding: Array<number> | null;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Configuration for embedding model connection and processing parameters.
|
|
50
|
-
*/
|
|
51
|
-
embedding_config: ModelsAPI.EmbeddingConfig | null;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The text of the passage.
|
|
55
|
-
*/
|
|
56
|
-
text: string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* The human-friendly ID of the Passage
|
|
60
|
-
*/
|
|
61
|
-
id?: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The unique identifier of the archive containing this passage.
|
|
65
|
-
*/
|
|
66
|
-
archive_id?: string | null;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The creation date of the passage.
|
|
70
|
-
*/
|
|
71
|
-
created_at?: string;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* The id of the user that made this object.
|
|
75
|
-
*/
|
|
76
|
-
created_by_id?: string | null;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The unique identifier of the file associated with the passage.
|
|
80
|
-
*/
|
|
81
|
-
file_id?: string | null;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The name of the file (only for source passages).
|
|
85
|
-
*/
|
|
86
|
-
file_name?: string | null;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Whether this passage is deleted or not.
|
|
90
|
-
*/
|
|
91
|
-
is_deleted?: boolean;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The id of the user that made this object.
|
|
95
|
-
*/
|
|
96
|
-
last_updated_by_id?: string | null;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The metadata of the passage.
|
|
100
|
-
*/
|
|
101
|
-
metadata?: { [key: string]: unknown } | null;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated Deprecated: Use `folder_id` field instead. The data source of the
|
|
105
|
-
* passage.
|
|
106
|
-
*/
|
|
107
|
-
source_id?: string | null;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Tags associated with this passage.
|
|
111
|
-
*/
|
|
112
|
-
tags?: Array<string> | null;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* The timestamp when the object was last updated.
|
|
116
|
-
*/
|
|
117
|
-
updated_at?: string | null;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
39
|
export interface PassageCreateParams {
|
|
121
40
|
/**
|
|
122
41
|
* The text content of the passage
|
|
@@ -142,9 +61,5 @@ export interface PassageDeleteParams {
|
|
|
142
61
|
}
|
|
143
62
|
|
|
144
63
|
export declare namespace Passages {
|
|
145
|
-
export {
|
|
146
|
-
type PassageCreateResponse as PassageCreateResponse,
|
|
147
|
-
type PassageCreateParams as PassageCreateParams,
|
|
148
|
-
type PassageDeleteParams as PassageDeleteParams,
|
|
149
|
-
};
|
|
64
|
+
export { type PassageCreateParams as PassageCreateParams, type PassageDeleteParams as PassageDeleteParams };
|
|
150
65
|
}
|
|
@@ -40,10 +40,10 @@ export interface AgentListParams extends ArrayPageParams {
|
|
|
40
40
|
>;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Specify which relational fields (e.g., 'tools', 'sources', 'memory')
|
|
44
|
-
* in the response. If not provided, all relationships are loaded by
|
|
45
|
-
* this can optimize performance by reducing unnecessary joins.This
|
|
46
|
-
* parameter, and no longer supported after 1.0.0 SDK versions.
|
|
43
|
+
* @deprecated Specify which relational fields (e.g., 'tools', 'sources', 'memory')
|
|
44
|
+
* to include in the response. If not provided, all relationships are loaded by
|
|
45
|
+
* default. Using this can optimize performance by reducing unnecessary joins.This
|
|
46
|
+
* is a legacy parameter, and no longer supported after 1.0.0 SDK versions.
|
|
47
47
|
*/
|
|
48
48
|
include_relationships?: Array<string> | null;
|
|
49
49
|
}
|
|
@@ -394,8 +394,8 @@ export interface BlockListParams extends ArrayPageParams {
|
|
|
394
394
|
connected_to_agents_count_lt?: number | null;
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* Search blocks by description. If provided, returns blocks
|
|
398
|
-
*
|
|
397
|
+
* Search blocks by description. If provided, returns blocks whose description
|
|
398
|
+
* matches the search query. This is a full-text search on block descriptions.
|
|
399
399
|
*/
|
|
400
400
|
description_search?: string | null;
|
|
401
401
|
|
|
@@ -405,23 +405,23 @@ export interface BlockListParams extends ArrayPageParams {
|
|
|
405
405
|
identifier_keys?: Array<string> | null;
|
|
406
406
|
|
|
407
407
|
/**
|
|
408
|
-
*
|
|
408
|
+
* The ID of the identity in the format 'identity-<uuid4>'
|
|
409
409
|
*/
|
|
410
410
|
identity_id?: string | null;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
|
-
*
|
|
413
|
+
* Label to include (alphanumeric, hyphens, underscores only)
|
|
414
414
|
*/
|
|
415
415
|
label?: string | null;
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
|
-
* Search blocks by label. If provided, returns blocks
|
|
419
|
-
* is a full-text search on labels.
|
|
418
|
+
* Search blocks by label. If provided, returns blocks whose label matches the
|
|
419
|
+
* search query. This is a full-text search on block labels.
|
|
420
420
|
*/
|
|
421
421
|
label_search?: string | null;
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
|
-
* Name
|
|
424
|
+
* Name filter (alphanumeric, spaces, hyphens, underscores)
|
|
425
425
|
*/
|
|
426
426
|
name?: string | null;
|
|
427
427
|
|
|
@@ -436,7 +436,8 @@ export interface BlockListParams extends ArrayPageParams {
|
|
|
436
436
|
templates_only?: boolean;
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
|
-
* Search blocks by value. If provided, returns blocks
|
|
439
|
+
* Search blocks by value. If provided, returns blocks whose value matches the
|
|
440
|
+
* search query. This is a full-text search on block values.
|
|
440
441
|
*/
|
|
441
442
|
value_search?: string | null;
|
|
442
443
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -117,11 +117,9 @@ export {
|
|
|
117
117
|
type CreateSseMcpServer,
|
|
118
118
|
type CreateStdioMcpServer,
|
|
119
119
|
type CreateStreamableHTTPMcpServer,
|
|
120
|
-
type McpToolExecuteRequest,
|
|
121
120
|
type SseMcpServer,
|
|
122
121
|
type StdioMcpServer,
|
|
123
122
|
type StreamableHTTPMcpServer,
|
|
124
|
-
type ToolExecutionResult,
|
|
125
123
|
type UpdateSseMcpServer,
|
|
126
124
|
type UpdateStdioMcpServer,
|
|
127
125
|
type UpdateStreamableHTTPMcpServer,
|
|
@@ -134,6 +132,15 @@ export {
|
|
|
134
132
|
type McpServerUpdateParams,
|
|
135
133
|
type McpServerRefreshParams,
|
|
136
134
|
} from './mcp-servers/mcp-servers';
|
|
135
|
+
export {
|
|
136
|
+
Messages,
|
|
137
|
+
type MessageSearchRequest,
|
|
138
|
+
type MessageSearchResult,
|
|
139
|
+
type MessageListResponse,
|
|
140
|
+
type MessageSearchResponse,
|
|
141
|
+
type MessageListParams,
|
|
142
|
+
type MessageSearchParams,
|
|
143
|
+
} from './messages';
|
|
137
144
|
export {
|
|
138
145
|
Models,
|
|
139
146
|
type EmbeddingConfig,
|
|
@@ -145,6 +152,7 @@ export {
|
|
|
145
152
|
type ModelListResponse,
|
|
146
153
|
type ModelListParams,
|
|
147
154
|
} from './models/models';
|
|
155
|
+
export { Passages, type Passage, type PassageSearchResponse, type PassageSearchParams } from './passages';
|
|
148
156
|
export { Runs, type Job, type StopReasonType, type RunListParams } from './runs/runs';
|
|
149
157
|
export {
|
|
150
158
|
Steps,
|
|
@@ -162,12 +170,16 @@ export {
|
|
|
162
170
|
type Tool,
|
|
163
171
|
type ToolCreate,
|
|
164
172
|
type ToolReturnMessage,
|
|
173
|
+
type ToolSearchRequest,
|
|
174
|
+
type ToolSearchResult,
|
|
165
175
|
type ToolType,
|
|
166
176
|
type ToolDeleteResponse,
|
|
177
|
+
type ToolSearchResponse,
|
|
167
178
|
type ToolUpsertBaseToolsResponse,
|
|
168
179
|
type ToolCreateParams,
|
|
169
180
|
type ToolUpdateParams,
|
|
170
181
|
type ToolListParams,
|
|
182
|
+
type ToolSearchParams,
|
|
171
183
|
type ToolUpsertParams,
|
|
172
184
|
type ToolsArrayPage,
|
|
173
185
|
} from './tools';
|
|
@@ -5,11 +5,9 @@ export {
|
|
|
5
5
|
type CreateSseMcpServer,
|
|
6
6
|
type CreateStdioMcpServer,
|
|
7
7
|
type CreateStreamableHTTPMcpServer,
|
|
8
|
-
type McpToolExecuteRequest,
|
|
9
8
|
type SseMcpServer,
|
|
10
9
|
type StdioMcpServer,
|
|
11
10
|
type StreamableHTTPMcpServer,
|
|
12
|
-
type ToolExecutionResult,
|
|
13
11
|
type UpdateSseMcpServer,
|
|
14
12
|
type UpdateStdioMcpServer,
|
|
15
13
|
type UpdateStreamableHTTPMcpServer,
|