inMemory

fun inMemory(agent: BaseAgent, port: Int = DEFAULT_PORT): AdkServerConfig

Config for serving a single agent, with session and artifact state held in memory.

That state is lost when the process exits, so this suits a local run or a test rather than a deployment. Serve several agents, or persist state, by building AdkServerConfig directly.