Jido.AI.Reasoning.ChainOfDraft (Jido AI v2.2.0)

Copy Markdown View Source

Canonical namespace entrypoint for Chain-of-Draft reasoning.

This module exposes shared CoD helpers and points to the canonical strategy: Jido.AI.Reasoning.ChainOfDraft.Strategy.

Summary

Functions

Returns the default CoD system prompt.

Extracts structured steps and conclusion from CoD output text.

Generates a unique CoD call ID.

Returns the canonical CoD strategy module.

Functions

default_system_prompt()

@spec default_system_prompt() :: String.t()

Returns the default CoD system prompt.

extract_steps_and_conclusion(text)

@spec extract_steps_and_conclusion(term()) ::
  {[Jido.AI.Reasoning.ChainOfThought.Machine.step()], String.t() | nil}

Extracts structured steps and conclusion from CoD output text.

generate_call_id()

@spec generate_call_id() :: String.t()

Generates a unique CoD call ID.

strategy_module()

@spec strategy_module() :: module()

Returns the canonical CoD strategy module.