@soat/sdk 0.4.17 → 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 +198 -45
- package/dist/index.d.cts +891 -166
- package/dist/index.d.ts +891 -166
- package/dist/index.js +205 -46
- 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,162 @@ 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
|
+
};
|
|
1866
|
+
var Memories = class {
|
|
1867
|
+
static {
|
|
1868
|
+
__name(this, "Memories");
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* List memories
|
|
1872
|
+
*
|
|
1873
|
+
* Returns a list of memory configurations for a project
|
|
1874
|
+
*/
|
|
1875
|
+
static listMemories(options) {
|
|
1876
|
+
return (options?.client ?? client).get({
|
|
1877
|
+
url: "/api/v1/memories",
|
|
1878
|
+
...options
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Create a memory
|
|
1883
|
+
*
|
|
1884
|
+
* Creates a new memory configuration in a project
|
|
1885
|
+
*/
|
|
1886
|
+
static createMemory(options) {
|
|
1887
|
+
return (options.client ?? client).post({
|
|
1888
|
+
url: "/api/v1/memories",
|
|
1889
|
+
...options,
|
|
1890
|
+
headers: {
|
|
1891
|
+
"Content-Type": "application/json",
|
|
1892
|
+
...options.headers
|
|
1893
|
+
}
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1897
|
+
* Delete a memory
|
|
1898
|
+
*
|
|
1899
|
+
* Deletes a memory configuration
|
|
1900
|
+
*/
|
|
1901
|
+
static deleteMemory(options) {
|
|
1902
|
+
return (options.client ?? client).delete({
|
|
1903
|
+
url: "/api/v1/memories/{memory_id}",
|
|
1904
|
+
...options
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Get a memory
|
|
1909
|
+
*
|
|
1910
|
+
* Returns a single memory configuration by ID
|
|
1911
|
+
*/
|
|
1912
|
+
static getMemory(options) {
|
|
1913
|
+
return (options.client ?? client).get({
|
|
1914
|
+
url: "/api/v1/memories/{memory_id}",
|
|
1915
|
+
...options
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* Update a memory
|
|
1920
|
+
*
|
|
1921
|
+
* Updates an existing memory configuration
|
|
1922
|
+
*/
|
|
1923
|
+
static updateMemory(options) {
|
|
1924
|
+
return (options.client ?? client).put({
|
|
1925
|
+
url: "/api/v1/memories/{memory_id}",
|
|
1926
|
+
...options,
|
|
1927
|
+
headers: {
|
|
1928
|
+
"Content-Type": "application/json",
|
|
1929
|
+
...options.headers
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
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
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Create a memory entry
|
|
1951
|
+
*
|
|
1952
|
+
* Creates a new entry in the specified memory container. Automatically generates an embedding for semantic search.
|
|
1953
|
+
*/
|
|
1954
|
+
static createMemoryEntry(options) {
|
|
1955
|
+
return (options.client ?? client).post({
|
|
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}",
|
|
1994
|
+
...options,
|
|
1995
|
+
headers: {
|
|
1996
|
+
"Content-Type": "application/json",
|
|
1997
|
+
...options.headers
|
|
1998
|
+
}
|
|
1999
|
+
});
|
|
2000
|
+
}
|
|
2001
|
+
};
|
|
1888
2002
|
var Policies = class {
|
|
1889
2003
|
static {
|
|
1890
2004
|
__name(this, "Policies");
|
|
@@ -2233,6 +2347,45 @@ var Sessions = class {
|
|
|
2233
2347
|
});
|
|
2234
2348
|
}
|
|
2235
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
|
+
};
|
|
2236
2389
|
var Users = class {
|
|
2237
2390
|
static {
|
|
2238
2391
|
__name(this, "Users");
|
|
@@ -2467,7 +2620,6 @@ var SoatClient = class {
|
|
|
2467
2620
|
}
|
|
2468
2621
|
actors;
|
|
2469
2622
|
agentTools;
|
|
2470
|
-
agentTraces;
|
|
2471
2623
|
agents;
|
|
2472
2624
|
aiProviders;
|
|
2473
2625
|
apiKeys;
|
|
@@ -2479,6 +2631,7 @@ var SoatClient = class {
|
|
|
2479
2631
|
projects;
|
|
2480
2632
|
secrets;
|
|
2481
2633
|
sessions;
|
|
2634
|
+
traces;
|
|
2482
2635
|
users;
|
|
2483
2636
|
webhooks;
|
|
2484
2637
|
constructor({
|
|
@@ -2498,7 +2651,6 @@ var SoatClient = class {
|
|
|
2498
2651
|
}));
|
|
2499
2652
|
this.actors = bindResource(Actors, httpClient);
|
|
2500
2653
|
this.agentTools = bindResource(AgentTools, httpClient);
|
|
2501
|
-
this.agentTraces = bindResource(AgentTraces, httpClient);
|
|
2502
2654
|
this.agents = bindResource(Agents, httpClient);
|
|
2503
2655
|
this.aiProviders = bindResource(AiProviders, httpClient);
|
|
2504
2656
|
this.apiKeys = bindResource(ApiKeys, httpClient);
|
|
@@ -2510,8 +2662,9 @@ var SoatClient = class {
|
|
|
2510
2662
|
this.projects = bindResource(Projects, httpClient);
|
|
2511
2663
|
this.secrets = bindResource(Secrets, httpClient);
|
|
2512
2664
|
this.sessions = bindResource(Sessions, httpClient);
|
|
2665
|
+
this.traces = bindResource(Traces, httpClient);
|
|
2513
2666
|
this.users = bindResource(Users, httpClient);
|
|
2514
2667
|
this.webhooks = bindResource(Webhooks, httpClient);
|
|
2515
2668
|
}
|
|
2516
2669
|
};
|
|
2517
|
-
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 };
|