Skip to content

Commit 04a796d

Browse files
committed
remove undeeded tools
1 parent b234e82 commit 04a796d

File tree

1 file changed

+0
-81
lines changed

1 file changed

+0
-81
lines changed

jupyter_ai_agents/agents/chat/agent.py

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -79,84 +79,3 @@ def create_chat_agent(
7979
# No need to register them manually
8080

8181
return agent
82-
83-
84-
def register_jupyter_tools(agent: Agent):
85-
"""
86-
Register Jupyter-specific tools with the agent.
87-
88-
Args:
89-
agent: The Pydantic AI agent to register tools with
90-
"""
91-
92-
@agent.tool_plain
93-
def execute_python_code(code: str) -> str:
94-
"""
95-
Execute Python code in the active notebook kernel.
96-
97-
This tool allows executing Python code and getting back the result.
98-
Use this when the user asks you to run code or needs to see output.
99-
100-
Args:
101-
code: Python code to execute
102-
103-
Returns:
104-
Execution result as string
105-
"""
106-
# TODO: Implement kernel execution via Jupyter services
107-
# For now, return placeholder
108-
return f"Code execution not yet implemented. Would execute:\n{code}"
109-
110-
@agent.tool_plain
111-
def read_notebook_file(path: str) -> str:
112-
"""
113-
Read a Jupyter notebook file and return its contents.
114-
115-
Args:
116-
path: Path to the notebook file
117-
118-
Returns:
119-
Notebook contents as formatted text
120-
"""
121-
# TODO: Implement notebook reading
122-
return f"Notebook reading not yet implemented. Would read: {path}"
123-
124-
@agent.tool_plain
125-
def list_workspace_files(directory: str = ".") -> list[str]:
126-
"""
127-
List files in the workspace directory.
128-
129-
Args:
130-
directory: Directory to list (default: current directory)
131-
132-
Returns:
133-
List of file names
134-
"""
135-
# TODO: Implement file listing via Jupyter services
136-
return [f"File listing not yet implemented for: {directory}"]
137-
138-
@agent.tool_plain
139-
def get_notebook_metadata() -> dict[str, Any]:
140-
"""
141-
Get metadata about the currently active notebook.
142-
143-
Returns:
144-
Dictionary with notebook metadata (name, path, kernel, etc.)
145-
"""
146-
# TODO: Implement metadata retrieval
147-
return {
148-
"status": "not_implemented",
149-
"message": "Notebook metadata retrieval not yet implemented"
150-
}
151-
152-
153-
def add_mcp_tools(agent: Agent, mcp_tools: list):
154-
"""
155-
Add MCP tools to the agent dynamically.
156-
157-
Args:
158-
agent: The Pydantic AI agent
159-
mcp_tools: List of MCP tool definitions
160-
"""
161-
# TODO: Implement dynamic MCP tool registration
162-
pass

0 commit comments

Comments
 (0)