ask
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
The ask step invokes external reasoning: an LLM, a symbolic planner, or any governed reasoning provider. It is the primary way machines think.
Variants
ask has three forms depending on how the reasoning provider is specified:
| Form | Syntax | Purpose |
|---|---|---|
ask ... using | ask name using "provider:model" | Specify the model directly |
ask ... from | ask name from: "@mashin/actions/..." | Delegate to an effect machine |
ask ... of | ask name of "agent-name" | Ask another agent |
Basic syntax
ask classify using "anthropic:claude-sonnet-4-6" with task "Classify this email by urgency and category." returns category as text urgency as numberHow it works
- The runtime evaluates the
contextandtaskblocks to build the prompt - A governance directive is emitted (the
reasoncapability must be allowed) - The reasoning provider processes the request
- The response is parsed into the
returnsschema - The result is available as
steps.{name}.{field}
Governance
Every ask step emits a governance directive before execution. The machine must declare the reason capability in its ensures > permissions section:
ensures permissions allowed to reasonWithout this permission, the governance pipeline denies the step.
Step type
ask steps have step type :reason in the execution trace and ledger events.
See also
- ask … using — specify model directly
- ask … from — delegate to effect machine
- ask … of — ask another agent
- compute — pure computation (no reasoning)
- decide — branching based on values