ask answer and interaction-state models.
InteractionResponse is the validated answer pushed onto the reply channel;
AskAnswer is the one value a synchronous asker receives;
InteractionState is the mutable record the answer endpoint reads;
SuspendedInteraction is the sentinel an async ask returns in place of an answer.
ELICIT_META_REPLY_TO
tai42_contract.interactions.models.response.ELICIT_META_REPLY_TO
InteractionResponse
tai42_contract.interactions.models.response.InteractionResponse
params is the OPTIONAL opaque channel enrichment carried WITH the answer — the answer-path
counterpart of the bridge path’s params and a
conversation entry’s params: when a tap/reply that ANSWERS a pending ask also carries
channel-specific context (a tapped reply id, a template button payload, a referral) the
channel encodes it as string entries here. The SAME transport vocabulary
(validate_entry_params) bounds it as every params seam;
the platform attaches no meaning and NO TRUST. None means no enrichment — a plain answer.
The asker receives it as is, beside answer, in the AskAnswer a synchronous ask
returns and, as JSON, in a continuation’s ask_result (as a preset’s output stage maps it,
when the park sits under one).
medium_message_id is the id the medium gave the participant’s reply message, the one a
later quote names; None when the answer did not arrive as a message on a medium (an
operator or caller answer) or the medium has no such id.
reply_to_medium_message_id is the medium’s id of the message the answering reply quoted;
None when it quoted none or the answer did not arrive over a channel. It holds the id only,
never the quoted text: the platform resolves the text from the conversation record and hands
it to the asker as reply_to, beside answer.
Attributes
AskAnswer
tai42_contract.interactions.models.response.AskAnswer
ask_result; on expiry its
answer is the expiry marker and reply_to and params are None.
answer is the answer value exactly as the answering party gave it; on a sensitive ask it is
the SecretValue wrapping it, held by reference, so dumping this
value to JSON refuses loudly as a dump of the bare SecretValue does. The answer is never
changed or merged with the quote or the params.
reply_to is the message the answering reply quoted, as the platform resolved it from the
conversation record; None when the reply quoted none or the answer did not come over a
channel. params is the channel’s opaque enrichment of the answering tap or reply
(InteractionResponse.params, the same vocabulary, no platform meaning), passed through
as is; None when the answer carried none. Frozen.
Attributes
InteractionState
tai42_contract.interactions.models.response.InteractionState
SuspendedInteraction
tai42_contract.interactions.models.response.SuspendedInteraction
async ask returns in place of an answer.
Any async-suspending tool returns it to signal the caller was parked, keyed by
interaction_id so the resume path can find the parked question. Generic:
a resuming driver’s resume state is keyed by this id, not carried here.
Attributes
ResumeBuffered
tai42_contract.interactions.models.response.ResumeBuffered
remaining_ids are the
still-unanswered asks of the same step. It is NOT terminal — the platform’s delivery chokepoint
delivers nothing for it (the run stays parked), and visit normalises it to the caller/user
partition of the remaining ids. Generic: it names interaction ids only, no driver
or engine state. Kept by TYPE through the run-tool seam alongside SuspendedInteraction so a
caller recognises a still-suspended step rather than mistaking it for a terminal result.
Attributes
RunFailed
tai42_contract.interactions.models.response.RunFailed
outcome is the failing driver’s opaque mapping.
A driver that resumes another driver’s run through a chain-delivery tool reads the failure by
TYPE, never by a status word inside the outcome: the outcome stays the failing driver’s own
JSON mapping, carried whole. A continuation face raises
RunTerminalFailed with it, so the platform delivers FAILED.
reply is the optional participant-facing text a conversation door shows in place of its
fixed failure line, under the same rules as RunTerminalFailed’s
reply: the platform never inspects or changes it, and the target that sets it owns that it
is safe for the participant. None means no reply.
Attributes

