.NET API
ToolRegistrationOptions
Namespace Tracon · Assembly
Tracon.Abstractions.dllConfigures metadata for a tool registration.
public sealed class ToolRegistrationOptionsInheritance
Section titled “Inheritance”object ← ToolRegistrationOptions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ToolRegistrationOptions()
Section titled “ ToolRegistrationOptions()”public ToolRegistrationOptions()Properties
Section titled “Properties”Effect
Section titled “ Effect”Gets or sets the tool effect. The default is ToolEffect.Read.
public ToolEffect Effect { get; set; }Property Value
Section titled “Property Value”MaxOutputBytes
Section titled “ MaxOutputBytes”Gets or sets the maximum UTF-8 result size, or null to use the installation default.
public int? MaxOutputBytes { get; set; }Property Value
Section titled “Property Value”int?
RequiredPermission
Section titled “ RequiredPermission”Gets or sets the permission required to invoke the tool.
public string? RequiredPermission { get; set; }Property Value
Section titled “Property Value”RequiresApproval
Section titled “ RequiresApproval”Gets or sets whether a call needs explicit approval.
public bool RequiresApproval { get; set; }Property Value
Section titled “Property Value”SafeToRepeat
Section titled “ SafeToRepeat”Gets or sets whether an interrupted external or destructive call may be repeated.
public bool SafeToRepeat { get; set; }Property Value
Section titled “Property Value”Source
Section titled “ Source”Gets or sets the tool source. Code-defined tools use null.
public string? Source { get; set; }Property Value
Section titled “Property Value”Timeout
Section titled “ Timeout”Gets or sets the tool timeout, or null to use the installation default.
public TimeSpan? Timeout { get; set; }