Share via


DeclarativeWorkflowOptions Class

Definition

Configuration options for workflow execution.

public sealed class DeclarativeWorkflowOptions
type DeclarativeWorkflowOptions = class
Public NotInheritable Class DeclarativeWorkflowOptions
Inheritance
DeclarativeWorkflowOptions

Constructors

Name Description
DeclarativeWorkflowOptions(ResponseAgentProvider)

Configuration options for workflow execution.

Properties

Name Description
AgentProvider

Defines the agent provider.

Configuration

Defines the configuration settings for the workflow.

ConfigureTelemetry

Gets the callback to configure telemetry options.

ConversationId

Optionally identifies a continued workflow conversation.

LoggerFactory

Gets the ILoggerFactory used to create loggers for workflow components.

MaximumCallDepth

Defines the maximum number of nested calls allowed in a PowerFx formula.

MaximumExpressionLength

Defines the maximum allowed length for expressions evaluated in the workflow.

McpToolHandler

Gets or sets the MCP tool handler for invoking MCP tools within workflows. If not set, MCP tool invocations will fail with an appropriate error message.

TelemetryActivitySource

Gets an optional ActivitySource for telemetry. If provided, the caller retains ownership and is responsible for disposal. If null but ConfigureTelemetry is set, a shared default activity source named "Microsoft.Agents.AI.Workflows" will be used.

Applies to