Table of Contents

Class AzureContainerAppsServiceBase

Namespace
FoundationaLLM.Context.Services
Assembly
FoundationaLLM.Context.dll

Base class for Azure Container Apps Dynamic Sessions services.

public class AzureContainerAppsServiceBase
Inheritance
AzureContainerAppsServiceBase
Derived
Inherited Members
Extension Methods

Constructors

AzureContainerAppsServiceBase(IHttpClientFactory, ILogger)

Base class for Azure Container Apps Dynamic Sessions services.

public AzureContainerAppsServiceBase(IHttpClientFactory httpClientFactory, ILogger logger)

Parameters

httpClientFactory IHttpClientFactory

The factory used to create HttpClient instances.

logger ILogger

The logger used for logging.

Fields

_logger

protected readonly ILogger _logger

Field Value

ILogger

Methods

CreateCodeSessionInternal(string, string, string, string, string, UnifiedUserIdentity)

protected Task<CreateCodeSessionResponse> CreateCodeSessionInternal(string instanceId, string agentName, string conversationId, string context, string sessionEndpoint, UnifiedUserIdentity userIdentity)

Parameters

instanceId string
agentName string
conversationId string
context string
sessionEndpoint string
userIdentity UnifiedUserIdentity

Returns

Task<CreateCodeSessionResponse>

CreateHttpClient()

protected Task<HttpClient> CreateHttpClient()

Returns

Task<HttpClient>

GetNewSessionId(string, string)

Generates a new session identifier based on the conversation identifier and context.

protected virtual string GetNewSessionId(string conversationId, string context)

Parameters

conversationId string

The conversation identifier.

context string

Additional context for the code session.

Returns

string

Remarks

The context is usually the name of the agent tool that requests the code session.