Built-in Tools API¶
PatchPal includes a comprehensive set of built-in tools for file operations, git, web access, and more.
File Operations¶
read_file¶
patchpal.tools.file_operations.read_file(path)
¶
Read the contents of a file.
Supports text files and documents (PDF, DOCX, PPTX) with automatic text extraction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the file (relative to repository root or absolute) |
required |
Returns:
| Type | Description |
|---|---|
str
|
The file contents as a string (text extracted from documents) |
Raises:
| Type | Description |
|---|---|
ValueError
|
If file is too large, unsupported binary format, or sensitive |
Source code in patchpal/tools/file_operations.py
read_lines¶
patchpal.tools.file_operations.read_lines(path, start_line, end_line=None)
¶
Read specific lines from a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the file (relative to repository root or absolute) |
required |
start_line
|
int
|
Starting line number (1-indexed) |
required |
end_line
|
Optional[int]
|
Ending line number (inclusive, 1-indexed). If omitted, reads only start_line |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The requested lines with line numbers |
Raises:
| Type | Description |
|---|---|
ValueError
|
If file not found, binary, sensitive, or line numbers invalid |
Examples:
read_lines("src/auth.py", 45, 60) # Read lines 45-60 read_lines("src/auth.py", 45) # Read only line 45
Tip
Use count_lines(path) first to find total line count for reading from end
Source code in patchpal/tools/file_operations.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | |
count_lines¶
patchpal.tools.file_operations.count_lines(path)
¶
Count the number of lines in a file efficiently.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the file (relative to repository root or absolute) |
required |
Returns:
| Type | Description |
|---|---|
str
|
String containing line count and file info |
Raises:
| Type | Description |
|---|---|
ValueError
|
If file not found, binary, or sensitive |
Examples:
count_lines("logs/app.log") # Returns: "logs/app.log: 15,234 lines (2.3MB)"
Use case
Get total line count before using read_lines() to read last N lines: total = count_lines("big.log") # "50000 lines" read_lines("big.log", 49900, 50000) # Read last 100 lines
Source code in patchpal/tools/file_operations.py
list_files¶
patchpal.tools.file_operations.list_files()
¶
List all files in the repository.
Returns:
| Type | Description |
|---|---|
list[str]
|
A list of relative file paths (excludes hidden and binary files) |
Source code in patchpal/tools/file_operations.py
get_file_info¶
patchpal.tools.file_operations.get_file_info(path)
¶
Get metadata for file(s) at the specified path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to file, directory, or glob pattern (e.g., "tests/*.txt") Can be relative to repository root or absolute |
required |
Returns:
| Type | Description |
|---|---|
str
|
Formatted string with file metadata (name, size, modified time, type) |
str
|
For multiple files, returns one line per file |
Raises:
| Type | Description |
|---|---|
ValueError
|
If no files found |
Source code in patchpal/tools/file_operations.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | |
find_files¶
patchpal.tools.file_operations.find_files(pattern, case_sensitive=True)
¶
Find files by name pattern (glob-style wildcards).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pattern
|
str
|
Glob pattern (e.g., '.py', 'test_.txt', 'src/*/.js') |
required |
case_sensitive
|
bool
|
Whether to match case-sensitively (default: True) |
True
|
Returns:
| Type | Description |
|---|---|
str
|
List of matching file paths, one per line |
Examples:
find_files(".py") # All Python files in repo find_files("test_.py") # All test files find_files("/.md") # All markdown files recursively find_files(".TXT", False) # All .txt files (case-insensitive)
Source code in patchpal/tools/file_operations.py
tree¶
patchpal.tools.file_operations.tree(path='.', max_depth=3, show_hidden=False)
¶
Show directory tree structure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Starting directory path (relative to repo or absolute) |
'.'
|
max_depth
|
int
|
Maximum depth to traverse (default: 3, max: 10) |
3
|
show_hidden
|
bool
|
Include hidden files/directories (default: False) |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Visual tree structure of the directory |
Example output
. ├── patchpal/ │ ├── init.py │ ├── agent.py │ └── tools.py └── tests/ ├── test_agent.py └── test_tools.py
Source code in patchpal/tools/file_operations.py
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 | |
File Editing¶
apply_patch¶
patchpal.tools.file_editing.apply_patch(path, new_content)
¶
Apply changes to a file by replacing its contents.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Relative path to the file from the repository root |
required |
new_content
|
str
|
The new complete content for the file |
required |
Returns:
| Type | Description |
|---|---|
str
|
A confirmation message with the unified diff |
Raises:
| Type | Description |
|---|---|
ValueError
|
If in read-only mode or file is too large |
Source code in patchpal/tools/file_editing.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | |
edit_file¶
patchpal.tools.file_editing.edit_file(path, old_string, new_string)
¶
Edit a file by replacing a string match with flexible whitespace handling.
Uses multiple matching strategies to find old_string: 1. Exact match 2. Trimmed line match (ignores indentation differences in search) 3. Normalized whitespace match (ignores spacing differences in search)
Important: The flexible matching only applies to FINDING old_string. The new_string is used exactly as provided, so it should include proper indentation/formatting to match the surrounding code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Relative path to the file from the repository root |
required |
old_string
|
str
|
The string to find (whitespace can be approximate) |
required |
new_string
|
str
|
The replacement string (use exact whitespace/indentation you want) |
required |
Returns:
| Type | Description |
|---|---|
str
|
Confirmation message with the changes made |
Raises:
| Type | Description |
|---|---|
ValueError
|
If file not found, old_string not found, or multiple matches |
Example
Find with flexible matching, but provide new_string with proper indent¶
edit_file("test.py", "print('hello')", " print('world')") # 4 spaces
Source code in patchpal/tools/file_editing.py
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 | |
Code Analysis¶
code_structure¶
patchpal.tools.code_analysis.code_structure(path, max_symbols=50)
¶
Analyze code structure using tree-sitter AST parsing.
Returns a compact view of: - File statistics (lines, size) - Functions with signatures and line numbers - Classes with methods - Module/file docstring (if present)
This is much more efficient than read_file for understanding code layout. Supports 40+ languages via tree-sitter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
File path to analyze (relative or absolute) |
required |
max_symbols
|
int
|
Maximum number of symbols to show (default: 50) |
50
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted code structure overview |
Examples:
Functions (45): Line 123: def read_file(path: str, *, encoding: str = "utf-8") -> str Line 234: def apply_patch(path: str, new_content: str) -> str ...
Use read_lines('patchpal/tools.py', start, end) to read specific sections.
Source code in patchpal/tools/code_analysis.py
Repository Map¶
get_repo_map¶
patchpal.tools.repo_map.get_repo_map(max_files=100, include_patterns=None, exclude_patterns=None, focus_files=None)
¶
Generate a compact repository map showing code structure across all files.
This provides a bird's-eye view of the codebase, showing function and class signatures without their implementations. Much more token-efficient than reading individual files.
Supports 20+ languages including Python, JavaScript, TypeScript, Go, Rust, Java, C/C++, C#, Ruby, PHP, Swift, Kotlin, Scala, Elm, Elixir, and more.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_files
|
int
|
Maximum number of files to include (default: 100) |
100
|
include_patterns
|
Optional[List[str]]
|
Glob patterns to include (e.g., ['.py', '.js']) |
None
|
exclude_patterns
|
Optional[List[str]]
|
Glob patterns to exclude (e.g., ['test', '*_pb2.py']) |
None
|
focus_files
|
Optional[List[str]]
|
Files mentioned in conversation (prioritized in output) |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted repository map with file structures |
Examples:
src/auth.py: Line 45: def login(username: str, password: str) -> bool Line 67: def logout(session_id: str) -> None Line 89: class AuthManager:
src/database.py: Line 23: class Database: Line 45: def connect(self) -> None ...
Token Efficiency
- Traditional approach: Read 50 files × 2,000 tokens = 100,000 tokens
- With repo map: 50 files × 150 tokens = 7,500 tokens
- Savings: 92.5%
Source code in patchpal/tools/repo_map.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | |
get_repo_map_stats¶
patchpal.tools.repo_map.get_repo_map_stats()
¶
Get statistics about the repository map cache.
Returns:
| Type | Description |
|---|---|
Dict[str, any]
|
Dictionary with cache statistics including: |
Dict[str, any]
|
|
Dict[str, any]
|
|
Dict[str, any]
|
|
Source code in patchpal/tools/repo_map.py
clear_repo_map_cache¶
patchpal.tools.repo_map.clear_repo_map_cache()
¶
Clear the repository map cache.
Useful if files have been added/removed outside of PatchPal's awareness, or if you want to force a fresh scan.
Source code in patchpal/tools/repo_map.py
Git Operations¶
git_status¶
patchpal.tools.git_tools.git_status()
¶
Get the status of the git repository.
Returns:
| Type | Description |
|---|---|
str
|
Formatted git status output showing modified, staged, and untracked files |
Raises:
| Type | Description |
|---|---|
ValueError
|
If not in a git repository or git command fails |
Source code in patchpal/tools/git_tools.py
git_diff¶
patchpal.tools.git_tools.git_diff(path=None, staged=False)
¶
Get the git diff for the repository or a specific file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Optional[str]
|
Optional path to a specific file (relative to repo root) |
None
|
staged
|
bool
|
If True, show staged changes (--cached), else show unstaged changes |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Git diff output |
Raises:
| Type | Description |
|---|---|
ValueError
|
If not in a git repository or git command fails |
Source code in patchpal/tools/git_tools.py
git_log¶
patchpal.tools.git_tools.git_log(max_count=10, path=None)
¶
Get the git commit history.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_count
|
int
|
Maximum number of commits to show (default: 10, max: 50) |
10
|
path
|
Optional[str]
|
Optional path to show history for a specific file |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted git log output |
Raises:
| Type | Description |
|---|---|
ValueError
|
If not in a git repository or git command fails |
Source code in patchpal/tools/git_tools.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | |
grep¶
patchpal.tools.git_tools.grep(pattern, file_glob=None, case_sensitive=True, max_results=100, path=None)
¶
Search for a pattern in files using grep.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pattern
|
str
|
Regular expression pattern to search for |
required |
file_glob
|
Optional[str]
|
Optional glob pattern to filter files (e.g., ".py", "src//.js") |
None
|
case_sensitive
|
bool
|
Whether the search should be case-sensitive (default: True) |
True
|
max_results
|
int
|
Maximum number of results to return (default: 100) |
100
|
path
|
Optional[str]
|
Optional file or directory path to search in (relative to repo root or absolute). Defaults to repository root. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Search results in format "file:line:content" or a message if no results found |
Raises:
| Type | Description |
|---|---|
ValueError
|
If pattern is invalid or search fails |
Source code in patchpal/tools/git_tools.py
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | |
Shell Execution¶
run_shell¶
patchpal.tools.shell_tools.run_shell(cmd)
¶
Run a safe shell command in the repository.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cmd
|
str
|
The shell command to execute |
required |
Returns:
| Type | Description |
|---|---|
str
|
Combined stdout and stderr output |
Raises:
| Type | Description |
|---|---|
ValueError
|
If command contains forbidden operations |
Source code in patchpal/tools/shell_tools.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
Web Tools¶
web_search¶
patchpal.tools.web_tools.web_search(query, max_results=5)
¶
Search the web using DuckDuckGo and return results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
str
|
The search query |
required |
max_results
|
int
|
Maximum number of results to return (default: 5, max: 10) |
5
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted search results with titles, URLs, and snippets |
Raises:
| Type | Description |
|---|---|
ValueError
|
If search fails |
Source code in patchpal/tools/web_tools.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | |
web_fetch¶
patchpal.tools.web_tools.web_fetch(url, extract_text=True)
¶
Fetch content from a URL and optionally extract readable text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The URL to fetch |
required |
extract_text
|
bool
|
If True, extract readable text from HTML/PDF (default: True) |
True
|
Returns:
| Type | Description |
|---|---|
str
|
The fetched content (text extracted from HTML/PDF if extract_text=True) |
Raises:
| Type | Description |
|---|---|
ValueError
|
If request fails or content is too large |
Source code in patchpal/tools/web_tools.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
TODO Management¶
todo_add¶
patchpal.tools.todo_tools.todo_add(description, details='')
¶
Add a new task to the TODO list.
Use this to break down complex tasks into manageable subtasks. Each task gets a unique ID for tracking and completion.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
description
|
str
|
Brief task description (one line) |
required |
details
|
str
|
Optional detailed notes about the task |
''
|
Returns:
| Type | Description |
|---|---|
str
|
Confirmation with the task ID |
Example
todo_add("Read authentication module", details="Focus on session handling logic") todo_add("Add input validation to login endpoint")
Source code in patchpal/tools/todo_tools.py
todo_list¶
patchpal.tools.todo_tools.todo_list(show_completed=False)
¶
List all tasks in the TODO list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
show_completed
|
bool
|
If True, show completed tasks; if False, show only pending tasks (default: False) |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted list of tasks with IDs, status, and descriptions |
Source code in patchpal/tools/todo_tools.py
todo_complete¶
patchpal.tools.todo_tools.todo_complete(task_id)
¶
Mark a task as completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
int
|
The ID of the task to complete |
required |
Returns:
| Type | Description |
|---|---|
str
|
Confirmation message |
Example
todo_complete(1) # Mark task #1 as done
Source code in patchpal/tools/todo_tools.py
todo_update¶
patchpal.tools.todo_tools.todo_update(task_id, description=None, details=None)
¶
Update a task's description or details.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
int
|
The ID of the task to update |
required |
description
|
str
|
New description (optional) |
None
|
details
|
str
|
New details (optional) |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Confirmation message |
Example
todo_update(1, description="Read auth module and session handling") todo_update(2, details="Need to check for SQL injection vulnerabilities")
Source code in patchpal/tools/todo_tools.py
todo_remove¶
patchpal.tools.todo_tools.todo_remove(task_id)
¶
Remove a task from the TODO list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_id
|
int
|
The ID of the task to remove |
required |
Returns:
| Type | Description |
|---|---|
str
|
Confirmation message |
Example
todo_remove(1) # Remove task #1
Source code in patchpal/tools/todo_tools.py
todo_clear¶
patchpal.tools.todo_tools.todo_clear(completed_only=True)
¶
Clear tasks from the TODO list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
completed_only
|
bool
|
If True, clear only completed tasks; if False, clear all tasks (default: True) |
True
|
Returns:
| Type | Description |
|---|---|
str
|
Confirmation message |
Example
todo_clear() # Clear completed tasks todo_clear(completed_only=False) # Clear all tasks (start fresh)
Source code in patchpal/tools/todo_tools.py
User Interaction¶
list_skills¶
patchpal.tools.user_interaction.list_skills()
¶
List all available skills that can be invoked.
Skills are reusable workflows stored in:
- Personal: ~/.patchpal/skills/
- Project:
Returns:
| Type | Description |
|---|---|
str
|
Formatted list of available skills with names and descriptions |
Source code in patchpal/tools/user_interaction.py
use_skill¶
patchpal.tools.user_interaction.use_skill(skill_name, args='')
¶
Invoke a skill with optional arguments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
skill_name
|
str
|
Name of the skill to invoke (without / prefix) |
required |
args
|
str
|
Optional arguments to pass to the skill |
''
|
Returns:
| Type | Description |
|---|---|
str
|
The skill's instructions formatted with any provided arguments |
Example
use_skill("commit", args="Fix bug in auth")
Source code in patchpal/tools/user_interaction.py
ask_user¶
patchpal.tools.user_interaction.ask_user(question, options=None)
¶
Ask the user a question and wait for their response.
This allows the agent to interactively clarify requirements, get decisions, or gather additional information during task execution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
question
|
str
|
The question to ask the user |
required |
options
|
Optional[list]
|
Optional list of predefined answer choices (e.g., ["yes", "no", "skip"]) If provided, user can select from these or type a custom answer |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The user's answer as a string |
Example
ask_user("Which authentication method should I use?", options=["JWT", "OAuth2", "Session"]) ask_user("Should I add error handling to all endpoints?")
Source code in patchpal/tools/user_interaction.py
Related¶
- Built-In Tools Guide - Overview of all built-in tools
- Custom Tools - Creating your own tools
- Agent API - Using tools through the agent