@xenosystem/agent-sdk 0.10.22 → 0.10.24

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.
@@ -720,6 +720,10 @@ interface ToolFailureGuardTrip {
720
720
  targetFingerprint?: string;
721
721
  lastError: string;
722
722
  }
723
+ interface ToolNameCodec {
724
+ encode(name: string): string;
725
+ decode(wireName: string): string;
726
+ }
723
727
  interface ApiTextContentBlock {
724
728
  type: "text";
725
729
  text: string;
@@ -838,13 +842,14 @@ declare class LlmClient {
838
842
  }>;
839
843
  toXenoMessages(apiMessages: ApiMessage[], options?: {
840
844
  allowImages?: boolean;
845
+ toolNames?: ToolNameCodec;
841
846
  }): XenoChatMessage[];
842
847
  private buildStructuredToolContextMessage;
843
848
  private modelSupportsImageInputs;
844
849
  private describeSuppressedImageBlock;
845
850
  getChatCompletionsBaseUrl(): string;
846
851
  private condenseToolResultForModel;
847
- buildXenoToolDefinitions(tools: ToolDefinition[]): Array<{
852
+ buildXenoToolDefinitions(tools: ToolDefinition[], toolNames?: ToolNameCodec): Array<{
848
853
  type: "function";
849
854
  function: {
850
855
  name: string;
@@ -854,6 +859,7 @@ declare class LlmClient {
854
859
  }>;
855
860
  estimateChatCompletionsInputTokens(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[]): number;
856
861
  private buildChatCompletionsRequestBody;
862
+ private toolNameCodecFor;
857
863
  private parseXenoCompletion;
858
864
  static parseRetryAfterSeconds(value: string | null): number | undefined;
859
865
  private static getHeaderValue;
@@ -720,6 +720,10 @@ interface ToolFailureGuardTrip {
720
720
  targetFingerprint?: string;
721
721
  lastError: string;
722
722
  }
723
+ interface ToolNameCodec {
724
+ encode(name: string): string;
725
+ decode(wireName: string): string;
726
+ }
723
727
  interface ApiTextContentBlock {
724
728
  type: "text";
725
729
  text: string;
@@ -838,13 +842,14 @@ declare class LlmClient {
838
842
  }>;
839
843
  toXenoMessages(apiMessages: ApiMessage[], options?: {
840
844
  allowImages?: boolean;
845
+ toolNames?: ToolNameCodec;
841
846
  }): XenoChatMessage[];
842
847
  private buildStructuredToolContextMessage;
843
848
  private modelSupportsImageInputs;
844
849
  private describeSuppressedImageBlock;
845
850
  getChatCompletionsBaseUrl(): string;
846
851
  private condenseToolResultForModel;
847
- buildXenoToolDefinitions(tools: ToolDefinition[]): Array<{
852
+ buildXenoToolDefinitions(tools: ToolDefinition[], toolNames?: ToolNameCodec): Array<{
848
853
  type: "function";
849
854
  function: {
850
855
  name: string;
@@ -854,6 +859,7 @@ declare class LlmClient {
854
859
  }>;
855
860
  estimateChatCompletionsInputTokens(model: string, apiMessages: ApiMessage[], tools: ToolDefinition[]): number;
856
861
  private buildChatCompletionsRequestBody;
862
+ private toolNameCodecFor;
857
863
  private parseXenoCompletion;
858
864
  static parseRetryAfterSeconds(value: string | null): number | undefined;
859
865
  private static getHeaderValue;