MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent

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

Namespace: Novior.MentorAgent.Core. Package: Novior.MentorAgent.

public sealed record MentorAgentRejection : IEquatable<MentorAgentRejection>

Terminal
dotnet add package Novior.MentorAgent

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.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: One of MentorAgentRejectionReasons, 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 for MentorAgentRejectionReasons.SourceFailed: only its type.

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.

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.