agentConfig

Configures default configuration for all AI agents with the specified settings.

This method allows the customization of an AI agent by providing a suspendable configuration block that modifies the agent's prompt, model, tool registry, and other parameters. The resulting agent setup is created based on the defined configuration.

Parameters

configure

A suspendable lambda function that defines the configuration of the agent. The configuration block operates on an instance of AgentConfig, where properties such as prompt, model, maxAgentIterations, and tools can be customized.