updateAgent

fun <T : Any> updateAgent(agent: Agent<T>, config: T.() -> Unit = {})

Updates the agent with the provided configuration.

Parameters

T

The type of the agent configuration.

agent

The agent to update.

config

The configuration block for the agent.