ChatItem is the item type for TurnLoop. Each user query or approval decision is pushed as a ChatItem.
| 52 | // ChatItem is the item type for TurnLoop. Each user query or approval decision |
| 53 | // is pushed as a ChatItem. |
| 54 | type ChatItem struct { |
| 55 | Query string // user message text (empty for approval items) |
| 56 | ApprovalResult *commontool.ApprovalResult // non-nil when this item carries an approval decision |
| 57 | InterruptID string // which interrupt this approval resolves |
| 58 | } |
| 59 | |
| 60 | // errInterrupted is returned by OnAgentEvents when the agent is interrupted |
| 61 | // for approval. The TurnLoop exits with this as ExitReason. |
nothing calls this directly
no outgoing calls
no test coverage detected