Table of Contents

Class AgentWorkflowBase

Namespace
FoundationaLLM.Common.Models.ResourceProviders.Agent.AgentWorkflows
Assembly
FoundationaLLM.Common.dll

Provides a workflow configuration for an agent.

[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
[JsonDerivedType(typeof(AzureAIAgentServiceAgentWorkflow), "azure-ai-agent-service-workflow")]
[JsonDerivedType(typeof(AzureOpenAIAssistantsAgentWorkflow), "azure-openai-assistants-workflow")]
[JsonDerivedType(typeof(LangChainExpressionLanguageAgentWorkflow), "langchain-expression-language-workflow")]
[JsonDerivedType(typeof(LangGraphReactAgentWorkflow), "langgraph-react-agent-workflow")]
[JsonDerivedType(typeof(ExternalAgentWorkflow), "external-agent-workflow")]
public class AgentWorkflowBase
Inheritance
AgentWorkflowBase
Derived
Inherited Members
Extension Methods

Properties

AIProjectObjectId

Gets the AI object identifier.

[JsonIgnore]
public string? AIProjectObjectId { get; }

Property Value

string

ClassName

The class name of the workflow. For internal workflows, this value will be FoundationaLLM For external workflows, this value will be the name of the implementation class.

[JsonPropertyName("class_name")]
public string? ClassName { get; set; }

Property Value

string

MainAIModelObjectId

Gets the main AI model object identifier.

[JsonIgnore]
public string? MainAIModelObjectId { get; }

Property Value

string

MainPromptObjectId

Gets the main prompt object identifier.

[JsonIgnore]
public string? MainPromptObjectId { get; }

Property Value

string

Name

The name of the workflow.

[JsonPropertyName("name")]
public required string Name { get; set; }

Property Value

string

PackageName

Gets or sets the package name of the workflow. For internal workflows, this value will be FoundationaLLM For external workflows, this value will be the name of the package.

[JsonPropertyName("package_name")]
public required string PackageName { get; set; }

Property Value

string

Properties

Gets or sets a dictionary of properties that are specific to the workflow.

[JsonPropertyName("properties")]
public Dictionary<string, object>? Properties { get; set; }

Property Value

Dictionary<string, object>

ResourceObjectIds

Gets or sets a dictionary of resource objects.

[JsonPropertyName("resource_object_ids")]
public Dictionary<string, ResourceObjectIdProperties> ResourceObjectIds { get; set; }

Property Value

Dictionary<string, ResourceObjectIdProperties>

RouterPromptObjectId

Gets the router prompt object identifier.

[JsonIgnore]
public string? RouterPromptObjectId { get; }

Property Value

string

Type

The workflow resource associated with the agent.

[JsonPropertyName("type")]
public virtual string? Type { get; set; }

Property Value

string

WorkflowHost

The host of the workflow environment.

[JsonPropertyName("workflow_host")]
public string? WorkflowHost { get; set; }

Property Value

string