Skip to content

common-llm-task ​

Use a task-specific prompt pattern for reviewing, summarizing, explaining, extracting, rewriting, or classifying.

When to use it ​

Choose this node when the task family is clear and you want a compact declaration. Choose an agent node when you need a bespoke prompt and its broader configuration fields.

Example ​

rattish
Rattish: 1

Workflow:
  name: Use a common LLM task

Node step:
  type: common-llm-task
  provider: codex
  task: explain
  target: Raticode workflows use explicit routes between nodes.
  instructions: Explain this sentence in plain language.
  finish: pass

task accepts review, summarize, explain, extract, rewrite, and classify, defaulting to summarize. target is the text to work on; instructions adds the criteria. Bind upstream content and use prompt locals where appropriate.

Model and effort follow the selected provider contract when omitted. The output is text unless you declare one compatible output schema. Structured-output repair has the same bounded-attempt policy as agent nodes.

Configuration ​

Configuration fields use hyphens. These are the node-specific fields; shared execution fields apply separately.

FieldTypeRequired / defaultMeaning
taskreview, summarize, explain, extract, rewrite, classify"summarize"Common prompt task family.
targetstring""Text for the chosen task.
instructionsstring""Additional task criteria.
providerstringRequiredRattish provider ID.
profilestring or nullNot setOptional compatible deployment profile.
modelstringProvider defaultModel ID supported by the selected provider.
effortstringProvider defaultEffort choice supported by that model.
working-dirstring"."Working directory resolved from the workflow project.
memorynone, run, all"none"Provider memory scope.
output-schemaobject or nullNot setInline successful-output JSON Schema.
output-schema-pathstring or nullNot setFile containing the successful-output schema.
repair-attemptsinteger (min 0, max 3)0Bounded structured-output repair attempts.

Inputs and output ​

Additional local bindings are supported. See Inputs and bindings for delivery and type rules.

Successful output is a string by default, or the value validated by the declared output schema. Select downstream fields only when the schema declares them.

Preflight and limits ​

The chosen provider and working directory must be available. A task label is not an assurance that the provider cannot change files through its own tools; use compatible permissions.

Use Raticode rattish check and Raticode rattish preflight before choosing to run the example. The installed contract is available through Raticode rattish docs --format json.

Continue with Node reference, Routes and joins, or Runs and approvals.