human_review()
Create a human-in-the-loop review request.
Usage
human_review(
content,
*,
agent="",
context="",
state="",
metadata=None,
)Parameters
content: str-
The content to be reviewed (e.g., an agent’s response, a draft, a proposed action).
agent: str = ""-
Name of the agent that produced the content.
context: str = ""-
Additional context for the reviewer.
state: str = ""-
Pathway state name where the review was requested.
metadata: dict[str, Any] | None = None- Arbitrary metadata.
Returns
HumanReview- A pending review request.
Examples
import talk_box as tb
review = tb.human_review(
"Refund $500 to customer account",
agent="billing_agent",
context="Customer requested refund for order #1234",
)
review.status # ReviewStatus.PENDING