AgentProfile
Represents a profile for the mobile-use agent with LLM configuration.Constructor
Name of the profile
LLM configuration for the agent
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
Natural language description of the task goal
Name of the agent profile to use
Name of the task for logging
Description of the expected output format
Pydantic model class for typed output
Maximum number of steps the agent can take
Whether to record execution traces
Directory to save trace data
Path to save LLM outputs
Path to save agent thoughts
Usage
TaskRequest objects are typically created viaTaskRequestBuilder:
PlatformTaskRequest
Task request for execution via the Minitap Platform.With
PlatformTaskRequest, you only reference a task by name. The SDK automatically fetches the task configuration (goal, max_steps, output format) and LLM profile from the platform, then executes the task and streams observability data back.Constructor
Attributes
Name of the task configured on the Minitap Platform.Must exactly match a task name from platform.minitap.ai/tasks.
Name of the LLM profile to use for this task.If not specified, uses the Minitap-managed default profile.
API key for authentication with the Minitap Platform.If not provided, uses the
MINITAP_API_KEY environment variable.Whether to record trace files locally (in addition to platform tracing).
Directory to save local trace files if
record_trace is enabled.Path to save the final LLM output locally.
Path to save agent thoughts/reasoning locally.
Maximum number of steps (overridden by platform configuration).
Usage
AgentConfig
Configuration for the agent.AgentConfigBuilder:
DevicePlatform
Enum for device platforms.Usage
ServerConfig
Configuration for agent servers.Attributes
Hardware Bridge server URL
Screen API server URL
ADB server host
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.Provider name:
openai, google, xai, openrouterModel identifier (e.g.,
gpt-5, gemini-2.5-flash)LLMWithFallback
LLM configuration with a fallback model.TaskRequestCommon
Common configuration shared across tasks.TaskDefaults builder: