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.


fun inMemory(app: App, port: Int = DEFAULT_PORT): AdkServerConfig

Config for serving a single app, such as one rooted on a workflow, with session and artifact state held in memory, which is lost when the process exits.