Runner
Object Hierarchy:
Description:
public class Runner :
Base
Agent that runs a single skill. Builds system message (template + available skills + current skill) and user message (template or pass-
through); injects them and sends.
Content:
Properties:
- public List completed { get; }
Tasks that have gone through execution (unchanged reference data).
- public List pending { get; set; }
Tasks to be run (initial plan or new/revised from iteration). Only
this list is ever run.
- public Definition skill { get; }
- public Factory sr_factory { get; }
- public Document? user_request { get; set; }
Used by task list flow (send_async(string)); set from template
user_to_document().
- public bool writer_approval { get; set; }
True once user has approved running writer (modify) tasks this run.
Creation methods:
Methods:
- public string env ()
Used only in send_async when filling task_creation_initial (before
user_request exists).
- public PromptTemplate iteration_prompt (string previous_proposal_issues, List existing_proposed, string previous_proposed_md) throws Error
Build the task list iteration prompt (task_list_iteration.md). Uses
completed and existing_proposed (outstanding) and optional previous_proposed_md when retrying.
- public string reference_content (Format link)
Resolve non-file reference content for task refs, document anchor, or
http (deferred). Do not add validation here; validation is done in Details.validate_references(). Call only for links that validation
has accepted; never return "".
- public async void run_task_list_iteration () throws Error
Task list iteration: send current list to LLM, parse response into
this.pending. On parse/validation failure restores this.pending = existing_proposed; uses raw LLM response as previous_pry.
- public override async void send_async (Message in_message, Cancellable? cancellable = null) throws Error
Entry point. Sends user request only; when finished calls
handle_task_list. Current file and open files come from this.project_manager.
- public PromptTemplate task_creation_prompt (string user_prompt, string previous_proposal, string previous_proposal_issues, Manager skill_catalog, ProjectManager project_manager) throws Error
Inherited Members:
All known members inherited from class OLLMchat.Agent.Base
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface OLLMchat.Agent.Interface