@xenosystem/agent-sdk 0.10.17 → 0.10.18

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.
@@ -800,6 +800,12 @@ interface LlmClientDeps {
800
800
  firstResponseMs?: number;
801
801
  idleMs?: number;
802
802
  };
803
+ getNonStreamingMemoryMs?(): number | undefined;
804
+ reportTransportEvent?(event: {
805
+ type: "provider.warning";
806
+ code: string;
807
+ message: string;
808
+ }): void;
803
809
  buildRuntimeSystemPrompt(): string;
804
810
  reportFailure(diagnostics: ApiRequestFailureDiagnostics): Promise<void>;
805
811
  }
@@ -847,6 +853,7 @@ declare class LlmClient {
847
853
  private static summarizeErrorBody;
848
854
  private authorizationHeaders;
849
855
  private createRequestDeadline;
856
+ private streamingMemoryKey;
850
857
  private static normalizeRequestError;
851
858
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal, maxOutputTokens?: number): Promise<StreamResult>;
852
859
  private throwForErrorResponse;
@@ -1461,6 +1468,7 @@ interface AgentLoopConfig {
1461
1468
  apiFirstResponseTimeoutMs?: number;
1462
1469
  apiStreamIdleTimeoutMs?: number;
1463
1470
  streamAgentResponses?: boolean;
1471
+ apiNonStreamingMemoryMs?: number;
1464
1472
  queryIdleTimeoutMs?: number;
1465
1473
  queryLeaseTimeoutMs?: number;
1466
1474
  queryHardTimeoutMs?: number;
@@ -800,6 +800,12 @@ interface LlmClientDeps {
800
800
  firstResponseMs?: number;
801
801
  idleMs?: number;
802
802
  };
803
+ getNonStreamingMemoryMs?(): number | undefined;
804
+ reportTransportEvent?(event: {
805
+ type: "provider.warning";
806
+ code: string;
807
+ message: string;
808
+ }): void;
803
809
  buildRuntimeSystemPrompt(): string;
804
810
  reportFailure(diagnostics: ApiRequestFailureDiagnostics): Promise<void>;
805
811
  }
@@ -847,6 +853,7 @@ declare class LlmClient {
847
853
  private static summarizeErrorBody;
848
854
  private authorizationHeaders;
849
855
  private createRequestDeadline;
856
+ private streamingMemoryKey;
850
857
  private static normalizeRequestError;
851
858
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal, maxOutputTokens?: number): Promise<StreamResult>;
852
859
  private throwForErrorResponse;
@@ -1461,6 +1468,7 @@ interface AgentLoopConfig {
1461
1468
  apiFirstResponseTimeoutMs?: number;
1462
1469
  apiStreamIdleTimeoutMs?: number;
1463
1470
  streamAgentResponses?: boolean;
1471
+ apiNonStreamingMemoryMs?: number;
1464
1472
  queryIdleTimeoutMs?: number;
1465
1473
  queryLeaseTimeoutMs?: number;
1466
1474
  queryHardTimeoutMs?: number;