Arize Phoenix TS
Preparing search index...
@arizeai/phoenix-client
schemas/llm/openai/converters
openAIToolDefinitionToAnthropic
Variable openAIToolDefinitionToAnthropic
Const
openAIToolDefinitionToAnthropic
:
ZodPipe
<
ZodObject
<
{
function
:
ZodObject
<
{
description
:
ZodOptional
<
ZodString
>
;
name
:
ZodString
;
parameters
:
ZodObject
<
{
additionalProperties
:
ZodOptional
<
ZodBoolean
>
;
properties
:
ZodRecord
<
ZodString
,
ZodUnion
<
readonly
[
ZodObject
<
(...)
,
(...)
>
,
ZodObject
<
(...)
,
(...)
>
]
,
>
,
>
;
required
:
ZodOptional
<
ZodArray
<
ZodString
>
>
;
strict
:
ZodOptional
<
ZodBoolean
>
;
type
:
ZodLiteral
<
"object"
>
;
}
,
$loose
,
>
;
}
,
$loose
,
>
;
type
:
ZodLiteral
<
"function"
>
;
}
,
$loose
,
>
,
ZodTransform
<
{
description
:
string
;
input_schema
:
{
additionalProperties
?:
boolean
;
properties
:
Record
<
string
,
|
{
description
?:
string
;
enum
?:
JSONLiteral
[]
;
type
:
|
"string"
|
"number"
|
"boolean"
|
"object"
|
"null"
|
"array"
|
"integer"
;
[
key
:
string
]:
unknown
;
}
|
{
anyOf
:
{
description
?:
string
;
enum
?:
(...)
[]
;
type
:
|
"string"
|
"number"
|
"boolean"
|
"object"
|
"null"
|
"array"
|
"integer"
;
[
key
:
string
]:
unknown
;
}
[]
;
[
key
:
string
]:
unknown
;
}
,
>
;
required
?:
string
[]
;
type
:
"object"
;
[
key
:
string
]:
unknown
;
}
;
name
:
string
;
}
,
{
function
:
{
description
?:
string
;
name
:
string
;
parameters
:
{
additionalProperties
?:
boolean
;
properties
:
Record
<
string
,
|
{
description
?:
string
;
enum
?:
JSONLiteral
[]
;
type
:
|
"string"
|
"number"
|
"boolean"
|
"object"
|
"null"
|
"array"
|
"integer"
;
[
key
:
string
]:
unknown
;
}
|
{
anyOf
:
{
description
?:
(...)
|
(...)
;
enum
?:
(...)
|
(...)
;
type
:
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
|
(...)
;
[
key
:
string
]:
unknown
;
}
[]
;
[
key
:
string
]:
unknown
;
}
,
>
;
required
?:
string
[]
;
strict
?:
boolean
;
type
:
"object"
;
[
key
:
string
]:
unknown
;
}
;
[
key
:
string
]:
unknown
;
}
;
type
:
"function"
;
[
key
:
string
]:
unknown
;
}
,
>
,
>
= ...
Parse incoming object as an OpenAI tool call and immediately convert to Anthropic format
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Arize Phoenix TS
Loading...
Parse incoming object as an OpenAI tool call and immediately convert to Anthropic format