dragon.ai.agent.hitl.models.HumanApprovalResponse

class HumanApprovalResponse[source]

Bases: object

Payload sent back from the HITL client after the operator decides.

Also written to DDict for in-runtime logging.

Attributes

approved:

True if the operator approved the tool call.

reason:

Operator’s explanation (rejection reason or feedback text).

is_feedback:

True when the operator chose to provide feedback rather than a hard reject. The LLM receives the feedback and retries.

__init__(approved: bool , reason: str = '', is_feedback: bool = False, timestamp: float = <factory>) None

Methods

__init__(approved, reason, is_feedback, ...)

Attributes

is_feedback

reason

approved

timestamp

approved: bool
reason: str = ''
is_feedback: bool = False
timestamp: float
__init__(approved: bool , reason: str = '', is_feedback: bool = False, timestamp: float = <factory>) None