Agent

@Composable
fun Agent(name: String, modifier: Modifier = Modifier, model: String? = null, instructions: String? = null, tools: List<AgentToolSpec> = emptyList(), outputSchema: String? = null, description: String? = null, toolsTitle: String? = null)(source)

An agent's definition (AI Elements <Agent>): name and model, its instructions, the tools it may call (each expands to its schema) and the shape of its output. Also renders a remote agent's card (e.g. A2A): pass its description and its skills as tools with toolsTitle.

Parameters

description

one-line summary under the name (no section label).

toolsTitle

overrides the "Tools (n)" heading, e.g. "Skills (n)".