Table of Contents

Class AgenticRagSearchTrace

Namespace
Mythosia.AI.Rag
Assembly
Mythosia.AI.Rag.dll

Structured trace payload emitted for each Agentic RAG tool execution.

public sealed class AgenticRagSearchTrace
Inheritance
AgenticRagSearchTrace
Inherited Members

Constructors

AgenticRagSearchTrace(string, string, RagQueryOptions?, RagProcessedQuery?, Exception?)

public AgenticRagSearchTrace(string toolName, string query, RagQueryOptions? queryOptions, RagProcessedQuery? result, Exception? exception = null)

Parameters

toolName string
query string
queryOptions RagQueryOptions
result RagProcessedQuery
exception Exception

Properties

Exception

The exception thrown while resolving query options or executing the search. Null when the tool completed successfully.

public Exception? Exception { get; }

Property Value

Exception

HasReferences

Whether the successful result contains at least one reference.

public bool HasReferences { get; }

Property Value

bool

Query

The self-contained search query executed for this step.

public string Query { get; }

Property Value

string

QueryOptions

The resolved per-call query options.

public RagQueryOptions? QueryOptions { get; }

Property Value

RagQueryOptions

Result

The structured query result for successful executions. Null when the tool failed before a result was produced.

public RagProcessedQuery? Result { get; }

Property Value

RagProcessedQuery

Succeeded

Whether the search completed successfully.

public bool Succeeded { get; }

Property Value

bool

ToolName

The registered tool name that produced this trace item.

public string ToolName { get; }

Property Value

string