Skip to content

Commit c3cd652

Browse files
committed
changed tools usage
also removed customization section
1 parent afbaae5 commit c3cd652

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

docs/tools/tool/neon.mdx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Neon
33
description: Postgres for agents
44
---
5-
65
## Description
76
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.
87

@@ -24,8 +23,8 @@ agentstack tools add neon
2423
NEON_API_KEY=...
2524
```
2625

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:
2928

3029
1. **`create_database`**
3130
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:
3837
3. **`run_sql_query`**
3938
Run data queries (e.g., `SELECT`, `INSERT`) using a connection URI and SQL query. Results are returned as formatted strings.
4039

41-
## Using the Tools
42-
Add the tools you need to your agent:
40+
## Using the Tool
41+
Add the Neon tool to your agent:
4342
```python
4443
@agent
4544
def db_writer(self) -> Agent:
4645
return Agent(
4746
config=self.agents_config['db_writer'],
48-
tools=[tools.create_database, tools.execute_sql_ddl, tools.run_sql_query],
47+
tools=[*agentstack.tools['neon']], # Includes all Neon actions listed above
4948
verbose=True,
5049
)
5150
```
5251

5352
For a complete example, see `AgentStack/examples/web_researcher` where an agent stores collected data in Postgres as part of a multi-agent workflow.
5453

5554
## 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

Comments
 (0)