Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/browser-use/agent-sdk
/ functions
Functions
249 in github.com/browser-use/agent-sdk
⨍
Functions
249
◇
Types & classes
64
↳
Endpoints
2
Method
logger
Get logger for this chat instance
bu_agent_sdk/llm/google/chat.py:109
Method
messages
Get the current message history (read-only copy).
bu_agent_sdk/agent/service.py:182
Method
model_name
Legacy alias for model. Use `name` instead.
bu_agent_sdk/llm/base.py:76
Method
name
The model name/identifier.
bu_agent_sdk/llm/base.py:71
Method
name
(self)
bu_agent_sdk/llm/anthropic/chat.py:130
Method
name
(self)
bu_agent_sdk/llm/google/chat.py:145
Method
name
(self)
bu_agent_sdk/llm/openai/chat.py:148
Function
observe
Observability decorator that traces function execution when lmnr is available. This decorator will use lmnr's observe decorator if lmnr is i
bu_agent_sdk/observability.py:151
Function
observe_debug
Debug-only observability decorator that only traces when in debug mode. This decorator will use lmnr's observe decorator if both lmnr is ins
bu_agent_sdk/observability.py:205
Method
optimize_schema
Apply all optimization techniques including flattening all $ref/$defs
bu_agent_sdk/llm/schema.py:44
Method
prompt_cost
(self)
bu_agent_sdk/tokens/views.py:36
Method
provider
The provider name (e.g., 'openai', 'anthropic', 'google').
bu_agent_sdk/llm/base.py:66
Method
provider
(self)
bu_agent_sdk/llm/anthropic/chat.py:64
Method
provider
(self)
bu_agent_sdk/llm/google/chat.py:105
Method
provider
(self)
bu_agent_sdk/llm/openai/chat.py:109
Method
query
Send a message to the agent and get a response. Can be called multiple times for follow-up questions - message history is pr
bu_agent_sdk/agent/service.py:612
Function
read
Read a file and return its contents with line numbers.
bu_agent_sdk/examples/claude_code.py:115
Method
refresh_pricing_data
Force refresh of pricing data from GitHub
bu_agent_sdk/tokens/service.py:390
Method
remove_forbidden_fields
Recursively remove minItems/min_items and default values
bu_agent_sdk/llm/schema.py:197
Method
reset
Reset the service state. Clears tracked token usage and cached thresholds.
bu_agent_sdk/agent/compaction/service.py:305
Method
resolve_refs
(obj: Any)
bu_agent_sdk/llm/google/chat.py:583
Method
sample_tools
(self)
bu_agent_sdk/llm/google/tests/test_agent_mode.py:314
Function
sync_wrapper
(*args, **kwargs)
bu_agent_sdk/observability.py:96
Method
test_assistant_message_with_thought_signature
Test that thought_signature is preserved in serialization.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:96
Method
test_assistant_message_with_tool_calls
Test that assistant messages with tool_calls are serialized correctly.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:61
Method
test_empty_assistant_content_with_tool_calls
Test that empty assistant content doesn't create empty text parts.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:234
Method
test_full_agent_turn
Test a full agent turn: user -> assistant (with tool) -> tool result.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:140
Method
test_multi_turn_conversation_with_tools
Test multiple turns of conversation with tool usage.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:392
Method
test_multiple_tool_calls_single_message
Test assistant message with multiple tool calls.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:188
Method
test_none_assistant_content_with_tool_calls
Test that None assistant content doesn't cause issues.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:257
Method
test_single_tool_call_round_trip
Test a complete tool call round trip with Gemini.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:343
Method
test_tool_call_without_content
Test that tool calls work even when assistant has no text content.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:456
Method
test_tool_error_response
Test that tool error responses are serialized correctly.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:279
Method
test_tool_message_serialization
Test that tool messages (function responses) are serialized correctly.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:119
Method
text
Automatically parse the text inside content, whether it's a string or a list of content parts.
bu_agent_sdk/llm/messages.py:228
Method
text
Automatically parse the text inside content, whether it's a string or a list of content parts.
bu_agent_sdk/llm/messages.py:256
Method
text
Automatically parse the text inside content, whether it's a string or a list of content parts.
bu_agent_sdk/llm/messages.py:301
Method
text
Extract text content from the message.
bu_agent_sdk/llm/messages.py:390
Method
text
Extract text content from the message.
bu_agent_sdk/llm/messages.py:424
Method
text
Get the text content, or empty string if None.
bu_agent_sdk/llm/views.py:78
Method
thinking
Extract thinking content from the message, if any.
bu_agent_sdk/llm/messages.py:320
Function
todo_read
Get the current todo list.
bu_agent_sdk/examples/claude_code.py:252
Function
todo_write
Set the todo list. Each item needs: content, status, activeForm
bu_agent_sdk/examples/claude_code.py:269
Method
token_cost
Get the token cost service for direct access to usage tracking.
bu_agent_sdk/agent/service.py:187
Function
tool
Decorator to create a tool from an async function. Args: description: Description of what the tool does. This is sent to the LLM.
bu_agent_sdk/tools/decorator.py:364
Method
tool_definitions
Get tool definitions for all registered tools.
bu_agent_sdk/agent/service.py:177
Method
total_cost
(self)
bu_agent_sdk/tokens/views.py:44
Method
total_tokens
Calculate total tokens for compaction threshold check. This matches the Anthropic SDK's calculation: input_tokens + cache_creation_in
bu_agent_sdk/agent/compaction/models.py:103
Function
write
Write content to a file, creating directories if needed.
bu_agent_sdk/examples/claude_code.py:138
← previous
201–249 of 249, ranked by callers