Table of Contents

Interface IUserPromptRewriteService

Namespace
FoundationaLLM.Orchestration.Core.Interfaces
Assembly
FoundationaLLM.Orchestration.Core.dll

Defines the interface for the user prompt rewrite service.

public interface IUserPromptRewriteService
Extension Methods

Methods

HasUserPromptRewriterForAgent(string, string)

Determines whether user prompt rewrite is configured for the specified agent in the specified FoundationaLLM instance.

bool HasUserPromptRewriterForAgent(string instanceId, string agentName)

Parameters

instanceId string

The unique identifier of the FoundationaLLM instance.

agentName string

The name of the agent.

Returns

bool

if the user prompt rewrite for the specified agent is configured, otherwise.

InitializeUserPromptRewriterForAgent(string, string, AgentUserPromptRewriteSettings)

Initializes user prompt rewrite for the specified agent in the specified FoundationaLLM instance.

Task InitializeUserPromptRewriterForAgent(string instanceId, string agentName, AgentUserPromptRewriteSettings agentSettings)

Parameters

instanceId string

The unique identifier of the FoundationaLLM instance.

agentName string

The name of the agent.

agentSettings AgentUserPromptRewriteSettings

The AgentUserPromptRewriteSettings providing the agent's user prompt rewrite settings.

Returns

Task

RewriteUserPrompt(string, string, CompletionRequest)

Rewrites the user prompt to a form that can be used by the AI model.

Task RewriteUserPrompt(string instanceId, string agentName, CompletionRequest completionRequest)

Parameters

instanceId string

The unique identifier of the FoundationaLLM instance.

agentName string

The name of the agent.

completionRequest CompletionRequest

The CompletionRequest for which to rewrite the user prompt.

Returns

Task

The rewritten user prompt.