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
__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/base_client.py:16
Method
__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/doubao_client.py:45
Method
__init__
(self, model_config: ModelConfig, provider_config: ProviderConfig)
trae_agent/utils/llm_clients/openai_compatible_base.py:68
Method
__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/openai_client.py:30
Method
__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/ollama_client.py:29
Method
__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/openrouter_client.py:68
Method
__init__
Initialize the CLI console. Args: config: Configuration object containing settings mode: Console operation mode (run
trae_agent/utils/cli/cli_console.py:54
Method
__init__
Initialize the simple CLI console. Args: config: Configuration object containing lakeview and other settings mode: Co
trae_agent/utils/cli/simple_console.py:28
Method
__init__
Initialize the rich CLI console.
trae_agent/utils/cli/rich_console.py:266
Method
__init__
Initialize TraeAgent. Args: config: Configuration object containing model parameters and other settings. Requi
trae_agent/agent/trae_agent.py:33
Method
__init__
( self, image: str | None, container_id: str | None, dockerfile_path: str | No
trae_agent/agent/docker_manager.py:18
Method
__init__
( self, agent_type: AgentType | str, config: Config, trajectory_file: str | No
trae_agent/agent/agent.py:15
Method
__init__
(self, message: str)
trae_agent/agent/agent_basics.py:95
Method
__init__
Initialize the agent. Args: agent_config: Configuration object containing model parameters and other settings. docker_
trae_agent/agent/base_agent.py:29
Method
__repr__
(self)
trae_agent/agent/agent_basics.py:58
Method
__repr__
(self)
trae_agent/agent/agent_basics.py:83
Method
__repr__
(self)
trae_agent/agent/agent_basics.py:99
Method
__str__
(self)
trae_agent/tools/base.py:58
Method
__str__
(self)
trae_agent/utils/legacy_config.py:169
Method
__str__
(self)
trae_agent/utils/llm_clients/llm_basics.py:40
Method
_clear_handler
(self, event: Input.Submitted)
trae_agent/utils/cli/rich_console.py:231
Method
_create_anthropic_response
Create a response using Anthropic API. This method will be decorated with retry logic.
trae_agent/utils/llm_clients/anthropic_client.py:36
Method
_create_google_response
Create a response using Google Gemini API. This method will be decorated with retry logic.
trae_agent/utils/llm_clients/google_client.py:36
Method
_create_ollama_response
Create a response using Ollama API. This method will be decorated with retry logic.
trae_agent/utils/llm_clients/ollama_client.py:46
Method
_create_openai_response
Create a response using OpenAI API. This method will be decorated with retry logic.
trae_agent/utils/llm_clients/openai_client.py:41
Method
_create_response
Create a response using the provider's API. This method will be decorated with retry logic.
trae_agent/utils/llm_clients/openai_compatible_base.py:79
Method
_exit_handler
(self)
trae_agent/utils/cli/rich_console.py:254
Method
_format_thought
Format a thought for display with visual styling.
trae_agent/tools/sequential_thinking_tool.py:249
Method
_help_handler
(self, event: Input.Submitted)
trae_agent/utils/cli/rich_console.py:215
Method
_status_handler
(self, event: Input.Submitted)
trae_agent/utils/cli/rich_console.py:236
Method
action_quit
Quit the application.
trae_agent/utils/cli/rich_console.py:257
Method
asyncTearDown
(self)
tests/tools/test_bash_tool.py:14
Method
chat
Send chat messages to Anthropic with optional tool support.
trae_agent/utils/llm_clients/anthropic_client.py:54
Method
chat
Send chat messages to the LLM.
trae_agent/utils/llm_clients/base_client.py:32
Method
chat
Send chat messages with optional tool support.
trae_agent/utils/llm_clients/openai_compatible_base.py:110
Method
chat
Send chat messages to OpenAI with optional tool support.
trae_agent/utils/llm_clients/openai_client.py:62
Method
cli_console
Get the CLI console for this agent.
trae_agent/agent/base_agent.py:99
Method
close
Properly close self._process.
trae_agent/tools/bash_tool.py:241
Method
close_tools
Closes any resources held by the underlying original executor. This method fulfills the contract expected by BaseAgent.
trae_agent/tools/docker_tool_executor.py:49
Method
combine_fields
(field: str | None, other_field: str | None, concatenate: bool = True)
evaluation/patch_selection/trae_selector/tools/tools/base.py:15
Method
compose
Compose the UI layout.
trae_agent/utils/cli/rich_console.py:80
Method
create_client
Create Azure OpenAI client.
trae_agent/utils/llm_clients/azure_client.py:18
Method
create_client
Create OpenAI client with Doubao base URL.
trae_agent/utils/llm_clients/doubao_client.py:18
Method
create_client
Create OpenAI client with OpenRouter base URL.
trae_agent/utils/llm_clients/openrouter_client.py:20
Method
description
(self)
trae_agent/tools/base.py:89
Method
execute
(self, arguments: ToolCallArguments)
trae_agent/tools/mcp_tool.py:49
Method
execute
(self, arguments: ToolCallArguments)
trae_agent/tools/task_done_tool.py:32
Method
execute
(self, arguments: ToolCallArguments)
trae_agent/tools/bash_tool.py:213
Method
execute
(self, arguments: ToolCallArguments)
trae_agent/tools/ckg_tool.py:81
Method
execute
Execute the str_replace_editor tool.
trae_agent/tools/edit_tool_cli.py:145
Method
execute
Execute the JSON edit operation.
trae_agent/tools/json_edit_tool.py:93
Method
execute
Execute the sequential thinking tool.
trae_agent/tools/sequential_thinking_tool.py:278
Method
execute
Execute the str_replace_editor tool.
trae_agent/tools/edit_tool.py:101
Method
execute
(self, arguments: ToolCallArguments)
trae_agent/tools/json_edit_tool_cli.py:72
Method
execute
Executes a command using the configured mode (interactive or stateless).
trae_agent/agent/docker_manager.py:128
Method
execute_task
Execute a task using the agent.
trae_agent/agent/base_agent.py:147
Method
get_description
(self)
trae_agent/tools/mcp_tool.py:23
Method
get_description
(self)
trae_agent/tools/task_done_tool.py:24
Method
get_description
(self)
trae_agent/tools/bash_tool.py:181
Method
get_description
(self)
trae_agent/tools/ckg_tool.py:38
Method
get_description
(self)
trae_agent/tools/edit_tool_cli.py:86
Method
get_description
(self)
trae_agent/tools/json_edit_tool.py:32
Method
get_description
(self)
trae_agent/tools/sequential_thinking_tool.py:44
Method
get_description
(self)
trae_agent/tools/edit_tool.py:42
Method
get_description
(self)
trae_agent/tools/json_edit_tool_cli.py:64
Method
get_extra_headers
Get Azure-specific headers (none needed).
trae_agent/utils/llm_clients/azure_client.py:39
Method
get_extra_headers
Get Doubao-specific headers (none needed).
trae_agent/utils/llm_clients/doubao_client.py:32
Method
get_extra_headers
Get OpenRouter-specific headers.
trae_agent/utils/llm_clients/openrouter_client.py:34
Method
get_model_provider
(self)
trae_agent/tools/mcp_tool.py:15
Method
get_model_provider
(self)
trae_agent/tools/task_done_tool.py:16
Method
get_model_provider
(self)
trae_agent/tools/bash_tool.py:173
Method
get_model_provider
(self)
trae_agent/tools/ckg_tool.py:30
Method
get_model_provider
(self)
trae_agent/tools/edit_tool_cli.py:78
Method
get_model_provider
(self)
trae_agent/tools/json_edit_tool.py:24
Method
get_model_provider
(self)
trae_agent/tools/sequential_thinking_tool.py:160
Method
get_model_provider
(self)
trae_agent/tools/edit_tool.py:34
Method
get_model_provider
(self)
trae_agent/tools/json_edit_tool_cli.py:56
Method
get_name
(self)
trae_agent/tools/task_done_tool.py:20
Method
get_name
(self)
trae_agent/tools/json_edit_tool.py:28
Method
get_name
(self)
trae_agent/tools/sequential_thinking_tool.py:40
Method
get_name
(self)
trae_agent/tools/json_edit_tool_cli.py:60
Method
get_parameters
(self)
trae_agent/tools/mcp_tool.py:27
Method
get_parameters
(self)
trae_agent/tools/task_done_tool.py:28
Method
get_parameters
(self)
trae_agent/tools/bash_tool.py:192
Method
get_parameters
(self)
trae_agent/tools/ckg_tool.py:51
Method
get_parameters
Get the parameters for the str_replace_based_edit_tool.
trae_agent/tools/edit_tool_cli.py:100
Method
get_parameters
Get the parameters for the JSON edit tool.
trae_agent/tools/json_edit_tool.py:56
Method
get_parameters
(self)
trae_agent/tools/sequential_thinking_tool.py:101
Method
get_parameters
Get the parameters for the str_replace_based_edit_tool.
trae_agent/tools/edit_tool.py:56
Method
get_parameters
(self)
trae_agent/tools/json_edit_tool_cli.py:68
Method
get_provider_name
Get the provider name for trajectory recording.
trae_agent/utils/llm_clients/azure_client.py:35
Method
get_provider_name
Get the provider name for trajectory recording.
trae_agent/utils/llm_clients/doubao_client.py:28
Method
get_provider_name
Get the provider name for trajectory recording.
trae_agent/utils/llm_clients/openrouter_client.py:30
Method
get_service_name
Get the service name for retry logging.
trae_agent/utils/llm_clients/azure_client.py:31
Method
get_service_name
Get the service name for retry logging.
trae_agent/utils/llm_clients/doubao_client.py:24
Method
get_service_name
Get the service name for retry logging.
trae_agent/utils/llm_clients/openrouter_client.py:26
Method
get_task_input
Get task input from user (for interactive mode).
trae_agent/utils/cli/simple_console.py:190
Method
get_task_input
Get task input from user (for interactive mode).
trae_agent/utils/cli/rich_console.py:340
Method
get_working_dir_input
Get working directory input from user (for interactive mode).
trae_agent/utils/cli/simple_console.py:205
Method
get_working_dir_input
Get working directory input from user (for interactive mode).
trae_agent/utils/cli/rich_console.py:346
← previous
next →
301–400 of 548, ranked by callers