Class CompletionResponseBase
- Namespace
- FoundationaLLM.Common.Models.Orchestration.Response
- Assembly
- FoundationaLLM.Common.dll
Base model for a response from a language model.
public class CompletionResponseBase
- Inheritance
-
CompletionResponseBase
- Derived
- Inherited Members
- Extension Methods
Properties
AgentName
The name of the FoundationaLLM agent.
[JsonPropertyName("agent_name")]
public string? AgentName { get; set; }
Property Value
AnalysisResults
A list of results from the analysis.
[JsonPropertyName("analysis_results")]
public List<AnalysisResult>? AnalysisResults { get; set; }
Property Value
Completion
The completion response from the language model.
[JsonPropertyName("completion")]
public string? Completion { get; set; }
Property Value
CompletionTokens
The number of tokens in the completion.
[JsonPropertyName("completion_tokens")]
public int CompletionTokens { get; set; }
Property Value
Content
Content returned from the Assistants API.
[JsonPropertyName("content")]
public List<MessageContentItemBase>? Content { get; set; }
Property Value
ContentArtifacts
The sources used in building the completion response.
[JsonPropertyName("content_artifacts")]
public ContentArtifact[]? ContentArtifacts { get; set; }
Property Value
Deleted
Deleted flag used for soft delete.
[JsonPropertyName("deleted")]
public bool Deleted { get; set; }
Property Value
Errors
An array of error messages that occurred during the completion operation.
[JsonPropertyName("errors")]
public string[]? Errors { get; set; }
Property Value
- string[]
FullPrompt
The full prompt composed by the LLM.
[JsonPropertyName("full_prompt")]
public string? FullPrompt { get; set; }
Property Value
IsError
Whether the errors collection actually represent a full error condition or not.
[JsonPropertyName("is_error")]
public bool? IsError { get; set; }
Property Value
- bool?
OperationId
The Operation ID identifying the completion request.
[JsonPropertyName("operation_id")]
public string OperationId { get; set; }
Property Value
PromptTemplate
The prompt template used by the LLM.
[JsonPropertyName("prompt_template")]
public string? PromptTemplate { get; set; }
Property Value
PromptTokens
The number of tokens in the prompt.
[JsonPropertyName("prompt_tokens")]
public int PromptTokens { get; set; }
Property Value
TotalCost
The total cost of executing the completion operation.
[JsonPropertyName("total_cost")]
public float TotalCost { get; set; }
Property Value
TotalTokens
The total number of tokens.
[JsonPropertyName("total_tokens")]
public int TotalTokens { get; }
Property Value
UserPrompt
The user prompt the language model responded to.
[JsonPropertyName("user_prompt")]
public string UserPrompt { get; set; }
Property Value
UserPromptRewrite
The user prompt rewrite.
[JsonPropertyName("user_prompt_rewrite")]
public string? UserPromptRewrite { get; set; }