pub struct AgentConfig {
pub max_consecutive_malformed_tool_calls: usize,
pub system_prompt: String,
pub max_iterations: usize,
pub output_schema: Option<String>,
pub context_file_max_chars: usize,
pub context_files_budget_chars: usize,
pub trace_content: bool,
pub prompt_blocks: Choice,
}Fields§
§max_consecutive_malformed_tool_calls: usizeStop the run after this many consecutive tool calls that could not be used (an unknown tool, or arguments that are not JSON). 0 disables it, which is the default: a model that slips once should get another chance, and only a repeat is a pattern.
system_prompt: String§max_iterations: usizeHow many model <-> tool round trips one turn may take. No cap by default: the same default Hermes’ engine uses, and the honest one, because the number that is right for a one-line answer is not the number that is right for a file-plus-tests-plus-a-retry. A cap is a policy for the box it runs on, so it is set there, not imposed here.
output_schema: Option<String>A JSON Schema every reply must satisfy, as a path (relative to the working directory, like
workspace_root) or an inline JSON document. A default for eclipse run; a schema is a
contract, not a chat setting, so the interactive surfaces ignore it.
context_file_max_chars: usizeTruncate a single context file past this many characters (head and tail kept, with a visible marker). 0 = no per-file cap.
context_files_budget_chars: usizeCeiling across every context file; whole files are dropped past it, broadest first,
and eclipse context show says which. 0 = no cap.
trace_content: boolInclude prompts, arguments and results in tracing spans. Off by default: the transcript is already readable; the spans exist for timing and routing.
prompt_blocks: ChoiceWhich standing prompt blocks ride after system_prompt (#244): auto (the default) takes
every block whose gate matches the model, a list names them, off sends none. The library is
crate::prompt_blocks; config check prints what this model is actually being told.