ResultParser


Object Hierarchy:

Object hierarchy for ResultParser

Description:

public class ResultParser : Object

Parses structured markdown responses from the LLM into task data and results.

Purpose: Turn raw LLM output (planning, refinement, or executor responses) into in-memory structures (List/Step/Details) and fill task properties. Validation failures are accumulated in issues so the caller can retry or report.

Constructor builds a Markdown.Document; parse_task_list , extract_refinement, extract_exec, and exec_extract each expect specific sections and populate task_list / task / issues accordingly.

How it fits in the task flow:

  • Planning: Runner receives the planning response → new ResultParser(this, response),

    parse_task_list(); caller uses runner.pending and parser.issues.

  • Refinement: Details.refine() receives the refinement response → new

    ResultParser, extract_refinement(this); task is updated and

    result_parser.issues checked.

  • Execution: Tool.run() receives the executor response → new ResultParser,

    exec_extract(ex); ex.summary and ex.document are set. Details.run_exec() builds

    task.result from exec_runs summaries; on success Details sets exec_done.

    extract_exec(Details) remains for legacy/test use (sets task.result only).

See also:

List, Step, Details, Tool


Namespace: OLLMcoder.Task
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object