AgentOptions
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
harnessRequiredCliHarness | HarnessCLI preset such as createClaudeHarness(), or createHarness() for the built-in loop; any other value throws code configuration.modelVariant-dependentModelSpec | undefined | ModelSpecModel name or AgentModel object, checked against the harness when the agent is composed. Omit it to keep a CLI’s native default; the built-in harness requires it.