Arize Phoenix TS
Preparing search index...
@arizeai/phoenix-client
schemas/llm/anthropic/converters
anthropicMessagePartToOpenAI
Variable anthropicMessagePartToOpenAI
Const
anthropicMessagePartToOpenAI
:
ZodPipe
<
ZodDiscriminatedUnion
<
[
ZodObject
<
{
text
:
ZodString
;
type
:
ZodLiteral
<
"text"
>
}
,
$strip
>
,
ZodObject
<
{
source
:
ZodObject
<
{
data
:
ZodString
;
media_type
:
ZodEnum
<
{
"image/gif"
:
"image/gif"
;
"image/jpeg"
:
"image/jpeg"
;
"image/png"
:
"image/png"
;
"image/webp"
:
"image/webp"
;
}
,
>
;
type
:
ZodLiteral
<
"base64"
>
;
}
,
$strip
,
>
;
type
:
ZodLiteral
<
"image"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
id
:
ZodString
;
input
:
ZodType
<
JSONLiteral
,
unknown
,
$ZodTypeInternals
<
JSONLiteral
,
unknown
>
,
>
;
name
:
ZodString
;
type
:
ZodLiteral
<
"tool_use"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
content
:
ZodUnion
<
readonly
[
ZodString
,
ZodArray
<
ZodUnion
<
readonly
[
ZodObject
<
(...)
,
(...)
>
,
ZodObject
<
(...)
,
(...)
>
]
,
>
,
>
,
]
,
>
;
is_error
:
ZodOptional
<
ZodBoolean
>
;
tool_use_id
:
ZodString
;
type
:
ZodLiteral
<
"tool_result"
>
;
}
,
$strip
,
>
,
]
,
"type"
,
>
,
ZodTransform
<
|
{
text
:
string
;
type
:
"text"
}
|
{
image_url
:
{
url
:
string
}
;
type
:
"image_url"
}
|
null
,
|
{
id
:
string
;
input
:
JSONLiteral
;
name
:
string
;
type
:
"tool_use"
}
|
{
text
:
string
;
type
:
"text"
}
|
{
source
:
{
data
:
string
;
media_type
:
"image/jpeg"
|
"image/png"
|
"image/gif"
|
"image/webp"
;
type
:
"base64"
;
}
;
type
:
"image"
;
}
|
{
content
:
|
string
|
(
|
{
text
:
string
;
type
:
"text"
}
|
{
source
:
{
data
:
string
;
media_type
:
"image/jpeg"
|
"image/png"
|
"image/gif"
|
"image/webp"
;
type
:
"base64"
;
}
;
type
:
"image"
;
}
)
[]
;
is_error
?:
boolean
;
tool_use_id
:
string
;
type
:
"tool_result"
;
}
,
>
,
>
= ...
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Arize Phoenix TS
Loading...