@letta-ai/letta-agent-sdk 0.8.24 → 0.8.26
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/client-entry.js +2 -2
- package/dist/client-entry.js.map +2 -2
- package/dist/index.js +9 -8
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11779,7 +11779,7 @@ user: What is the codebase structure?
|
|
|
11779
11779
|
assistant: [Uses the Agent tool with subagent_type=general-purpose]
|
|
11780
11780
|
</example>
|
|
11781
11781
|
|
|
11782
|
-
Tools are executed in a user-selected permission mode. When you attempt to call a tool that is not automatically allowed by the user's permission mode or permission settings, the user will be prompted so that they can approve or deny the execution. If the user denies a tool you call, do not re-attempt the exact same tool call. Instead, think about why the user has denied the tool call and adjust your approach. If you do not understand why the user has denied a tool call,
|
|
11782
|
+
Tools are executed in a user-selected permission mode. When you attempt to call a tool that is not automatically allowed by the user's permission mode or permission settings, the user will be prompted so that they can approve or deny the execution. If the user denies a tool you call, do not re-attempt the exact same tool call. Instead, think about why the user has denied the tool call and adjust your approach. If you do not understand why the user has denied a tool call, ask them using AskUserQuestion when available, or an ordinary message otherwise.
|
|
11783
11783
|
|
|
11784
11784
|
- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.
|
|
11785
11785
|
- The conversation has unlimited context through automatic summarization.
|
|
@@ -34698,7 +34698,7 @@ class StreamableHTTPClientTransport {
|
|
|
34698
34698
|
}
|
|
34699
34699
|
var DEFAULT_CLIENT_INFO = {
|
|
34700
34700
|
name: "letta-code",
|
|
34701
|
-
version: "0.
|
|
34701
|
+
version: "0.34.0"
|
|
34702
34702
|
};
|
|
34703
34703
|
async function connectMcpServer(config2, options = {}) {
|
|
34704
34704
|
let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
|
|
@@ -34787,7 +34787,7 @@ function createTransport(config2, options) {
|
|
|
34787
34787
|
return new StreamableHTTPClientTransport(new URL(config2.url), {
|
|
34788
34788
|
requestInit: headersRequestInit(headers),
|
|
34789
34789
|
authProvider: options.oauth?.authProvider,
|
|
34790
|
-
fetch: abortAwareFetch(options.signal)
|
|
34790
|
+
fetch: abortAwareFetch(options.signal, undefined, options.fetch)
|
|
34791
34791
|
});
|
|
34792
34792
|
}
|
|
34793
34793
|
if (config2.transport === "sse") {
|
|
@@ -34796,7 +34796,7 @@ function createTransport(config2, options) {
|
|
|
34796
34796
|
return new SSEClientTransport(new URL(config2.url), {
|
|
34797
34797
|
requestInit,
|
|
34798
34798
|
authProvider: options.oauth?.authProvider,
|
|
34799
|
-
fetch: abortAwareFetch(options.signal, headers)
|
|
34799
|
+
fetch: abortAwareFetch(options.signal, headers, options.fetch)
|
|
34800
34800
|
});
|
|
34801
34801
|
}
|
|
34802
34802
|
return new StdioClientTransport({
|
|
@@ -34807,13 +34807,14 @@ function createTransport(config2, options) {
|
|
|
34807
34807
|
stderr: options.stderr ?? "inherit"
|
|
34808
34808
|
});
|
|
34809
34809
|
}
|
|
34810
|
-
function abortAwareFetch(operationSignal, headers) {
|
|
34810
|
+
function abortAwareFetch(operationSignal, headers, fetchFn) {
|
|
34811
34811
|
if (!operationSignal && !headers)
|
|
34812
|
-
return;
|
|
34812
|
+
return fetchFn;
|
|
34813
|
+
const request = fetchFn ?? fetch;
|
|
34813
34814
|
return (url2, init) => {
|
|
34814
34815
|
const requestInit = headers ? mergeHeaders(init, headers) : { ...init };
|
|
34815
34816
|
const requestSignal = requestInit.signal ?? undefined;
|
|
34816
|
-
return
|
|
34817
|
+
return request(url2, {
|
|
34817
34818
|
...requestInit,
|
|
34818
34819
|
signal: operationSignal && requestSignal ? AbortSignal.any([operationSignal, requestSignal]) : operationSignal ?? requestSignal
|
|
34819
34820
|
});
|
|
@@ -35680,4 +35681,4 @@ export {
|
|
|
35680
35681
|
CloudManagedSandboxExpiredError
|
|
35681
35682
|
};
|
|
35682
35683
|
|
|
35683
|
-
//# debugId=
|
|
35684
|
+
//# debugId=739597E1ABA480D964756E2164756E21
|