LlmAgentRunner class

Default agent runner backed by an LLMProvider.

Wraps the same prompt assembly + <file_content> parsing previously baked into WorkerAgent (lib/agents/worker_agent.dart) and constrains all file writes to the per-issue workspace.

Implemented types

Constructors

LlmAgentRunner({required LLMProvider provider, required LlmRunnerWorkflowConfig llmConfig, required Logger logger, CodebaseContextService? contextService, String sessionIdFactory()?})
Creates an LLM agent runner.

Properties

contextService CodebaseContextService?
Optional codebase context service used to assemble the prompt context.
final
hashCode int
The hash code for this object.
no setterinherited
llmConfig LlmRunnerWorkflowConfig
Per-attempt configuration.
final
logger → Logger
Logger for diagnostic messages.
final
name String
Stable name (llm, codex, ...).
no setteroverride
provider LLMProvider
Provider used for code generation. Pre-resolved by the caller so the runner does not need to know about config files.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionIdFactory String Function()
Composes a session id from a generator. Defaults to a UTC timestamp.
final

Methods

buildPrompt({required AgentRunRequest request, required int turn, String? context}) String
Builds the prompt for request and turn.
close() Future<void>
Releases adapter-managed resources.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(AgentRunRequest request) Stream<RunnerEvent>
Runs one attempt and returns a stream of events.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parseFileContents(String response) Map<String, String>
Parses <file_content path="...">...</file_content> blocks from response.