Table of Contents

Enum UnhandledToolCallBehaviour

Defines the policy to apply when a tool call is received but the agent has no handler for it.

public enum UnhandledToolCallBehaviour

Fields

LogAndIgnore = 0

Logs that the tool call was unhandled. If the unhandled call prevents the conversation from progressing, the agent may attempt a fallback process to continue the dialogue flow.

ReturnRefusal = 2

Instead of raising an exception, the client directly creates and returns a ResponseMessage that contains error information, in place of the real model response.

SubmitToolOutput = 1

The agent transitions to a WaitingForToolOutput state, and the user must manually call Agent.SubmitToolOutput() to provide the tool output before the run can continue.

Throw = 3

Immediately throws an exception. Use this in strict or debugging scenarios where every tool call must be handled explicitly.