Arize Phoenix TS
    Preparing search index...
    • Type Parameters

      Parameters

      Returns
          | output<
              {
                  ANTHROPIC: SDKConverters<
                      ZodPipe<
                          ZodDiscriminatedUnion<
                              [
                                  ZodObject<(...), (...)>,
                                  ZodObject<(...), (...)>,
                                  ZodObject<(...), (...)>,
                              ],
                              "role",
                          >,
                          ZodTransform<
                              {
                                  content: (...)
                                  | (...);
                                  role: (...) | (...);
                                  [key: string]: unknown;
                              },
                              | {
                                  content: ...;
                                  name?: ...;
                                  role: ...;
                                  tool_call_id?: ...;
                                  tool_calls?: ...;
                                  [key: ...]: ...;
                              }
                              | { content: ...; role: ...; tool_call_id: ...; [key: ...]: ... }
                              | { content: ...; name: ...; role: ...; [key: ...]: ... }
                              | { content: ...; name?: ...; role: ...; [key: ...]: ... }
                              | { content: ...; name?: ...; role: ...; [key: ...]: ... }
                              | { content: ...; name?: ...; role: ...; [key: ...]: ... },
                          >,
                      >,
                      ZodPipe<
                          ZodDiscriminatedUnion<
                              [ZodObject<(...), (...)>, ZodObject<(...), (...)>],
                              "type",
                          >,
                          ZodTransform<
                              | { source?: ...; text: ...; type: ... }
                              | { source: ...; text?: ...; type: ... }
                              | null,
                              { text: ...; type: ... } | { image_url: ...; type: ... },
                          >,
                      >,
                      ZodPipe<
                          ZodUnion<
                              readonly [
                                  ZodLiteral<(...)>,
                                  ZodLiteral<(...)>,
                                  ZodLiteral<(...)>,
                                  ZodObject<(...), (...)>,
                              ],
                          >,
                          ZodTransform<
                              { name: ...; type: ... }
                              | { type: ... }
                              | { type: ... },
                              "none" | "auto" | "required" | { function: ...; type: ... },
                          >,
                      >,
                      ZodPipe<
                          ZodObject<
                              {
                                  function: ZodObject<(...), (...)>;
                                  id: ZodString;
                                  type: ZodPipe<(...), (...)>;
                              },
                              $strip,
                          >,
                          ZodTransform<
                              { id: string; input: JSONLiteral; name: string; type: "tool_use" },
                              {
                                  function: { arguments: ...; name: ...; [key: ...]: ... };
                                  id: string;
                                  type: "function";
                              },
                          >,
                      >,
                      ZodPipe<
                          ZodObject<
                              { function: ZodObject<(...), (...)>; type: ZodLiteral<(...)> },
                              $loose,
                          >,
                          ZodTransform<
                              {
                                  description: string;
                                  input_schema: {
                                      additionalProperties?: ...;
                                      properties: ...;
                                      required?: ...;
                                      type: ...;
                                      [key: ...]: ...;
                                  };
                                  name: string;
                              },
                              {
                                  function: {
                                      description?: ...;
                                      name: ...;
                                      parameters: ...;
                                      [key: ...]: ...;
                                  };
                                  type: "function";
                                  [key: string]: unknown;
                              },
                          >,
                      >,
                      ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
                  >;
                  AZURE_OPENAI: SDKConverters<
                      ZodDiscriminatedUnion<
                          [
                              ZodObject<
                                  {
                                      content: ...;
                                      name: ...;
                                      role: ...;
                                      tool_call_id: ...;
                                      tool_calls: ...;
                                  },
                                  $loose,
                              >,
                              ZodObject<{ content: ...; role: ...; tool_call_id: ... }, $loose>,
                              ZodObject<{ content: ...; name: ...; role: ... }, $loose>,
                          ],
                          "role",
                      >,
                      ZodDiscriminatedUnion<
                          [
                              ZodObject<{ text: ...; type: ... }, $strip>,
                              ZodObject<{ image_url: ...; type: ... }, $strip>,
                          ],
                          "type",
                      >,
                      ZodUnion<
                          readonly [
                              ZodLiteral<"auto">,
                              ZodLiteral<"none">,
                              ZodLiteral<"required">,
                              ZodObject<{ function: ...; type: ... }, $strip>,
                          ],
                      >,
                      ZodObject<
                          {
                              function: ZodObject<{ arguments: ...; name: ... }, $loose>;
                              id: ZodString;
                              type: ZodPipe<ZodOptional<(...)>, ZodTransform<(...), (...)>>;
                          },
                          $strip,
                      >,
                      ZodObject<
                          {
                              function: ZodObject<
                                  { description: ...; name: ...; parameters: ... },
                                  $loose,
                              >;
                              type: ZodLiteral<"function">;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              json_schema: ZodObject<
                                  { description: ...; name: ...; schema: ... },
                                  $strip,
                              >;
                              type: ZodLiteral<"json_schema">;
                          },
                          $strip,
                      >,
                  >;
                  OPENAI: SDKConverters<
                      ZodDiscriminatedUnion<
                          [
                              ZodObject<
                                  {
                                      content: ...;
                                      name: ...;
                                      role: ...;
                                      tool_call_id: ...;
                                      tool_calls: ...;
                                  },
                                  $loose,
                              >,
                              ZodObject<{ content: ...; role: ...; tool_call_id: ... }, $loose>,
                              ZodObject<{ content: ...; name: ...; role: ... }, $loose>,
                          ],
                          "role",
                      >,
                      ZodDiscriminatedUnion<
                          [
                              ZodObject<{ text: ...; type: ... }, $strip>,
                              ZodObject<{ image_url: ...; type: ... }, $strip>,
                          ],
                          "type",
                      >,
                      ZodUnion<
                          readonly [
                              ZodLiteral<"auto">,
                              ZodLiteral<"none">,
                              ZodLiteral<"required">,
                              ZodObject<{ function: ...; type: ... }, $strip>,
                          ],
                      >,
                      ZodObject<
                          {
                              function: ZodObject<{ arguments: ...; name: ... }, $loose>;
                              id: ZodString;
                              type: ZodPipe<ZodOptional<(...)>, ZodTransform<(...), (...)>>;
                          },
                          $strip,
                      >,
                      ZodObject<
                          {
                              function: ZodObject<
                                  { description: ...; name: ...; parameters: ... },
                                  $loose,
                              >;
                              type: ZodLiteral<"function">;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              json_schema: ZodObject<
                                  { description: ...; name: ...; schema: ... },
                                  $strip,
                              >;
                              type: ZodLiteral<"json_schema">;
                          },
                          $strip,
                      >,
                  >;
                  PHOENIX: SDKConverters<
                      ZodPipe<
                          ZodDiscriminatedUnion<
                              [
                                  ZodObject<(...), (...)>,
                                  ZodObject<(...), (...)>,
                                  ZodObject<(...), (...)>,
                              ],
                              "role",
                          >,
                          ZodTransform<
                              {
                                  content: (...)
                                  | (...);
                                  role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              },
                              | {
                                  content: ...;
                                  name?: ...;
                                  role: ...;
                                  tool_call_id?: ...;
                                  tool_calls?: ...;
                                  [key: ...]: ...;
                              }
                              | { content: ...; role: ...; tool_call_id: ...; [key: ...]: ... }
                              | { content: ...; name: ...; role: ...; [key: ...]: ... }
                              | { content: ...; name?: ...; role: ...; [key: ...]: ... }
                              | { content: ...; name?: ...; role: ...; [key: ...]: ... }
                              | { content: ...; name?: ...; role: ...; [key: ...]: ... },
                          >,
                      >,
                      ZodUnknown,
                      ZodUnknown,
                      ZodUnknown,
                      ZodUnknown,
                      ZodUnknown,
                  >;
                  VERCEL_AI: SDKConverters<
                      ZodPipe<
                          ZodDiscriminatedUnion<
                              [
                                  ZodObject<(...), (...)>,
                                  ZodObject<(...), (...)>,
                                  ZodObject<(...), (...)>,
                              ],
                              "role",
                          >,
                          ZodTransform<
                              | { content: ...; role: ... }
                              | { content: ...; role: ... }
                              | { content: ...; role: ... }
                              | { content: ...; role: ... },

                                  | {
                                      content: ...;
                                      name?: ...;
                                      role: ...;
                                      tool_call_id?: ...;
                                      tool_calls?: ...;
                                      [key: ...]: ...;
                                  }
                                  | { content: ...; role: ...; tool_call_id: ...; [key: ...]: ... }
                                  | { content: ...; name: ...; role: ...; [key: ...]: ... }
                                  | { content: ...; name?: ...; role: ...; [key: ...]: ... }
                                  | { content: ...; name?: ...; role: ...; [key: ...]: ... }
                                  | { content: ...; name?: ...; role: ...; [key: ...]: ... },
                          >,
                      >,
                      ZodDiscriminatedUnion<
                          [
                              ZodObject<{ text: ...; type: ... }, $strip>,
                              ZodObject<{ image: ...; mimeType: ...; type: ... }, $strip>,
                              ZodObject<
                                  { input: ...; toolCallId: ...; toolName: ...; type: ... },
                                  $strip,
                              >,
                              ZodObject<
                                  { output: ...; toolCallId: ...; toolName: ...; type: ... },
                                  $strip,
                              >,
                          ],
                          "type",
                      >,
                      ZodPipe<
                          ZodUnion<
                              readonly [
                                  ZodLiteral<(...)>,
                                  ZodLiteral<(...)>,
                                  ZodLiteral<(...)>,
                                  ZodObject<(...), (...)>,
                              ],
                          >,
                          ZodTransform<
                              "none"
                              | "auto"
                              | "required"
                              | { toolName: ...; type: ... },
                              "none" | "auto" | "required" | { function: ...; type: ... },
                          >,
                      >,
                      ZodObject<
                          {
                              input: ZodType<
                                  JSONLiteral,
                                  unknown,
                                  $ZodTypeInternals<(...), (...)>,
                              >;
                              toolCallId: ZodString;
                              toolName: ZodString;
                              type: ZodLiteral<"tool-call">;
                          },
                          $strip,
                      >,
                      ZodPipe<
                          ZodObject<
                              { function: ZodObject<(...), (...)>; type: ZodLiteral<(...)> },
                              $loose,
                          >,
                          ZodTransform<
                              {
                                  description?: (...)
                                  | (...);
                                  inputSchema: { _type: ...; jsonSchema?: ...; validate: ... };
                                  type: "function";
                              },
                              {
                                  function: {
                                      description?: ...;
                                      name: ...;
                                      parameters: ...;
                                      [key: ...]: ...;
                                  };
                                  type: "function";
                                  [key: string]: unknown;
                              },
                          >,
                      >,
                      ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
                  >;
              }[TargetProviderSDK]["toolCalls"]["fromOpenAI"],
          >
          | null