Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Action-State-Labs/android-action-kernel
/ functions
Functions
28 in github.com/Action-State-Labs/android-action-kernel
⨍
Functions
28
◇
Types & classes
4
↓ 8 callers
Function
run_adb_command
Executes a shell command via ADB.
actions.py:20
↓ 2 callers
Method
_is_anthropic_model
Check if current model is an Anthropic model.
llm_providers.py:150
↓ 2 callers
Method
_is_meta_model
Check if current model is a Meta/Llama model.
llm_providers.py:154
↓ 2 callers
Function
format_action_history
Format action history for LLM context.
llm_providers.py:60
↓ 1 callers
Method
_build_request
Build request body based on model type.
llm_providers.py:158
↓ 1 callers
Function
_execute_back
Navigate back.
actions.py:98
↓ 1 callers
Function
_execute_done
Mark task as complete and exit.
actions.py:110
↓ 1 callers
Function
_execute_enter
Press the Enter key.
actions.py:72
↓ 1 callers
Function
_execute_home
Navigate to home screen.
actions.py:92
↓ 1 callers
Function
_execute_swipe
Execute a swipe action in the specified direction.
actions.py:78
↓ 1 callers
Function
_execute_tap
Execute a tap action at specified coordinates.
actions.py:56
↓ 1 callers
Function
_execute_type
Execute a type action to input text.
actions.py:63
↓ 1 callers
Function
_execute_wait
Wait for UI to load.
actions.py:104
↓ 1 callers
Method
_extract_response
Extract text response based on model type.
llm_providers.py:184
↓ 1 callers
Method
_parse_json_response
Parse JSON from LLM response, handling extra text.
llm_providers.py:193
↓ 1 callers
Function
execute_action
Executes the action decided by the LLM.
actions.py:32
↓ 1 callers
Method
get_decision
Get the next action decision from the LLM.
llm_providers.py:84
↓ 1 callers
Function
get_llm_provider
Factory function to get the appropriate LLM provider.
llm_providers.py:207
↓ 1 callers
Method
get_model
Get the model name based on the selected provider.
config.py:51
↓ 1 callers
Function
get_screen_state
Dumps the current UI XML and returns the sanitized JSON string.
kernel.py:22
↓ 1 callers
Function
main
Entry point for the Android Action Kernel.
kernel.py:84
↓ 1 callers
Function
run_agent
Main agent loop: Perceive -> Reason -> Act Args: goal: The task to accomplish max_steps: Maximum steps before stopping (defa
kernel.py:41
↓ 1 callers
Method
validate
Validate that required configuration is present.
config.py:61
Method
__init__
(self)
llm_providers.py:92
Method
__init__
(self)
llm_providers.py:124
Method
get_decision
(self, goal: str, screen_context: str, action_history: List[Dict])
llm_providers.py:105
Method
get_decision
(self, goal: str, screen_context: str, action_history: List[Dict])
llm_providers.py:132
Function
get_interactive_elements
Parses Android Accessibility XML and returns a lean list of interactive elements. Calculates center coordinates (x, y) for every clickable el
sanitizer.py:4