UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

25 lines 1.84 kB
import type { LLMMessagePart, MessagePartWithProvider, MessageWithProvider, SDKConverters, ToolCallWithProvider, ToolChoiceWithProvider, ToolDefinitionWithProvider } from "./types"; import type { ZodTypeAny } from "zod"; export declare const makeSDKConverters: <MessageSchema extends ZodTypeAny, MessagePartSchema extends ZodTypeAny, ToolChoiceSchema extends ZodTypeAny, ToolCallSchema extends ZodTypeAny, ToolDefinitionSchema extends ZodTypeAny, ResponseFormatSchema extends ZodTypeAny>({ 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