Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/trae-agent
/ functions
Functions
548 in github.com/bytedance/trae-agent
⨍
Functions
548
◇
Types & classes
111
↳
Endpoints
26
Method
handle_task_input
Handle task input submission in interactive mode.
trae_agent/utils/cli/rich_console.py:125
Method
initial_messages
Get the initial messages for the agent.
trae_agent/agent/base_agent.py:123
Function
interactive
This function starts an interactive session with Trae Agent. Args: console_type: Type of console to use for the interactive session
trae_agent/cli.py:440
Method
json_definition
(self)
trae_agent/tools/base.py:120
Method
llm_client
(self)
trae_agent/agent/base_agent.py:84
Method
llm_indicates_task_completed
Check if the LLM indicates that the task is completed.
trae_agent/agent/trae_agent.py:229
Method
max_steps
Get the maximum number of steps for the agent.
trae_agent/agent/base_agent.py:133
Method
model_config
Get the model config for the agent.
trae_agent/agent/base_agent.py:128
Method
model_provider
(self)
trae_agent/tools/base.py:81
Function
multi_swebench_evaluate_harness_after
(benchmark_harness_path, task_id)
evaluation/utils.py:55
Function
multi_swebench_evaluate_harness_before
(task_results_dir, dataset_name, max_workers)
evaluation/utils.py:90
Method
name
(self)
trae_agent/tools/base.py:85
Method
new_task
Create a new task.
trae_agent/agent/base_agent.py:138
Method
on_mount
Called when the app is mounted.
trae_agent/utils/cli/rich_console.py:106
Function
override
(f)
trae_agent/tools/edit_tool_cli.py:9
Function
override
A no-op decorator to satisfy the @override syntax.
trae_agent/tools/json_edit_tool_cli.py:12
Method
parallel_tool_call
For simplicity, parallel calls are also executed sequentially.
trae_agent/tools/docker_tool_executor.py:70
Method
parameters
(self)
trae_agent/tools/base.py:93
Method
print
Print a message to the console.
trae_agent/utils/cli/rich_console.py:332
Method
print_task_details
Print initial task configuration details.
trae_agent/utils/cli/simple_console.py:168
Method
print_task_details
Print initial task configuration details.
trae_agent/utils/cli/rich_console.py:323
Method
properties_to_parameter
()
trae_agent/tools/mcp_tool.py:30
Method
reflect_on_result
(self, tool_results: list[ToolResult])
trae_agent/agent/trae_agent.py:177
Method
render
Render the token display.
trae_agent/utils/cli/rich_console.py:38
Method
resolve_config_values
When some config values are provided through CLI or environment variables, they will override the values in the config file.
trae_agent/utils/config.py:66
Method
resolve_config_values
( self, *, max_steps: int | None = None, )
trae_agent/utils/config.py:174
Function
run
Run is the main function of trae. it runs a task using Trae Agent. Args: tasks: the task that you want your agent to solve. This is r
trae_agent/cli.py:192
Method
run_one
(self, instance_id)
evaluation/patch_selection/trae_selector/selector_evaluation.py:372
Method
run_one_instance
Run patch generation for a single instance. All outputs are written directly to the mounted results directory. Args:
evaluation/run_evaluation.py:272
Method
setUp
(self)
tests/test_cli.py:10
Method
setUp
Set up the test environment.
tests/tools/test_json_edit_tool.py:15
Method
setUp
(self)
tests/tools/test_edit_tool.py:13
Method
setUp
(self)
tests/tools/test_bash_tool.py:11
Method
setUp
(self)
tests/tools/test_mcp_tool.py:9
Method
setUp
(self)
tests/utils/test_mcp_client.py:8
Method
setUp
(self)
tests/agent/test_trae_agent.py:15
Method
set_chat_history
Set the chat history.
trae_agent/utils/llm_clients/anthropic_client.py:32
Method
set_chat_history
Set the chat history.
trae_agent/utils/llm_clients/base_client.py:27
Method
set_chat_history
Set the chat history.
trae_agent/utils/llm_clients/openai_compatible_base.py:75
Method
set_chat_history
Set the chat history.
trae_agent/utils/llm_clients/openai_client.py:37
Method
set_trajectory_recorder
Set the trajectory recorder for the underlying client.
trae_agent/utils/llm_clients/llm_client.py:64
Method
set_trajectory_recorder
Set the trajectory recorder for this client.
trae_agent/utils/llm_clients/base_client.py:22
Function
show_config
Show current configuration settings.
trae_agent/cli.py:626
Method
start
Start the console display. Should be implemented by subclasses.
trae_agent/utils/cli/cli_console.py:69
Method
start
Start the console - wait for completion and then print summary.
trae_agent/utils/cli/simple_console.py:73
Method
start
Start the rich console application.
trae_agent/utils/cli/rich_console.py:283
Method
stop
Stop the console and cleanup resources.
trae_agent/utils/cli/cli_console.py:114
Method
stop
Stop the console and cleanup resources.
trae_agent/utils/cli/simple_console.py:217
Method
stop
Stop the console and cleanup resources.
trae_agent/utils/cli/rich_console.py:352
Method
supports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/azure_client.py:43
Method
supports_tool_calling
Check if the current model supports tool calling.
trae_agent/utils/llm_clients/base_client.py:42
Method
supports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/doubao_client.py:36
Method
supports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/openai_compatible_base.py:60
Method
supports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/openrouter_client.py:48
Function
swebench_evaluate_harness_after
(benchmark_harness_path, task_id)
evaluation/utils.py:32
Method
task
Get the current task of the agent.
trae_agent/agent/base_agent.py:113
Method
task_incomplete_message
Return a message indicating that the task is incomplete.
trae_agent/agent/trae_agent.py:247
Method
tearDown
(self)
tests/agent/test_trae_agent.py:46
Method
test_OllamaClient_init
Test ollama client provides a test case for initialize the ollama client It should not be used to check any configiguration based on
tests/utils/test_ollama_client_utils.py:27
Method
test_OpenRouterClient_init
(self)
tests/utils/test_openrouter_client_utils.py:32
Method
test_add_new_config_key
Test adding a new key-value pair to an object.
tests/tools/test_json_edit_tool.py:110
Method
test_add_new_user
Test adding a new object to a list (by inserting at the end).
tests/tools/test_json_edit_tool.py:89
Method
test_anthropic_client_base_url_attribute_set
(self, mock_anthropic)
tests/utils/test_config.py:97
Method
test_anthropic_client_with_custom_base_url
(self, mock_anthropic)
tests/utils/test_config.py:118
Method
test_call_tool
(self)
tests/utils/test_mcp_client.py:70
Method
test_cleanup
(self)
tests/utils/test_mcp_client.py:86
Method
test_command_error_handling
(self)
tests/tools/test_bash_tool.py:28
Method
test_config_with_base_url_in_config
(self)
tests/utils/test_config.py:14
Method
test_config_without_base_url
(self)
tests/utils/test_config.py:38
Method
test_connect_and_discover_invalid_config
(self)
tests/utils/test_mcp_client.py:61
Method
test_connect_and_discover_stdio
(self, mock_client_session, mock_stdio_client)
tests/utils/test_mcp_client.py:37
Method
test_connect_to_server
(self, mock_client_session)
tests/utils/test_mcp_client.py:21
Method
test_create_file
(self)
tests/tools/test_edit_tool.py:37
Method
test_default_anthropic_base_url
(self)
tests/utils/test_config.py:58
Method
test_error_file_not_found
Test error handling when the file does not exist.
tests/tools/test_json_edit_tool.py:184
Method
test_execute_exception
(self)
tests/tools/test_mcp_tool.py:65
Method
test_execute_failure
(self)
tests/tools/test_mcp_tool.py:53
Method
test_execute_success
(self)
tests/tools/test_mcp_tool.py:41
Method
test_get_default_server_status
(self)
tests/utils/test_mcp_client.py:11
Method
test_get_description
(self)
tests/tools/test_mcp_tool.py:29
Method
test_get_model_provider
(self)
tests/tools/test_mcp_tool.py:32
Method
test_get_name
(self)
tests/tools/test_mcp_tool.py:26
Method
test_get_parameters
(self)
tests/tools/test_mcp_tool.py:35
Method
test_git_diff_generation
(self, mock_isdir, mock_chdir, mock_subprocess)
tests/agent/test_trae_agent.py:70
Method
test_google_chat
Test the chat method with a simple user message.
tests/utils/test_google_client.py:112
Method
test_google_chat_with_tool_call
Test the chat method's ability to handle tool calls.
tests/utils/test_google_client.py:146
Method
test_google_client_init
Test the initialization of the GoogleClient.
tests/utils/test_google_client.py:29
Method
test_google_client_init_no_key_raises_error
Test that a ValueError is raised if no API key is provided.
tests/utils/test_google_client.py:66
Method
test_google_client_init_with_env_key
Test that the google client initializes using the GOOGLE_API_KEY environment variable.
tests/utils/test_google_client.py:47
Method
test_google_set_chat_history
Test that the chat history is correctly parsed and stored.
tests/utils/test_google_client.py:84
Method
test_insert_line
(self)
tests/tools/test_edit_tool.py:51
Method
test_invalid_command
(self)
tests/tools/test_edit_tool.py:66
Method
test_lakeview_defaults_to_main_provider
(self)
tests/utils/test_config.py:194
Method
test_lakeview_disabled_ignores_config
(self)
tests/utils/test_config.py:211
Method
test_lakeview_null_values_fallback
(self)
tests/utils/test_config.py:202
Method
test_list_tools
(self)
tests/utils/test_mcp_client.py:78
Method
test_mcp_servers_config
(self)
tests/utils/test_config.py:219
Method
test_mcp_servers_empty_config
(self)
tests/utils/test_config.py:228
Method
test_missing_command_handling
(self)
tests/tools/test_bash_tool.py:61
Method
test_missing_parameters
(self)
tests/tools/test_edit_tool.py:125
← previous
next →
401–500 of 548, ranked by callers