Skip to main content

AgentConfig

openmolt


openmolt / AgentConfig

Interface: AgentConfig

Defined in: types/index.ts:244

Full configuration object for creating an agent via om.createAgent().

Properties

config?

optional config: Partial<OpenMoltConfig>

Defined in: types/index.ts:252

Override top-level OpenMolt configuration for this agent.


instructions?

optional instructions: string

Defined in: types/index.ts:254

System instructions that guide the agent's behaviour (inline).


instructionsPath?

optional instructionsPath: string

Defined in: types/index.ts:256

Path to a Markdown file containing the agent's instructions.


integrations?

optional integrations: AgentIntegrationConfig[]

Defined in: types/index.ts:258

Integrations the agent is allowed to use.


memory?

optional memory: MemoryConfig

Defined in: types/index.ts:260

Memory configuration.


model

model: string

Defined in: types/index.ts:248

Model identifier in the format provider:model-name (e.g. openai:gpt-4o).


modelConfig?

optional modelConfig: ModelConfig

Defined in: types/index.ts:250

Per-call model configuration (temperature, thinking, etc.).


name

name: string

Defined in: types/index.ts:246

Display name of the agent.


onHumanInputRequest?

optional onHumanInputRequest: false | (prompt) => Promise<string>

Defined in: types/index.ts:265

Called when the agent issues a requestHumanInput command. Return the user's reply as a string. Set to false to disable human input.


outputSchema?

optional outputSchema: ZodTypeAny

Defined in: types/index.ts:267

Zod schema the agent's finish output must conform to.