Skip to content

Commit 713caab

Browse files
unseriousAIclaude
andcommitted
Release v1.3.1: Add get_current_directory to essential tools
Add get_current_directory from the system module to load_essential() helper, giving general-purpose agents the ability to check the current working directory out of the box. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5cafd19 commit 713caab

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
44

55
[project]
66
name = "basic-open-agent-tools"
7-
version = "1.3.0"
7+
version = "1.3.1"
88
description = "An open foundational toolkit providing essential components for building AI agents with minimal dependencies for local (non-HTTP/API) actions."
99
readme = "README.md"
1010
requires-python = ">=3.9"

src/basic_open_agent_tools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
with minimal dependencies for local (non-HTTP/API) actions.
55
"""
66

7-
__version__ = "1.3.0"
7+
__version__ = "1.3.1"
88

99
# Modular structure
1010
from . import (

src/basic_open_agent_tools/helpers.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,8 +1163,8 @@ def load_essential() -> list[Callable[..., Any]]:
11631163
Perfect for agents that need basic file operations, data processing,
11641164
and common utilities without overwhelming them with specialized tools.
11651165
1166-
Includes (~22 essential tools):
1167-
- File I/O: read, write, list, check existence (7 tools)
1166+
Includes (~23 essential tools):
1167+
- File I/O: read, write, list, check existence, cwd (8 tools)
11681168
- Data: JSON/CSV/YAML read/write (6 tools)
11691169
- Text: whitespace cleaning (1 tool)
11701170
- Time: current date and datetime (2 tools)
@@ -1178,7 +1178,7 @@ def load_essential() -> list[Callable[..., Any]]:
11781178
11791179
Example:
11801180
>>> essential_tools = load_essential()
1181-
>>> len(essential_tools) >= 20
1181+
>>> len(essential_tools) >= 21
11821182
True
11831183
>>> # Use for a general-purpose agent
11841184
>>> agent = Agent(
@@ -1199,11 +1199,12 @@ def load_essential() -> list[Callable[..., Any]]:
11991199
write_file_from_string,
12001200
)
12011201
from .network import http_request
1202+
from .system import get_current_directory
12021203
from .text import clean_whitespace
12031204

12041205
tools: list[Callable[..., Any]] = []
12051206

1206-
# Core file operations (7 tools)
1207+
# Core file operations (8 tools)
12071208
tools.extend(
12081209
[
12091210
read_file_to_string,
@@ -1213,6 +1214,7 @@ def load_essential() -> list[Callable[..., Any]]:
12131214
file_exists,
12141215
directory_exists,
12151216
delete_file,
1217+
get_current_directory,
12161218
]
12171219
)
12181220

0 commit comments

Comments
 (0)