Arize Phoenix TS
Preparing search index...
@arizeai/phoenix-client
schemas/llm/anthropic/messageSchemas
anthropicMessageSchema
Variable anthropicMessageSchema
Const
anthropicMessageSchema
:
ZodObject
<
{
content
:
ZodUnion
<
readonly
[
ZodString
,
ZodArray
<
ZodDiscriminatedUnion
<
[
ZodObject
<
{
text
:
ZodString
;
type
:
ZodLiteral
<
"text"
>
}
,
$strip
>
,
ZodObject
<
{
source
:
ZodObject
<
{
data
:
...
;
media_type
:
...
;
type
:
...
}
,
$strip
,
>
;
type
:
ZodLiteral
<
"image"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
id
:
ZodString
;
input
:
ZodType
<
JSONLiteral
,
unknown
,
$ZodTypeInternals
<
(...)
,
(...)
>
,
>
;
name
:
ZodString
;
type
:
ZodLiteral
<
"tool_use"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
content
:
ZodUnion
<
readonly
[
(...)
,
(...)
]
>
;
is_error
:
ZodOptional
<
ZodBoolean
>
;
tool_use_id
:
ZodString
;
type
:
ZodLiteral
<
"tool_result"
>
;
}
,
$strip
,
>
,
]
,
"type"
,
>
,
>
,
]
,
>
;
role
:
ZodEnum
<
{
assistant
:
"assistant"
;
user
:
"user"
}
>
;
}
,
$loose
,
>
= ...
TODO: rewrite as discriminated union
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Arize Phoenix TS
Loading...
TODO: rewrite as discriminated union