Module elicitation
Expand description
ACP elicitation primitives.
Implements the subset of the ACP elicitation/create RFD that
ZeroClaw uses for multiple-choice prompts. See the ACP elicitation
RFD: https://agentclientprotocol.com/rfds/elicitation
for the design rationale.
Structs§
- Elicitation
Capabilities - Capability block parsed from
initialize.clientCapabilities.elicitation. - Elicitation
Request - Params for an outbound
elicitation/createJSON-RPC request.
Enums§
- Elicitation
Mode - Elicitation transport mode.
- Elicitation
Response - Response to an
elicitation/createrequest.
Constants§
- SENSITIVE_
PROPERTY_ NAMES - Property names we refuse to put into a form-mode elicitation schema.
Functions§
- decode_
multi_ select_ accept - Decode the accepted
contentpayload of anelicitation/createmulti-select response back into the original display texts. - decode_
single_ select_ accept - Decode the accepted
contentpayload of anelicitation/createsingle-select response back into the original display text. - multi_
select_ schema - Build the restricted JSON Schema for a multi-select enum elicitation.
- multi_
select_ schema_ with_ property_ name - Internal — mirrors
single_select_schema_with_property_nameso theSENSITIVE_PROPERTY_NAMEStrip-wire guards the multi-select path too, keeping the invariant uniform for future callers. - single_
select_ schema - Build the restricted JSON Schema for a single-select enum elicitation.
- single_
select_ schema_ with_ property_ name - Internal — exposed for the sensitive-name trip-wire test.