@arizeai/phoenix-client
Version:
A client for the Phoenix API
25 lines • 1.82 kB
TypeScript
import type { ZodType } from "zod";
import type { LLMMessagePart, MessagePartWithProvider, MessageWithProvider, SDKConverters, ToolCallWithProvider, ToolChoiceWithProvider, ToolDefinitionWithProvider } from "./types";
export declare const makeSDKConverters: <MessageSchema extends ZodType, MessagePartSchema extends ZodType, ToolChoiceSchema extends ZodType, ToolCallSchema extends ZodType, ToolDefinitionSchema extends ZodType, ResponseFormatSchema extends ZodType>({ messages, messageParts, toolChoices, toolCalls, toolDefinitions, responseFormat, }: SDKConverters<MessageSchema, MessagePartSchema, ToolChoiceSchema, ToolCallSchema, ToolDefinitionSchema, ResponseFormatSchema>) => SDKConverters<MessageSchema, MessagePartSchema, ToolChoiceSchema, ToolCallSchema, ToolDefinitionSchema, ResponseFormatSchema>;
/**
* Detect the provider of a message object
*/
export declare const detectMessageProvider: (message: unknown) => MessageWithProvider;
export declare const detectMessagePartProvider: (part: LLMMessagePart) => MessagePartWithProvider;
/**
* Detect the provider of a tool call object
*/
export declare const detectToolCallProvider: (toolCall: unknown) => ToolCallWithProvider;
/**
* Detects the provider of a tool choice
* @param toolChoice the tool choice to detect the provider of
* @returns the provider of the tool choice
*/
export declare const detectToolChoiceProvider: (toolChoice: unknown) => ToolChoiceWithProvider;
/**
* Detect the provider of a tool call object
*/
export declare const detectToolDefinitionProvider: (toolDefinition: unknown) => ToolDefinitionWithProvider;
export declare const findToolDefinitionName: (toolDefinition: unknown) => string | null;
export declare const findToolDefinitionDescription: (toolDefinition: unknown) => string | null;
//# sourceMappingURL=utils.d.ts.map