MCPcopy Create free account

hub / github.com/bytedance/trae-agent / functions

Functions548 in github.com/bytedance/trae-agent

Methodhandle_task_input
Handle task input submission in interactive mode.
trae_agent/utils/cli/rich_console.py:125
Methodinitial_messages
Get the initial messages for the agent.
trae_agent/agent/base_agent.py:123
Functioninteractive
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
Methodjson_definition
(self)
trae_agent/tools/base.py:120
Methodllm_client
(self)
trae_agent/agent/base_agent.py:84
Methodllm_indicates_task_completed
Check if the LLM indicates that the task is completed.
trae_agent/agent/trae_agent.py:229
Methodmax_steps
Get the maximum number of steps for the agent.
trae_agent/agent/base_agent.py:133
Methodmodel_config
Get the model config for the agent.
trae_agent/agent/base_agent.py:128
Methodmodel_provider
(self)
trae_agent/tools/base.py:81
Functionmulti_swebench_evaluate_harness_after
(benchmark_harness_path, task_id)
evaluation/utils.py:55
Functionmulti_swebench_evaluate_harness_before
(task_results_dir, dataset_name, max_workers)
evaluation/utils.py:90
Methodname
(self)
trae_agent/tools/base.py:85
Methodnew_task
Create a new task.
trae_agent/agent/base_agent.py:138
Methodon_mount
Called when the app is mounted.
trae_agent/utils/cli/rich_console.py:106
Functionoverride
(f)
trae_agent/tools/edit_tool_cli.py:9
Functionoverride
A no-op decorator to satisfy the @override syntax.
trae_agent/tools/json_edit_tool_cli.py:12
Methodparallel_tool_call
For simplicity, parallel calls are also executed sequentially.
trae_agent/tools/docker_tool_executor.py:70
Methodparameters
(self)
trae_agent/tools/base.py:93
Methodprint
Print a message to the console.
trae_agent/utils/cli/rich_console.py:332
Methodprint_task_details
Print initial task configuration details.
trae_agent/utils/cli/simple_console.py:168
Methodprint_task_details
Print initial task configuration details.
trae_agent/utils/cli/rich_console.py:323
Methodproperties_to_parameter
()
trae_agent/tools/mcp_tool.py:30
Methodreflect_on_result
(self, tool_results: list[ToolResult])
trae_agent/agent/trae_agent.py:177
Methodrender
Render the token display.
trae_agent/utils/cli/rich_console.py:38
Methodresolve_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
Methodresolve_config_values
( self, *, max_steps: int | None = None, )
trae_agent/utils/config.py:174
Functionrun
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
Methodrun_one
(self, instance_id)
evaluation/patch_selection/trae_selector/selector_evaluation.py:372
Methodrun_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
MethodsetUp
(self)
tests/test_cli.py:10
MethodsetUp
Set up the test environment.
tests/tools/test_json_edit_tool.py:15
MethodsetUp
(self)
tests/tools/test_edit_tool.py:13
MethodsetUp
(self)
tests/tools/test_bash_tool.py:11
MethodsetUp
(self)
tests/tools/test_mcp_tool.py:9
MethodsetUp
(self)
tests/utils/test_mcp_client.py:8
MethodsetUp
(self)
tests/agent/test_trae_agent.py:15
Methodset_chat_history
Set the chat history.
trae_agent/utils/llm_clients/anthropic_client.py:32
Methodset_chat_history
Set the chat history.
trae_agent/utils/llm_clients/base_client.py:27
Methodset_chat_history
Set the chat history.
trae_agent/utils/llm_clients/openai_compatible_base.py:75
Methodset_chat_history
Set the chat history.
trae_agent/utils/llm_clients/openai_client.py:37
Methodset_trajectory_recorder
Set the trajectory recorder for the underlying client.
trae_agent/utils/llm_clients/llm_client.py:64
Methodset_trajectory_recorder
Set the trajectory recorder for this client.
trae_agent/utils/llm_clients/base_client.py:22
Functionshow_config
Show current configuration settings.
trae_agent/cli.py:626
Methodstart
Start the console display. Should be implemented by subclasses.
trae_agent/utils/cli/cli_console.py:69
Methodstart
Start the console - wait for completion and then print summary.
trae_agent/utils/cli/simple_console.py:73
Methodstart
Start the rich console application.
trae_agent/utils/cli/rich_console.py:283
Methodstop
Stop the console and cleanup resources.
trae_agent/utils/cli/cli_console.py:114
Methodstop
Stop the console and cleanup resources.
trae_agent/utils/cli/simple_console.py:217
Methodstop
Stop the console and cleanup resources.
trae_agent/utils/cli/rich_console.py:352
Methodsupports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/azure_client.py:43
Methodsupports_tool_calling
Check if the current model supports tool calling.
trae_agent/utils/llm_clients/base_client.py:42
Methodsupports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/doubao_client.py:36
Methodsupports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/openai_compatible_base.py:60
Methodsupports_tool_calling
Check if the model supports tool calling.
trae_agent/utils/llm_clients/openrouter_client.py:48
Functionswebench_evaluate_harness_after
(benchmark_harness_path, task_id)
evaluation/utils.py:32
Methodtask
Get the current task of the agent.
trae_agent/agent/base_agent.py:113
Methodtask_incomplete_message
Return a message indicating that the task is incomplete.
trae_agent/agent/trae_agent.py:247
MethodtearDown
(self)
tests/agent/test_trae_agent.py:46
Methodtest_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
Methodtest_OpenRouterClient_init
(self)
tests/utils/test_openrouter_client_utils.py:32
Methodtest_add_new_config_key
Test adding a new key-value pair to an object.
tests/tools/test_json_edit_tool.py:110
Methodtest_add_new_user
Test adding a new object to a list (by inserting at the end).
tests/tools/test_json_edit_tool.py:89
Methodtest_anthropic_client_base_url_attribute_set
(self, mock_anthropic)
tests/utils/test_config.py:97
Methodtest_anthropic_client_with_custom_base_url
(self, mock_anthropic)
tests/utils/test_config.py:118
Methodtest_call_tool
(self)
tests/utils/test_mcp_client.py:70
Methodtest_cleanup
(self)
tests/utils/test_mcp_client.py:86
Methodtest_command_error_handling
(self)
tests/tools/test_bash_tool.py:28
Methodtest_config_with_base_url_in_config
(self)
tests/utils/test_config.py:14
Methodtest_config_without_base_url
(self)
tests/utils/test_config.py:38
Methodtest_connect_and_discover_invalid_config
(self)
tests/utils/test_mcp_client.py:61
Methodtest_connect_and_discover_stdio
(self, mock_client_session, mock_stdio_client)
tests/utils/test_mcp_client.py:37
Methodtest_connect_to_server
(self, mock_client_session)
tests/utils/test_mcp_client.py:21
Methodtest_create_file
(self)
tests/tools/test_edit_tool.py:37
Methodtest_default_anthropic_base_url
(self)
tests/utils/test_config.py:58
Methodtest_error_file_not_found
Test error handling when the file does not exist.
tests/tools/test_json_edit_tool.py:184
Methodtest_execute_exception
(self)
tests/tools/test_mcp_tool.py:65
Methodtest_execute_failure
(self)
tests/tools/test_mcp_tool.py:53
Methodtest_execute_success
(self)
tests/tools/test_mcp_tool.py:41
Methodtest_get_default_server_status
(self)
tests/utils/test_mcp_client.py:11
Methodtest_get_description
(self)
tests/tools/test_mcp_tool.py:29
Methodtest_get_model_provider
(self)
tests/tools/test_mcp_tool.py:32
Methodtest_get_name
(self)
tests/tools/test_mcp_tool.py:26
Methodtest_get_parameters
(self)
tests/tools/test_mcp_tool.py:35
Methodtest_git_diff_generation
(self, mock_isdir, mock_chdir, mock_subprocess)
tests/agent/test_trae_agent.py:70
Methodtest_google_chat
Test the chat method with a simple user message.
tests/utils/test_google_client.py:112
Methodtest_google_chat_with_tool_call
Test the chat method's ability to handle tool calls.
tests/utils/test_google_client.py:146
Methodtest_google_client_init
Test the initialization of the GoogleClient.
tests/utils/test_google_client.py:29
Methodtest_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
Methodtest_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
Methodtest_google_set_chat_history
Test that the chat history is correctly parsed and stored.
tests/utils/test_google_client.py:84
Methodtest_insert_line
(self)
tests/tools/test_edit_tool.py:51
Methodtest_invalid_command
(self)
tests/tools/test_edit_tool.py:66
Methodtest_lakeview_defaults_to_main_provider
(self)
tests/utils/test_config.py:194
Methodtest_lakeview_disabled_ignores_config
(self)
tests/utils/test_config.py:211
Methodtest_lakeview_null_values_fallback
(self)
tests/utils/test_config.py:202
Methodtest_list_tools
(self)
tests/utils/test_mcp_client.py:78
Methodtest_mcp_servers_config
(self)
tests/utils/test_config.py:219
Methodtest_mcp_servers_empty_config
(self)
tests/utils/test_config.py:228
Methodtest_missing_command_handling
(self)
tests/tools/test_bash_tool.py:61
Methodtest_missing_parameters
(self)
tests/tools/test_edit_tool.py:125
← previousnext →401–500 of 548, ranked by callers