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
stringThe unique identifier of the FoundationaLLM instance.
agentName
stringThe 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
stringThe unique identifier of the FoundationaLLM instance.
agentName
stringThe name of the agent.
agentSettings
AgentUserPromptRewriteSettingsThe AgentUserPromptRewriteSettings providing the agent's user prompt rewrite settings.
Returns
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
stringThe unique identifier of the FoundationaLLM instance.
agentName
stringThe name of the agent.
completionRequest
CompletionRequestThe CompletionRequest for which to rewrite the user prompt.
Returns
- Task
The rewritten user prompt.