2025-11-04 08:09:12 +01:00
|
|
|
from pr.tools.agents import (
|
|
|
|
|
collaborate_agents,
|
|
|
|
|
create_agent,
|
|
|
|
|
execute_agent_task,
|
|
|
|
|
list_agents,
|
|
|
|
|
remove_agent,
|
|
|
|
|
)
|
2025-11-04 05:17:27 +01:00
|
|
|
from pr.tools.base import get_tools_definition
|
2025-11-05 15:34:23 +01:00
|
|
|
from pr.tools.vision import post_image
|
2025-11-04 08:09:12 +01:00
|
|
|
from pr.tools.command import (
|
|
|
|
|
kill_process,
|
|
|
|
|
run_command,
|
|
|
|
|
run_command_interactive,
|
|
|
|
|
tail_process,
|
|
|
|
|
)
|
|
|
|
|
from pr.tools.database import db_get, db_query, db_set
|
|
|
|
|
from pr.tools.editor import (
|
|
|
|
|
close_editor,
|
|
|
|
|
editor_insert_text,
|
|
|
|
|
editor_replace_text,
|
|
|
|
|
editor_search,
|
|
|
|
|
open_editor,
|
|
|
|
|
)
|
2025-11-04 05:17:27 +01:00
|
|
|
from pr.tools.filesystem import (
|
2025-11-04 08:09:12 +01:00
|
|
|
chdir,
|
|
|
|
|
getpwd,
|
|
|
|
|
index_source_directory,
|
|
|
|
|
list_directory,
|
|
|
|
|
mkdir,
|
|
|
|
|
read_file,
|
|
|
|
|
search_replace,
|
|
|
|
|
write_file,
|
|
|
|
|
)
|
|
|
|
|
from pr.tools.memory import (
|
|
|
|
|
add_knowledge_entry,
|
|
|
|
|
delete_knowledge_entry,
|
|
|
|
|
get_knowledge_by_category,
|
|
|
|
|
get_knowledge_entry,
|
|
|
|
|
get_knowledge_statistics,
|
|
|
|
|
search_knowledge,
|
|
|
|
|
update_knowledge_importance,
|
2025-11-04 05:17:27 +01:00
|
|
|
)
|
|
|
|
|
from pr.tools.patch import apply_patch, create_diff
|
2025-11-04 08:09:12 +01:00
|
|
|
from pr.tools.python_exec import python_exec
|
|
|
|
|
from pr.tools.web import http_fetch, web_search, web_search_news
|
2025-11-06 15:15:06 +01:00
|
|
|
from pr.tools.context_modifier import (
|
|
|
|
|
modify_context_add,
|
|
|
|
|
modify_context_replace,
|
|
|
|
|
modify_context_delete,
|
|
|
|
|
)
|
2025-11-04 05:17:27 +01:00
|
|
|
|
|
|
|
|
__all__ = [
|
2025-11-05 15:34:23 +01:00
|
|
|
"add_knowledge_entry",
|
|
|
|
|
"apply_patch",
|
2025-11-04 08:09:12 +01:00
|
|
|
"chdir",
|
|
|
|
|
"close_editor",
|
2025-11-05 15:34:23 +01:00
|
|
|
"collaborate_agents",
|
|
|
|
|
"create_agent",
|
|
|
|
|
"create_diff",
|
2025-11-04 08:09:12 +01:00
|
|
|
"db_get",
|
|
|
|
|
"db_query",
|
2025-11-05 15:34:23 +01:00
|
|
|
"db_set",
|
|
|
|
|
"delete_knowledge_entry",
|
|
|
|
|
"post_image",
|
|
|
|
|
"editor_insert_text",
|
|
|
|
|
"editor_replace_text",
|
|
|
|
|
"editor_search",
|
|
|
|
|
"execute_agent_task",
|
|
|
|
|
"get_knowledge_by_category",
|
|
|
|
|
"get_knowledge_entry",
|
|
|
|
|
"get_knowledge_statistics",
|
|
|
|
|
"get_tools_definition",
|
|
|
|
|
"getpwd",
|
2025-11-04 08:09:12 +01:00
|
|
|
"http_fetch",
|
2025-11-05 15:34:23 +01:00
|
|
|
"index_source_directory",
|
2025-11-04 08:09:12 +01:00
|
|
|
"kill_process",
|
|
|
|
|
"list_agents",
|
2025-11-05 15:34:23 +01:00
|
|
|
"list_directory",
|
|
|
|
|
"mkdir",
|
|
|
|
|
"open_editor",
|
|
|
|
|
"python_exec",
|
|
|
|
|
"read_file",
|
2025-11-04 08:09:12 +01:00
|
|
|
"remove_agent",
|
2025-11-05 15:34:23 +01:00
|
|
|
"run_command",
|
|
|
|
|
"run_command_interactive",
|
2025-11-04 08:09:12 +01:00
|
|
|
"search_knowledge",
|
2025-11-05 15:34:23 +01:00
|
|
|
"search_replace",
|
|
|
|
|
"tail_process",
|
2025-11-04 08:09:12 +01:00
|
|
|
"update_knowledge_importance",
|
2025-11-05 15:34:23 +01:00
|
|
|
"web_search",
|
|
|
|
|
"web_search_news",
|
|
|
|
|
"write_file",
|
2025-11-04 05:17:27 +01:00
|
|
|
]
|