MCPcopy Create free account

hub / github.com/browser-use/agent-sdk / functions

Functions249 in github.com/browser-use/agent-sdk

Methodlogger
Get logger for this chat instance
bu_agent_sdk/llm/google/chat.py:109
Methodmessages
Get the current message history (read-only copy).
bu_agent_sdk/agent/service.py:182
Methodmodel_name
Legacy alias for model. Use `name` instead.
bu_agent_sdk/llm/base.py:76
Methodname
The model name/identifier.
bu_agent_sdk/llm/base.py:71
Methodname
(self)
bu_agent_sdk/llm/anthropic/chat.py:130
Methodname
(self)
bu_agent_sdk/llm/google/chat.py:145
Methodname
(self)
bu_agent_sdk/llm/openai/chat.py:148
Functionobserve
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
Functionobserve_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
Methodoptimize_schema
Apply all optimization techniques including flattening all $ref/$defs
bu_agent_sdk/llm/schema.py:44
Methodprompt_cost
(self)
bu_agent_sdk/tokens/views.py:36
Methodprovider
The provider name (e.g., 'openai', 'anthropic', 'google').
bu_agent_sdk/llm/base.py:66
Methodprovider
(self)
bu_agent_sdk/llm/anthropic/chat.py:64
Methodprovider
(self)
bu_agent_sdk/llm/google/chat.py:105
Methodprovider
(self)
bu_agent_sdk/llm/openai/chat.py:109
Methodquery
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
Functionread
Read a file and return its contents with line numbers.
bu_agent_sdk/examples/claude_code.py:115
Methodrefresh_pricing_data
Force refresh of pricing data from GitHub
bu_agent_sdk/tokens/service.py:390
Methodremove_forbidden_fields
Recursively remove minItems/min_items and default values
bu_agent_sdk/llm/schema.py:197
Methodreset
Reset the service state. Clears tracked token usage and cached thresholds.
bu_agent_sdk/agent/compaction/service.py:305
Methodresolve_refs
(obj: Any)
bu_agent_sdk/llm/google/chat.py:583
Methodsample_tools
(self)
bu_agent_sdk/llm/google/tests/test_agent_mode.py:314
Functionsync_wrapper
(*args, **kwargs)
bu_agent_sdk/observability.py:96
Methodtest_assistant_message_with_thought_signature
Test that thought_signature is preserved in serialization.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:96
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_multi_turn_conversation_with_tools
Test multiple turns of conversation with tool usage.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:392
Methodtest_multiple_tool_calls_single_message
Test assistant message with multiple tool calls.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:188
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_tool_error_response
Test that tool error responses are serialized correctly.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:279
Methodtest_tool_message_serialization
Test that tool messages (function responses) are serialized correctly.
bu_agent_sdk/llm/google/tests/test_agent_mode.py:119
Methodtext
Automatically parse the text inside content, whether it's a string or a list of content parts.
bu_agent_sdk/llm/messages.py:228
Methodtext
Automatically parse the text inside content, whether it's a string or a list of content parts.
bu_agent_sdk/llm/messages.py:256
Methodtext
Automatically parse the text inside content, whether it's a string or a list of content parts.
bu_agent_sdk/llm/messages.py:301
Methodtext
Extract text content from the message.
bu_agent_sdk/llm/messages.py:390
Methodtext
Extract text content from the message.
bu_agent_sdk/llm/messages.py:424
Methodtext
Get the text content, or empty string if None.
bu_agent_sdk/llm/views.py:78
Methodthinking
Extract thinking content from the message, if any.
bu_agent_sdk/llm/messages.py:320
Functiontodo_read
Get the current todo list.
bu_agent_sdk/examples/claude_code.py:252
Functiontodo_write
Set the todo list. Each item needs: content, status, activeForm
bu_agent_sdk/examples/claude_code.py:269
Methodtoken_cost
Get the token cost service for direct access to usage tracking.
bu_agent_sdk/agent/service.py:187
Functiontool
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
Methodtool_definitions
Get tool definitions for all registered tools.
bu_agent_sdk/agent/service.py:177
Methodtotal_cost
(self)
bu_agent_sdk/tokens/views.py:44
Methodtotal_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
Functionwrite
Write content to a file, creating directories if needed.
bu_agent_sdk/examples/claude_code.py:138
← previous201–249 of 249, ranked by callers