EveToolStub
NexusLabs.Eve¶
EveToolStub Class¶
Declares a creation-time tool rule with one outcome or an ordered, nonempty sequence.
Inheritance System.Object → EveToolStub
Constructors¶
EveToolStub(string, string, EveToolStubOutcome, IReadOnlyDictionary\<string,JsonElement>) Constructor¶
Initializes a rule with one outcome.
public EveToolStub(string id, string tool, NexusLabs.Eve.EveToolStubOutcome outcome, System.Collections.Generic.IReadOnlyDictionary<string,System.Text.Json.JsonElement>? match=null);
Parameters¶
A nonempty identifier unique within the session's rules.
tool System.String
A tool name, optionally qualified by a local subagent path.
outcome EveToolStubOutcome
The single response or thrown error.
match System.Collections.Generic.IReadOnlyDictionary<System.String,System.Text.Json.JsonElement>
Input property names mapped to JSON Schema objects or booleans.
Exceptions¶
System.ArgumentException
An identifier, target, or constraint is invalid.
System.ArgumentNullException
An outcome or required argument is null.
EveToolStub(string, string, IReadOnlyList\<EveToolStubOutcome>, IReadOnlyDictionary\<string,JsonElement>) Constructor¶
Initializes a rule with ordered outcomes selected by the server.
public EveToolStub(string id, string tool, System.Collections.Generic.IReadOnlyList<NexusLabs.Eve.EveToolStubOutcome> outcomes, System.Collections.Generic.IReadOnlyDictionary<string,System.Text.Json.JsonElement>? match=null);
Parameters¶
A nonempty identifier unique within the session's rules.
tool System.String
A tool name, optionally qualified by a local subagent path.
outcomes System.Collections.Generic.IReadOnlyList<EveToolStubOutcome>
A nonempty ordered sequence of responses and thrown errors.
match System.Collections.Generic.IReadOnlyDictionary<System.String,System.Text.Json.JsonElement>
Input property names mapped to JSON Schema objects or booleans.
Exceptions¶
System.ArgumentException
An identifier, target, sequence, or constraint is invalid.
System.ArgumentNullException
A required argument or outcome is null.
Properties¶
EveToolStub.Id Property¶
Gets the rule identifier.
Property Value¶
EveToolStub.IsSequence Property¶
Gets whether to emit outcomes instead of outcome.
Property Value¶
EveToolStub.Match Property¶
Gets optional input-property JSON Schema constraints.
public System.Collections.Generic.IReadOnlyDictionary<string,System.Text.Json.JsonElement>? Match { get; }
Property Value¶
System.Collections.Generic.IReadOnlyDictionary<System.String,System.Text.Json.JsonElement>
EveToolStub.Outcomes Property¶
Gets the immutable ordered outcomes.
Property Value¶
System.Collections.Generic.IReadOnlyList<EveToolStubOutcome>
EveToolStub.Tool Property¶
Gets the target tool name.