MCPcopy Create free account

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

Functions548 in github.com/bytedance/trae-agent

↓ 1 callersMethodget_trajectory_path
Get the path where trajectory is being saved.
trae_agent/utils/trajectory_recorder.py:263
↓ 1 callersMethodget_working_dir_input
Get working directory input from user (for interactive mode). Returns: Working directory path
trae_agent/utils/cli/cli_console.py:105
↓ 1 callersMethodinitialise_mcp
Async factory to create and initialize TraeAgent.
trae_agent/agent/trae_agent.py:65
↓ 1 callersFunctionis_git_repository
Check if the folder is a git repository.
trae_agent/tools/ckg/ckg_database.py:36
↓ 1 callersMethodllm_indicates_task_completed
Check if the LLM indicates that the task is completed. Override for custom logic.
trae_agent/agent/base_agent.py:259
↓ 1 callersMethodlog_agent_step
Log an agent step to the execution log.
trae_agent/utils/cli/rich_console.py:203
↓ 1 callersFunctionmain
Main entry point for benchmark evaluation script. Parses command-line arguments and runs patch generation and/or evaluation.
evaluation/run_evaluation.py:379
↓ 1 callersFunctionmain
()
evaluation/patch_selection/analysis.py:10
↓ 1 callersFunctionmain
()
evaluation/patch_selection/selector.py:14
↓ 1 callersFunctionmain
Main entry point for the CLI.
trae_agent/cli.py:725
↓ 1 callersFunctionmain
A powerful CLI wrapper for the TextEditorTool that supports sub-commands.
trae_agent/tools/edit_tool_cli.py:407
↓ 1 callersFunctionmaybe_truncate
Truncate the output if it's too long.
trae_agent/tools/edit_tool_cli.py:42
↓ 1 callersMethodparallel_tool_call
Execute tool calls in parallel
trae_agent/tools/base.py:238
↓ 1 callersMethodparse_tool_call
Parse a ToolCall into a Gemini FunctionCall Part for history.
trae_agent/utils/llm_clients/google_client.py:199
↓ 1 callersMethodparse_tool_call
Parse the tool call from the LLM response.
trae_agent/utils/llm_clients/anthropic_client.py:190
↓ 1 callersMethodparse_tool_call
Parse the tool call from the LLM response.
trae_agent/utils/llm_clients/openai_client.py:187
↓ 1 callersMethodparse_tool_call
Parse the tool call from the LLM response.
trae_agent/utils/llm_clients/ollama_client.py:169
↓ 1 callersMethodparse_tool_call_result
Parse the tool call result from the LLM response.
trae_agent/utils/llm_clients/anthropic_client.py:199
↓ 1 callersMethodparse_tool_call_result
Parse the tool call result from the LLM response to FunctionCallOutput format.
trae_agent/utils/llm_clients/openai_client.py:196
↓ 1 callersMethodparse_tool_call_result
Parse the tool call result from the LLM response.
trae_agent/utils/llm_clients/ollama_client.py:178
↓ 1 callersFunctionparse_tool_response
(answer: LLMResponse, finish_reason: str, sandbox_session)
evaluation/patch_selection/trae_selector/selector_agent.py:61
↓ 1 callersMethodprepare_experiment_container
Prepare experiment Docker container for a given instance. The container mounts the results directory for this instance, so al
evaluation/run_evaluation.py:213
↓ 1 callersMethodprepare_trae_agent
Build Trae Agent and UV inside a base Ubuntu container. Save built artifacts to workspace for later use in experiment containers.
evaluation/run_evaluation.py:140
↓ 1 callersMethodprint_task_details
Print initial task configuration details.
trae_agent/utils/cli/cli_console.py:86
↓ 1 callersMethodpull_images
Pull missing Docker images required for all instances.
evaluation/run_evaluation.py:125
↓ 1 callersMethodquery_class
Search for a class in the database. Args: identifier: the identifier of the class to search for Returns:
trae_agent/tools/ckg/ckg_database.py:695
↓ 1 callersMethodrecord_agent_step
Record an agent execution step. Args: step_number: Step number in the execution state: Current state of the agent
trae_agent/utils/trajectory_recorder.py:130
↓ 1 callersMethodreflect_on_result
Reflect on tool execution result. Override for custom reflection logic.
trae_agent/agent/base_agent.py:246
↓ 1 callersFunctionrun
( cmd: str, timeout: float | None = 120.0, truncate_after: int | None = MAX_RESPONSE_LEN, )
evaluation/patch_selection/trae_selector/tools/tools/run.py:16
↓ 1 callersFunctionrun
Run a shell command asynchronously with a timeout.
trae_agent/tools/run.py:30
↓ 1 callersFunctionrun
Run a shell command asynchronously.
trae_agent/tools/edit_tool_cli.py:53
↓ 1 callersMethodrun_all
Run patch generation for all instances in the dataset, with parallelism controlled by max_workers.
evaluation/run_evaluation.py:310
↓ 1 callersMethodrun_all
Run all instances concurrently using ThreadPoolExecutor. Args: max_workers: Maximum number of worker threads. If None, defaults t
evaluation/patch_selection/trae_selector/selector_evaluation.py:331
↓ 1 callersMethodrun_eval
Run evaluation using the benchmark harness. Evaluation results and predictions.json are stored in the task results directory.
evaluation/run_evaluation.py:329
↓ 1 callersFunctionrun_instance
( *, instance, candidate_log, output_path, max_retry, num_candidate, tools_path,
evaluation/patch_selection/trae_selector/selector_evaluation.py:18
↓ 1 callersFunctionrun_instance_by_group
( *, instance, candidate_log, output_path, max_retry, num_candidate, tools_path,
evaluation/patch_selection/trae_selector/selector_evaluation.py:66
↓ 1 callersMethodsequential_tool_call
Execute tool calls in sequential
trae_agent/tools/base.py:242
↓ 1 callersMethodsequential_tool_call
Executes tool calls sequentially, routing to Docker if necessary.
trae_agent/tools/docker_tool_executor.py:57
↓ 1 callersMethodset_chat_history
Set the chat history.
trae_agent/utils/llm_clients/google_client.py:32
↓ 1 callersMethodset_chat_history
Set the chat history.
trae_agent/utils/llm_clients/llm_client.py:68
↓ 1 callersMethodset_chat_history
(self, messages: list[LLMMessage])
trae_agent/utils/llm_clients/ollama_client.py:43
↓ 1 callersMethodset_initial_task
Set the initial task for RUN mode.
trae_agent/utils/cli/rich_console.py:365
↓ 1 callersMethodset_trajectory_recorder
Set the trajectory recorder for this agent.
trae_agent/agent/base_agent.py:92
↓ 1 callersMethodshould_use_max_completion_tokens
Determine whether to use the max_completion_tokens parameter.Primarily used for Azure OpenAI's newer models (e.g., gpt-5).
trae_agent/utils/config.py:58
↓ 1 callersMethodstart_container
(self)
evaluation/patch_selection/trae_selector/sandbox.py:24
↓ 1 callersMethodstart_recording
Start recording a new trajectory. Args: task: The task being executed provider: LLM provider being used m
trae_agent/utils/trajectory_recorder.py:54
↓ 1 callersMethodstart_shell
(self)
evaluation/patch_selection/trae_selector/sandbox.py:44
↓ 1 callersMethodstop
Stops the pexpect shell and cleans up the container if managed by this instance.
trae_agent/agent/docker_manager.py:140
↓ 1 callersMethodstr_replace
(self, path: Path, old_str: str, new_str: str | None)
evaluation/patch_selection/trae_selector/tools/tools/edit.py:137
↓ 1 callersMethodstr_replace
Implement the str_replace command, which replaces old_str with new_str in the file content
trae_agent/tools/edit_tool_cli.py:241
↓ 1 callersMethodstr_replace
Implement the str_replace command, which replaces old_str with new_str in the file content
trae_agent/tools/edit_tool.py:197
↓ 1 callersMethodtask_incomplete_message
Return a message indicating that the task is incomplete. Override for custom logic.
trae_agent/agent/base_agent.py:276
↓ 1 callersMethodundo_edit
(self, path: Path)
evaluation/patch_selection/trae_selector/tools/tools/edit.py:206
↓ 1 callersMethodupdate_status
Update the console with agent status. Args: agent_step: Current agent step information agent_execution: Complete agen
trae_agent/utils/cli/cli_console.py:74
↓ 1 callersMethodupdate_tokens
Update token counts from agent execution.
trae_agent/utils/cli/rich_console.py:49
↓ 1 callersMethodvalidate_path
(self, command: str, path: Path)
evaluation/patch_selection/trae_selector/tools/tools/edit.py:80
↓ 1 callersMethodvalidate_path
Validate the path for the str_replace_editor tool.
trae_agent/tools/edit_tool.py:134
↓ 1 callersMethodview
(self, path: Path, view_range: list[int] | None = None)
evaluation/patch_selection/trae_selector/tools/tools/edit.py:97
Method__add__
(self, other: "ToolResult")
evaluation/patch_selection/trae_selector/tools/tools/base.py:14
Method__add__
(self, other: "LLMUsage")
trae_agent/utils/llm_clients/llm_basics.py:30
Method__bool__
(self)
evaluation/patch_selection/trae_selector/tools/tools/base.py:11
Method__call__
(self, command: str | None = None, restart: bool = False, **kwargs)
evaluation/patch_selection/trae_selector/tools/tools/bash.py:100
Method__call__
( self, *, command: Command, path: str, file_text: str | None = None,
evaluation/patch_selection/trae_selector/tools/tools/edit.py:42
Method__del__
(self)
trae_agent/tools/ckg/ckg_database.py:198
Method__init__
Initialize the BenchmarkEvaluation class. Args: benchmark: Benchmark name. working_dir: Path for workspace (
evaluation/run_evaluation.py:29
Method__init__
( self, llm_config: ModelConfig, num_candidate: int, max_retry: int, m
evaluation/patch_selection/trae_selector/selector_evaluation.py:301
Method__init__
(self, id, patch, cleaned_patch, is_success_regression, is_success_patch)
evaluation/patch_selection/trae_selector/selector_agent.py:15
Method__init__
( self, *, llm_config: ModelConfig, sandbox: Sandbox, project_path: st
evaluation/patch_selection/trae_selector/selector_agent.py:154
Method__init__
(self, namespace: str, name: str, tag: str, instance: dict, tools_path: str)
evaluation/patch_selection/trae_selector/sandbox.py:9
Method__init__
(self, sandbox)
evaluation/patch_selection/trae_selector/sandbox.py:58
Method__init__
(self)
evaluation/patch_selection/trae_selector/tools/tools/bash.py:17
Method__init__
(self)
evaluation/patch_selection/trae_selector/tools/tools/bash.py:96
Method__init__
(self, message: str)
evaluation/patch_selection/trae_selector/tools/tools/base.py:44
Method__init__
(self)
evaluation/patch_selection/trae_selector/tools/tools/edit.py:32
Method__init__
(self, client, tool: mcp.types.Tool, model_provider: str | None = None)
trae_agent/tools/mcp_tool.py:9
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/task_done_tool.py:12
Method__init__
(self)
trae_agent/tools/bash_tool.py:30
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/bash_tool.py:168
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/ckg_tool.py:17
Method__init__
(self, message: str)
trae_agent/tools/base.py:19
Method__init__
(self, tools: list[Tool])
trae_agent/tools/base.py:185
Method__init__
(self, output: str | None = None, error: str | None = None, error_code: int = 0)
trae_agent/tools/edit_tool_cli.py:30
Method__init__
(self, name: str, type: str, description: str, required: bool = False, **kwargs)
trae_agent/tools/edit_tool_cli.py:38
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/edit_tool_cli.py:74
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/json_edit_tool.py:20
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/sequential_thinking_tool.py:154
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/edit_tool.py:30
Method__init__
(self, output: str | None = None, error: str | None = None, error_code: int = 0)
trae_agent/tools/json_edit_tool_cli.py:36
Method__init__
(self, name: str, type: str, description: str, required: bool = False, **kwargs)
trae_agent/tools/json_edit_tool_cli.py:45
Method__init__
(self, model_provider: str | None = None)
trae_agent/tools/json_edit_tool_cli.py:52
Method__init__
Initializes the DockerToolExecutor.
trae_agent/tools/docker_tool_executor.py:15
Method__init__
(self, codebase_path: Path)
trae_agent/tools/ckg/ckg_database.py:149
Method__init__
(self)
trae_agent/utils/mcp_client.py:27
Method__init__
(self, lake_view_config: LakeviewConfig | None)
trae_agent/utils/lake_view.py:79
Method__init__
Initialize trajectory recorder. Args: trajectory_path: Path to save trajectory file. If None, generates default path.
trae_agent/utils/trajectory_recorder.py:23
Method__init__
(self, config_or_config_file: str | dict = "trae_config.json")
trae_agent/utils/legacy_config.py:82
Method__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/google_client.py:24
Method__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/azure_client.py:52
Method__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/anthropic_client.py:22
Method__init__
(self, model_config: ModelConfig)
trae_agent/utils/llm_clients/llm_client.py:30
← previousnext →201–300 of 548, ranked by callers