Skip to main content
Reference for core types and data structures used in the mobile-use SDK.

AgentProfile

Represents a profile for the mobile-use agent with LLM configuration.

Constructor

str
required
Name of the profile
LLMConfig
LLM configuration for the agent
str
Path to a file containing LLM configuration (JSONC format)
llm_config and from_file are mutually exclusive - use only one.

Examples


TaskRequest

Represents a mobile automation task request.

Attributes

str
Natural language description of the task goal
str | None
Name of the agent profile to use
str | None
Name of the task for logging
str | None
Description of the expected output format
type[TOutput] | None
Pydantic model class for typed output
int
Maximum number of steps the agent can take
bool
Whether to record execution traces
Path
Directory to save trace data
Path | None
Path to save LLM outputs
Path | None
Path to save agent thoughts

Usage

TaskRequest objects are typically created via TaskRequestBuilder:

AgentConfig

Configuration for the agent.
Created via AgentConfigBuilder:

DevicePlatform

Enum for device platforms.

Usage


ServerConfig

Configuration for agent servers.

Attributes

str
ADB server host
int
ADB server port

Usage


LLMConfig

Configuration for LLM models used by different agent components.

Structure

Components

planner

Creates high-level plans from goals

orchestrator

Coordinates execution steps

cortex

Visual understanding and decision-making

executor

Performs specific actions

hopper

Extracts relevant information from large data batches

outputter

Extracts structured output

LLM

Basic LLM configuration.
str
required
Provider name: openai, google, xai, openrouter
str
required
Model identifier (e.g., gpt-5, gemini-2.5-flash)

LLMWithFallback

LLM configuration with a fallback model.
If the primary model fails, the fallback is used automatically.

TaskRequestCommon

Common configuration shared across tasks.
Created via TaskDefaults builder:

Next Steps

Agent SDK

Core Agent class reference

Exceptions

Error handling reference