It seems that it's not possible to set experimental_telemetry as the stream method doesn't accept it as a parameter
|
async stream(options: DurableAgentStreamOptions) { |
and neither do the options
|
export interface DurableAgentStreamOptions { |
|
/** |
|
* The conversation messages to process. Should follow the AI SDK's ModelMessage format. |
|
*/ |
|
messages: ModelMessage[]; |
|
|
|
/** |
|
* Optional system prompt override. If provided, overrides the system prompt from the constructor. |
|
*/ |
|
system?: string; |
|
|
|
/** |
|
* The stream to which the agent writes message chunks. For example, use `getWritable<UIMessageChunk>()` to write to the workflow's default output stream. |
|
*/ |
|
writable: WritableStream<UIMessageChunk>; |
|
|
|
/** |
|
* If true, prevents the writable stream from being closed after streaming completes. |
|
* Defaults to false (stream will be closed). |
|
*/ |
|
preventClose?: boolean; |
|
|
|
/** |
|
* If true, sends a 'start' chunk at the beginning of the stream. |
|
* Defaults to true. |
|
*/ |
|
sendStart?: boolean; |
|
|
|
/** |
|
* If true, sends a 'finish' chunk at the end of the stream. |
|
* Defaults to true. |
|
*/ |
|
sendFinish?: boolean; |
|
|
|
/** |
|
* Condition for stopping the generation when there are tool results in the last step. |
|
* When the condition is an array, any of the conditions can be met to stop the generation. |
|
*/ |
|
stopWhen?: |
|
| StopCondition<NoInfer<ToolSet>> |
|
| Array<StopCondition<NoInfer<ToolSet>>>; |
|
} |
It seems that it's not possible to set
experimental_telemetryas the stream method doesn't accept it as a parameterworkflow/packages/ai/src/agent/durable-agent.ts
Line 131 in 9961140
and neither do the options
workflow/packages/ai/src/agent/durable-agent.ts
Lines 45 to 86 in 9961140