Table of Contents

Enum ToolFailureMode

Namespace
Emissary
Assembly
Emissary.dll

What happens when a tool handler throws.

public enum ToolFailureMode

Fields

Propagate = 1

The exception propagates out of the run. Choose this when a failing tool means the run's result cannot be trusted, or in tests where an unexpected throw should fail loudly.

ReportToModel = 0

The failure is reported to the model as an error tool result, so it can retry, try another tool, or tell the user — the run continues. Recommended: a tool failing (a timeout, a 404, a locked row) is an operational event, not a reason to lose the whole conversation.