Class AskUserTool
The tool an agent calls when it cannot go on without an answer from the user (WithUserQuestions()): the run stops before the call, as AwaitingInput with the question on Question, and resumes with the answer (Text), which becomes the call's result.
public sealed class AskUserTool : ITool, IToolMetadata
- Inheritance
-
AskUserTool
- Implements
- Inherited Members
Fields
- ToolName
The tool's name.
Properties
- Category
Gets the category this tool belongs to.
- DefaultApproval
Gets the default approval mode for this tool.
- Description
Gets a concise description of what the tool does.
- InputSchema
Gets the JSON Schema defining the expected input arguments.
- IsIdempotent
Gets whether the tool is idempotent (safe to retry without changing outcome).
- IsReadOnly
Gets whether the tool performs only read operations with no state mutation.
- Name
Gets the stable, unique identifier for this tool.
- RiskLevel
Gets the inherent risk level of this tool.
- SideEffect
Gets the type of side effect this tool may produce.
Methods
- InvokeAsync(string, CancellationToken)
Outside a run nobody can answer: the call says so. Inside a run the call never executes, the run stops before it.