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: docs/tools/tool/neon.mdx
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
title: Neon
3
3
description: Postgres for agents
4
4
---
5
-
6
5
## Description
7
6
Neon is a serverless Postgres platform that lets your agents create and manage databases on demand. It supports ephemeral or long-lived Postgres instances for storing structured data.
8
7
@@ -24,8 +23,8 @@ agentstack tools add neon
24
23
NEON_API_KEY=...
25
24
```
26
25
27
-
## Available Tools
28
-
Out of the box, these tools are ready to use:
26
+
## Available Actions
27
+
The following actions are automatically included when you add the Neon tool to your agent:
29
28
30
29
1.**`create_database`**
31
30
Creates a new Neon project and returns a connection URI. Default settings create a database called `neondb` with the `neondb_owner` role.
@@ -38,24 +37,19 @@ Out of the box, these tools are ready to use:
38
37
3.**`run_sql_query`**
39
38
Run data queries (e.g., `SELECT`, `INSERT`) using a connection URI and SQL query. Results are returned as formatted strings.
tools=[*agentstack.tools['neon']], # Includes all Neon actions listed above
49
48
verbose=True,
50
49
)
51
50
```
52
51
53
52
For a complete example, see `AgentStack/examples/web_researcher` where an agent stores collected data in Postgres as part of a multi-agent workflow.
54
53
55
54
## Usage Note
56
-
When you add the Neon tool to an existing project, all its tools will be added to every agent in the `agents.yaml` file. You may need to remove unused tools to keep each agent’s scope clear.
57
-
58
-
## Customization
59
-
When you run `agentstack tools add neon`, the tool is added to your project as source code, not as a dependency. This means you can add more capabilities, like Neon's database [branching](https://neon.tech/docs/introduction/branching).
60
-
61
-
For examples of how to implement additional tools, see the existing implementation in `neon_tool.py`. For more on Neon's API capabilities, refer to the [neon.tech/docs/reference/api-reference](https://neon.tech/docs/reference/api-reference).
55
+
When you add the Neon tool to an existing project, all its tools will be added to every agent in the `agents.yaml` file. You may need to remove unused tools to keep each agent's scope clear.
0 commit comments