DeclarativeWorkflowBuilder.Eject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Eject(TextReader, DeclarativeWorkflowLanguage, String, String) |
Generates source code (provider/executor scaffolding) for the workflow defined in the provided YAML reader. |
| Eject(String, DeclarativeWorkflowLanguage, String, String) |
Generates source code (provider/executor scaffolding) for the workflow defined in the YAML file. |
Eject(TextReader, DeclarativeWorkflowLanguage, String, String)
Generates source code (provider/executor scaffolding) for the workflow defined in the provided YAML reader.
public static string Eject(System.IO.TextReader yamlReader, Microsoft.Agents.AI.Workflows.Declarative.DeclarativeWorkflowLanguage workflowLanguage, string? workflowNamespace = default, string? workflowPrefix = default);
static member Eject : System.IO.TextReader * Microsoft.Agents.AI.Workflows.Declarative.DeclarativeWorkflowLanguage * string * string -> string
Public Shared Function Eject (yamlReader As TextReader, workflowLanguage As DeclarativeWorkflowLanguage, Optional workflowNamespace As String = Nothing, Optional workflowPrefix As String = Nothing) As String
Parameters
- yamlReader
- TextReader
The reader supplying the workflow YAML.
- workflowLanguage
- DeclarativeWorkflowLanguage
The language to use for the generated code.
- workflowNamespace
- String
Optional target namespace for the generated code.
- workflowPrefix
- String
Optional prefix for generated workflow type.
Returns
The generated source code representing the workflow.
Applies to
Eject(String, DeclarativeWorkflowLanguage, String, String)
Generates source code (provider/executor scaffolding) for the workflow defined in the YAML file.
public static string Eject(string workflowFile, Microsoft.Agents.AI.Workflows.Declarative.DeclarativeWorkflowLanguage workflowLanguage, string? workflowNamespace = default, string? workflowPrefix = default);
static member Eject : string * Microsoft.Agents.AI.Workflows.Declarative.DeclarativeWorkflowLanguage * string * string -> string
Public Shared Function Eject (workflowFile As String, workflowLanguage As DeclarativeWorkflowLanguage, Optional workflowNamespace As String = Nothing, Optional workflowPrefix As String = Nothing) As String
Parameters
- workflowFile
- String
The path to the workflow YAML file.
- workflowLanguage
- DeclarativeWorkflowLanguage
The language to use for the generated code.
- workflowNamespace
- String
Optional target namespace for the generated code.
- workflowPrefix
- String
Optional prefix for generated workflow type.
Returns
The generated source code representing the workflow.