@xenosystem/agent-sdk 0.9.28 → 0.9.29

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.
@@ -759,6 +759,13 @@ interface LlmClientDeps {
759
759
  readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
760
760
  readonly localTransportLimits?: ProviderTransportLimits;
761
761
  readonly apiKey?: string;
762
+ authorizeRequest?(target: {
763
+ method: string;
764
+ url: string;
765
+ }): Promise<{
766
+ authorization: string;
767
+ dpop?: string;
768
+ } | null>;
762
769
  readonly maxTokens: number;
763
770
  getApiRequestTimeoutMs(): number;
764
771
  buildRuntimeSystemPrompt(): string;
@@ -805,6 +812,7 @@ declare class LlmClient {
805
812
  private static getHeaderValue;
806
813
  private static stripHtml;
807
814
  private static summarizeErrorBody;
815
+ private authorizationHeaders;
808
816
  private createApiRequestSignal;
809
817
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
810
818
  callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
@@ -1347,6 +1355,13 @@ interface ModeSwitchRequest {
1347
1355
  }
1348
1356
  interface AgentLoopConfig {
1349
1357
  apiKey?: string;
1358
+ authorizeRequest?(target: {
1359
+ method: string;
1360
+ url: string;
1361
+ }): Promise<{
1362
+ authorization: string;
1363
+ dpop?: string;
1364
+ } | null>;
1350
1365
  baseURL: string;
1351
1366
  ollamaBaseURL?: string;
1352
1367
  localRuntimeUrl?: string;
@@ -759,6 +759,13 @@ interface LlmClientDeps {
759
759
  readonly localRuntimeProtocol?: "openai-chat" | "ollama-native";
760
760
  readonly localTransportLimits?: ProviderTransportLimits;
761
761
  readonly apiKey?: string;
762
+ authorizeRequest?(target: {
763
+ method: string;
764
+ url: string;
765
+ }): Promise<{
766
+ authorization: string;
767
+ dpop?: string;
768
+ } | null>;
762
769
  readonly maxTokens: number;
763
770
  getApiRequestTimeoutMs(): number;
764
771
  buildRuntimeSystemPrompt(): string;
@@ -805,6 +812,7 @@ declare class LlmClient {
805
812
  private static getHeaderValue;
806
813
  private static stripHtml;
807
814
  private static summarizeErrorBody;
815
+ private authorizationHeaders;
808
816
  private createApiRequestSignal;
809
817
  callChatCompletionsNonStream(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
810
818
  callChatCompletions(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[], onText?: (text: string) => void, signal?: AbortSignal): Promise<StreamResult>;
@@ -1347,6 +1355,13 @@ interface ModeSwitchRequest {
1347
1355
  }
1348
1356
  interface AgentLoopConfig {
1349
1357
  apiKey?: string;
1358
+ authorizeRequest?(target: {
1359
+ method: string;
1360
+ url: string;
1361
+ }): Promise<{
1362
+ authorization: string;
1363
+ dpop?: string;
1364
+ } | null>;
1350
1365
  baseURL: string;
1351
1366
  ollamaBaseURL?: string;
1352
1367
  localRuntimeUrl?: string;