Skip to content

Can't seem to set experimental_telemetry in DurableAgent.stream #389

@remiconnesson

Description

@remiconnesson

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>>>;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions