Table of Contents

Class ContextKnowledgeSourceQueryRequest

Namespace
FoundationaLLM.Common.Models.Context.Knowledge
Assembly
FoundationaLLM.Common.dll

Represents a request to query a knowledge source.

public class ContextKnowledgeSourceQueryRequest
Inheritance
ContextKnowledgeSourceQueryRequest
Inherited Members
Extension Methods

Properties

AgentObjectId

Gets or sets the agent object identifier if the query is being made on behalf of an agent.

[JsonPropertyName("agent_object_id")]
public string? AgentObjectId { get; set; }

Property Value

string

FormatResponse

Gets or sets a value indicating whether the response should be formatted.

[JsonPropertyName("format_response")]
public bool? FormatResponse { get; set; }

Property Value

bool?

Remarks

When true, the response will be plain text. Otherwise, the response will be structured.

KnowledgeGraphQuery

Gets or sets the knowledge graph query parameters.

[JsonPropertyName("knowledge_graph_query")]
public ContextKnowledgeGraphQuery? KnowledgeGraphQuery { get; set; }

Property Value

ContextKnowledgeGraphQuery

KnowledgeUnitVectorStoreFilters

Gets or sets the list of knowledge unit vector store filters.

[JsonPropertyName("knowledge_unit_vector_store_filters")]
public List<ContextKnowledgeUnitVectorStoreFilter> KnowledgeUnitVectorStoreFilters { get; set; }

Property Value

List<ContextKnowledgeUnitVectorStoreFilter>

UserPrompt

Gets or sets the user prompt used to query the knowledge source.

[JsonPropertyName("user_prompt")]
public required string UserPrompt { get; set; }

Property Value

string

VectorStoreQuery

Gets or sets the vector store query parameters.

[JsonPropertyName("vector_store_query")]
public ContextVectorStoreQuery? VectorStoreQuery { get; set; }

Property Value

ContextVectorStoreQuery