@soat/sdk 0.4.18 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +119 -49
- package/dist/index.d.cts +612 -211
- package/dist/index.d.ts +612 -211
- package/dist/index.js +124 -50
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1039,33 +1039,6 @@ var AgentTools = class {
|
|
|
1039
1039
|
});
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
|
-
var AgentTraces = class {
|
|
1043
|
-
static {
|
|
1044
|
-
__name(this, "AgentTraces");
|
|
1045
|
-
}
|
|
1046
|
-
/**
|
|
1047
|
-
* List agent traces
|
|
1048
|
-
*
|
|
1049
|
-
* Returns all traces for the project.
|
|
1050
|
-
*/
|
|
1051
|
-
static listAgentTraces(options) {
|
|
1052
|
-
return (options?.client ?? client).get({
|
|
1053
|
-
url: "/api/v1/agents/traces",
|
|
1054
|
-
...options
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
/**
|
|
1058
|
-
* Get a trace
|
|
1059
|
-
*
|
|
1060
|
-
* Returns a single trace by ID.
|
|
1061
|
-
*/
|
|
1062
|
-
static getAgentTrace(options) {
|
|
1063
|
-
return (options.client ?? client).get({
|
|
1064
|
-
url: "/api/v1/agents/traces/{trace_id}",
|
|
1065
|
-
...options
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
};
|
|
1069
1042
|
var Agents = class {
|
|
1070
1043
|
static {
|
|
1071
1044
|
__name(this, "Agents");
|
|
@@ -1707,21 +1680,6 @@ var Documents = class {
|
|
|
1707
1680
|
}
|
|
1708
1681
|
});
|
|
1709
1682
|
}
|
|
1710
|
-
/**
|
|
1711
|
-
* Semantic search over documents
|
|
1712
|
-
*
|
|
1713
|
-
* Searches documents using semantic search, file paths, or document IDs. At least one of search, paths, or document_ids must be provided. Returns results ordered by similarity score.
|
|
1714
|
-
*/
|
|
1715
|
-
static searchDocuments(options) {
|
|
1716
|
-
return (options.client ?? client).post({
|
|
1717
|
-
url: "/api/v1/documents/search",
|
|
1718
|
-
...options,
|
|
1719
|
-
headers: {
|
|
1720
|
-
"Content-Type": "application/json",
|
|
1721
|
-
...options.headers
|
|
1722
|
-
}
|
|
1723
|
-
});
|
|
1724
|
-
}
|
|
1725
1683
|
};
|
|
1726
1684
|
var Files = class {
|
|
1727
1685
|
static {
|
|
@@ -1885,6 +1843,26 @@ var Files = class {
|
|
|
1885
1843
|
});
|
|
1886
1844
|
}
|
|
1887
1845
|
};
|
|
1846
|
+
var Knowledge = class {
|
|
1847
|
+
static {
|
|
1848
|
+
__name(this, "Knowledge");
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Search knowledge
|
|
1852
|
+
*
|
|
1853
|
+
* Searches across documents and memory entries using semantic search, file paths, document IDs, or memory IDs/tags. At least one of `query`, `document_paths`, `document_ids`, `memory_ids`, or `memory_tags` must be provided.
|
|
1854
|
+
*/
|
|
1855
|
+
static searchKnowledge(options) {
|
|
1856
|
+
return (options.client ?? client).post({
|
|
1857
|
+
url: "/api/v1/knowledge/search",
|
|
1858
|
+
...options,
|
|
1859
|
+
headers: {
|
|
1860
|
+
"Content-Type": "application/json",
|
|
1861
|
+
...options.headers
|
|
1862
|
+
}
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
};
|
|
1888
1866
|
var Memories = class {
|
|
1889
1867
|
static {
|
|
1890
1868
|
__name(this, "Memories");
|
|
@@ -1952,14 +1930,67 @@ var Memories = class {
|
|
|
1952
1930
|
}
|
|
1953
1931
|
});
|
|
1954
1932
|
}
|
|
1933
|
+
};
|
|
1934
|
+
var MemoryEntries = class {
|
|
1935
|
+
static {
|
|
1936
|
+
__name(this, "MemoryEntries");
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* List memory entries
|
|
1940
|
+
*
|
|
1941
|
+
* Returns all entries in a memory container
|
|
1942
|
+
*/
|
|
1943
|
+
static listMemoryEntries(options) {
|
|
1944
|
+
return (options.client ?? client).get({
|
|
1945
|
+
url: "/api/v1/memories/{memory_id}/entries",
|
|
1946
|
+
...options
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1955
1949
|
/**
|
|
1956
|
-
*
|
|
1950
|
+
* Create a memory entry
|
|
1957
1951
|
*
|
|
1958
|
-
*
|
|
1952
|
+
* Creates a new entry in the specified memory container. Automatically generates an embedding for semantic search.
|
|
1959
1953
|
*/
|
|
1960
|
-
static
|
|
1954
|
+
static createMemoryEntry(options) {
|
|
1961
1955
|
return (options.client ?? client).post({
|
|
1962
|
-
url: "/api/v1/memories/{memory_id}/
|
|
1956
|
+
url: "/api/v1/memories/{memory_id}/entries",
|
|
1957
|
+
...options,
|
|
1958
|
+
headers: {
|
|
1959
|
+
"Content-Type": "application/json",
|
|
1960
|
+
...options.headers
|
|
1961
|
+
}
|
|
1962
|
+
});
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* Delete a memory entry
|
|
1966
|
+
*
|
|
1967
|
+
* Deletes a memory entry
|
|
1968
|
+
*/
|
|
1969
|
+
static deleteMemoryEntry(options) {
|
|
1970
|
+
return (options.client ?? client).delete({
|
|
1971
|
+
url: "/api/v1/memories/{memory_id}/entries/{entry_id}",
|
|
1972
|
+
...options
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* Get a memory entry
|
|
1977
|
+
*
|
|
1978
|
+
* Returns a single memory entry by ID
|
|
1979
|
+
*/
|
|
1980
|
+
static getMemoryEntry(options) {
|
|
1981
|
+
return (options.client ?? client).get({
|
|
1982
|
+
url: "/api/v1/memories/{memory_id}/entries/{entry_id}",
|
|
1983
|
+
...options
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
/**
|
|
1987
|
+
* Update a memory entry
|
|
1988
|
+
*
|
|
1989
|
+
* Updates an existing memory entry. Regenerates the embedding if content changes.
|
|
1990
|
+
*/
|
|
1991
|
+
static updateMemoryEntry(options) {
|
|
1992
|
+
return (options.client ?? client).put({
|
|
1993
|
+
url: "/api/v1/memories/{memory_id}/entries/{entry_id}",
|
|
1963
1994
|
...options,
|
|
1964
1995
|
headers: {
|
|
1965
1996
|
"Content-Type": "application/json",
|
|
@@ -2316,6 +2347,45 @@ var Sessions = class {
|
|
|
2316
2347
|
});
|
|
2317
2348
|
}
|
|
2318
2349
|
};
|
|
2350
|
+
var Traces = class {
|
|
2351
|
+
static {
|
|
2352
|
+
__name(this, "Traces");
|
|
2353
|
+
}
|
|
2354
|
+
/**
|
|
2355
|
+
* List traces
|
|
2356
|
+
*
|
|
2357
|
+
* Returns a paginated list of execution traces for the project.
|
|
2358
|
+
*/
|
|
2359
|
+
static listTraces(options) {
|
|
2360
|
+
return (options?.client ?? client).get({
|
|
2361
|
+
url: "/api/v1/traces",
|
|
2362
|
+
...options
|
|
2363
|
+
});
|
|
2364
|
+
}
|
|
2365
|
+
/**
|
|
2366
|
+
* Get a trace
|
|
2367
|
+
*
|
|
2368
|
+
* Returns a single trace by ID.
|
|
2369
|
+
*/
|
|
2370
|
+
static getTrace(options) {
|
|
2371
|
+
return (options.client ?? client).get({
|
|
2372
|
+
url: "/api/v1/traces/{trace_id}",
|
|
2373
|
+
...options
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
/**
|
|
2377
|
+
* Get trace tree
|
|
2378
|
+
*
|
|
2379
|
+
* Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace.
|
|
2380
|
+
*
|
|
2381
|
+
*/
|
|
2382
|
+
static getTraceTree(options) {
|
|
2383
|
+
return (options.client ?? client).get({
|
|
2384
|
+
url: "/api/v1/traces/{trace_id}/tree",
|
|
2385
|
+
...options
|
|
2386
|
+
});
|
|
2387
|
+
}
|
|
2388
|
+
};
|
|
2319
2389
|
var Users = class {
|
|
2320
2390
|
static {
|
|
2321
2391
|
__name(this, "Users");
|
|
@@ -2550,7 +2620,6 @@ var SoatClient = class {
|
|
|
2550
2620
|
}
|
|
2551
2621
|
actors;
|
|
2552
2622
|
agentTools;
|
|
2553
|
-
agentTraces;
|
|
2554
2623
|
agents;
|
|
2555
2624
|
aiProviders;
|
|
2556
2625
|
apiKeys;
|
|
@@ -2562,6 +2631,7 @@ var SoatClient = class {
|
|
|
2562
2631
|
projects;
|
|
2563
2632
|
secrets;
|
|
2564
2633
|
sessions;
|
|
2634
|
+
traces;
|
|
2565
2635
|
users;
|
|
2566
2636
|
webhooks;
|
|
2567
2637
|
constructor({
|
|
@@ -2581,7 +2651,6 @@ var SoatClient = class {
|
|
|
2581
2651
|
}));
|
|
2582
2652
|
this.actors = bindResource(Actors, httpClient);
|
|
2583
2653
|
this.agentTools = bindResource(AgentTools, httpClient);
|
|
2584
|
-
this.agentTraces = bindResource(AgentTraces, httpClient);
|
|
2585
2654
|
this.agents = bindResource(Agents, httpClient);
|
|
2586
2655
|
this.aiProviders = bindResource(AiProviders, httpClient);
|
|
2587
2656
|
this.apiKeys = bindResource(ApiKeys, httpClient);
|
|
@@ -2593,8 +2662,9 @@ var SoatClient = class {
|
|
|
2593
2662
|
this.projects = bindResource(Projects, httpClient);
|
|
2594
2663
|
this.secrets = bindResource(Secrets, httpClient);
|
|
2595
2664
|
this.sessions = bindResource(Sessions, httpClient);
|
|
2665
|
+
this.traces = bindResource(Traces, httpClient);
|
|
2596
2666
|
this.users = bindResource(Users, httpClient);
|
|
2597
2667
|
this.webhooks = bindResource(Webhooks, httpClient);
|
|
2598
2668
|
}
|
|
2599
2669
|
};
|
|
2600
|
-
export { Actors, AgentTools,
|
|
2670
|
+
export { Actors, AgentTools, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Knowledge, Memories, MemoryEntries, Policies, Projects, Secrets, Sessions, SoatClient, Traces, Users, Webhooks, createClient, createConfig };
|