Preparing search index...
The search index is not available
Arize Phoenix TS
Arize Phoenix TS
@arizeai/phoenix-client
prompts/sdks/toAI
toAI
Function toAI
Converts a Phoenix prompt to Vercel AI sdk params.
note: To use response format, you must pass
prompt.response_format.json
to generateObject or streamObject directly, through the
schema
argument.
toAI
<
V
extends
Variables
>
(
__namedParameters
:
ToAIParams
<
V
>
,
)
:
null
|
PartialStreamTextParams
Type Parameters
V
extends
Variables
Parameters
__namedParameters
:
ToAIParams
<
V
>
Returns
null
|
PartialStreamTextParams
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Arize Phoenix TS
Loading...
Converts a Phoenix prompt to Vercel AI sdk params.
prompt.response_format.json
to generateObject or streamObject directly, through theschema
argument.