com.google.mlkit.genai.agent

Interfaces

AgentEvent

Events emitted by the Agent during an execution session.

AgentSession

A scoped session handle representing an ongoing multi-turn conversational thread with an AgentRunner.

Classes

Agent

Represents an AI Agent guided by system instructions and equipped with executable tools.

Agent.Builder

Builder for constructing Agent instances.

AgentEvent.FunctionCall

Emitted immediately before a function is invoked by the runner.

AgentEvent.FunctionResponse

Emitted immediately after a function invocation completes.

AgentEvent.TextMessage

The text message generated by the agent for the user.

AgentEventKt
AgentRunner

Manages agent execution sessions.

AgentTool

Base class for tools that the Agent can invoke automatically.

AppFunctionAgentTools

Utility for discovering in-app Android AppFunctions and exposing them as AgentTools.