AnswerDeclaration
Declares an interactive answer slot that can be pre-filled via
--answer:{name}=value on the CLI or answer:{name} in MCP tool calls.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/AnswerDeclaration.cs
Signature
Section titled “Signature”public sealed record AnswerDeclaration : IEquatable<AnswerDeclaration>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<AnswerDeclaration>
Constructors
Section titled “Constructors”AnswerDeclaration(string, string, string?)
Section titled “AnswerDeclaration(string, string, string?)”Declares an interactive answer slot that can be pre-filled via
--answer:{name}=value on the CLI or answer:{name} in MCP tool calls.
public AnswerDeclaration(string Name, string Type = "string", string? Description = null)Parameters
Section titled “Parameters”Name(string): Answer name (matches thenameparameter inAskConfirmationAsync, etc.).Type(string): Value type using route constraint names:string,bool,int,guid,email, etc.Description(string): Optional description for help text and agent tool schemas.
Properties
Section titled “Properties”Description
Section titled “Description”Optional description for help text and agent tool schemas.
public string? Description { get; init; }Returns
Section titled “Returns”Answer name (matches the name parameter in AskConfirmationAsync, etc.).
public string Name { get; init; }Returns
Section titled “Returns”Value type using route constraint names: string, bool, int, guid, email, etc.
public string Type { get; init; }