Table of Contents

Property Default

Namespace
LMKit.Agents
Assembly
LM-Kit.NET.dll

Default

Gets a fresh default execution options instance.

public static AgentExecutionOptions Default { get; }

Property Value

AgentExecutionOptions

Examples

Using default options:

using LMKit.Model;
using LMKit.Agents;

using var model = LM.LoadFromModelID("qwen3:8b"); var agent = new Agent(model);

// Explicit use of defaults (same as passing null) var result = agent.Run("Hello!", AgentExecutionOptions.Default);

Remarks

Returns a new instance on every read. The previous shared-singleton implementation was a footgun: a caller could mutate AgentExecutionOptions.Default.MaxIterations and silently change defaults for every subsequent execution everywhere in the process. Each access now produces an isolated instance the caller is free to mutate.

Share