Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
MentorAgentRejection record
Something an IMentorAgentSource left out: a whole definition, or — when MentorAgentRejection.Tool is set — one tool of an agent that loaded without it.
On this page
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Core. Package: Novior.MentorAgent.
public sealed record MentorAgentRejection : IEquatable<MentorAgentRejection>
dotnet add package Novior.MentorAgentConstructors
Section titled “Constructors”public MentorAgentRejection(string Name, string ReasonCode, string? Detail)
Something an IMentorAgentSource left out: a whole definition, or — when MentorAgentRejection.Tool is set — one tool of an agent that loaded without it.
Parameters
Name: What was left out, as the source names it.Novior.MentorAgent.Declarativegives the file name, orinline[n]for the n-th ofMentorDeclarativeOptions.Definitions; forMentorAgentRejectionReasons.SourceFailed, the full type name of the source.ReasonCode: One ofMentorAgentRejectionReasons, or a code of the source's own.Detail: What to correct, when there is something to say: for a definition the agent factory refused, its message, which describes the text. Never an exception's message forMentorAgentRejectionReasons.SourceFailed: only its type.
Properties
Section titled “Properties”Detail
Section titled “Detail”public string? Detail { get; init; }
What to correct, when there is something to say: for a definition the agent factory refused, its message, which describes the text. Never an exception's message for MentorAgentRejectionReasons.SourceFailed: only its type.
public string Name { get; init; }
What was left out, as the source names it. Novior.MentorAgent.Declarative gives the file name, or inline[n] for the n-th of MentorDeclarativeOptions.Definitions; for MentorAgentRejectionReasons.SourceFailed, the full type name of the source.
ReasonCode
Section titled “ReasonCode”public string ReasonCode { get; init; }
One of MentorAgentRejectionReasons, or a code of the source's own.
public string? Tool { get; init; }
The tool taken away, when the agent loaded without it; null when the whole definition was left out.
