You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/client/acontext-py/README.md
+138Lines changed: 138 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,144 @@ result = client.tools.rename_tool_name(
289
289
print(result.status) # 0 for success
290
290
```
291
291
292
+
### Agent Tools
293
+
294
+
The SDK provides agent tools that allow LLMs (OpenAI, Anthropic) to interact with Acontext disks through function calling. These tools can be converted to OpenAI or Anthropic tool schemas and executed when the LLM calls them.
295
+
296
+
#### Pre-configured Disk Tools
297
+
298
+
The SDK includes a pre-configured `DISK_TOOLS` pool with four disk operation tools:
299
+
300
+
-**`write_file`**: Write text content to a file
301
+
-**`read_file`**: Read a text file with optional line offset and limit
302
+
-**`replace_string`**: Replace strings in a file
303
+
-**`list_artifacts`**: List files and directories in a path
304
+
305
+
#### Getting Tool Schemas for LLM APIs
306
+
307
+
Convert tools to the appropriate format for your LLM provider:
0 commit comments