chatClient property
ChatClient
get
chatClient
The chat client this agent runs on. Resolving a request through it activates the agent — the orchestrator makes its KV state resident first. Created lazily; requires a loaded model.
This is the seam for an agent framework: build whatever agent abstraction you use on top of this client, carrying profile's name, description, instructions, and tools.
Implementation
ChatClient get chatClient => _chatClient ??= _chatClientFactory();