MentorAgent Docs
Menu

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

ReferencePackage: Novior.MentorAgent

MentorAgentRejectionReasons class

The MentorAgentRejectionReasons class of Novior.MentorAgent.Core: The reason codes of MentorAgentRejection.ReasonCode. They stay the same from one version to…

On this page

The reason codes of MentorAgentRejection.ReasonCode. They stay the same from one version to the next; a new one comes only in a minor version, and the CHANGELOG says so.

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

public static class MentorAgentRejectionReasons

Terminal
dotnet add package Novior.MentorAgent

public const string ForeignTools = "foreign-tools"

The definition adds tools a definition may not add (webSearch, codeInterpreter, fileSearch, mcp), or names a function the session does not have, and they could not be taken away: the agent is not loaded.

public const string HostedToolRemoved = "hosted-tool-removed"

With MentorAgentRejection.Tool: a tool the definition added itself — web search, code interpreter, file search, an MCP server — was taken away. The agent loads with the application's own tools.

public const string InvalidConfiguration = "invalid-configuration"

The configuration exposed to the definitions is not valid for the expressions they are evaluated with. Every definition of the source is left out.

public const string InvalidDefinition = "invalid-definition"

The agent factory refused the definition: the YAML does not parse, does not describe a valid agent, or describes something else — a workflow, say, in a file meant to hold an agent.

public const string NameTaken = "name-taken"

A team of an IMentorTeamSource whose tool name is already taken: by a team written in C#, an action, one of MentorAgent's own tools, or a team another definition gave first. The code wins; the team is left out.

public const string NoMembers = "no-members"

A team of an IMentorTeamSource with no member: there is nobody to discuss. Left out.

public const string NotAnAgent = "not-an-agent"

The definition gave no agent, and no error to say why. The Agent Framework's factory refuses a definition of another kind (MentorAgentRejectionReasons.InvalidDefinition); this is for a factory or a source that answers with nothing.

public const string SourceFailed = "source-failed"

The whole source threw. Added by MentorAgent, with the source's type as the name and the exception's type, never its message, as the detail; the other sources still load.

public const string ToolNotFound = "tool-not-found"

With MentorAgentRejection.Tool: a kind: function entry names no action this session has — unknown to the application, or off for this session. The agent loads without it.