include/entropic/types/tool_result.hΒΆ

← API

include/entropic/types/tool_result.h

Functions

const char * entropic::result_kind_to_string(ToolResultKind kind)

Serialize a ToolResultKind to its wire-stable string form.

Parameters
  • kind β€” Enum value.
Returns
Static null-terminated string. Never NULL.

Enums

ToolResultKind

Categorical outcome of a single tool invocation.

Values are serialized into the POST_TOOL_CALL hook context JSON as the result_kind string. Do NOT reorder or remove values β€” clients treat the string form as a stable contract.

  • ok 0
  • error
  • rejected_duplicate
  • rejected_schema
  • rejected_precondition
  • ok_empty
  • delegation_failed
  • rejected_anti_spiral
  • rejected_unauthorized