Skip to content

Commit 0fc8ac4

Browse files
authored
Merge pull request #123 from restackio/agent-rag
2 parents e63e84b + 25eee6d commit 0fc8ac4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

agent-rag/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Restack Agent with Tool Calling
1+
# Restack Agent with Retrievel-Augmented-Generation (RAG)
22

3-
A sample repository with an agent using tool calling.
3+
A sample repository with an agent using rag to retrieve sales information and answer user queries.
44

55
## Requirements
66

@@ -36,7 +36,7 @@ You can run agents from the UI by clicking the "Run" button.
3636

3737
You can run agents from the API by using the generated endpoint:
3838

39-
`POST http://localhost:6233/api/agents/agentChatTool`
39+
`POST http://localhost:6233/api/agents/agentChatRAG`
4040

4141
### from any client
4242

@@ -46,7 +46,7 @@ You can run agents with any client connected to Restack, for example:
4646
npm run schedule
4747
```
4848

49-
executes `scheduleAgent.ts` which will connect to Restack and execute the `agentChatTool` agent.
49+
executes `scheduleAgent.ts` which will connect to Restack and execute the `agentChatRAG` agent.
5050

5151
## Send events to the Agent
5252

@@ -64,7 +64,7 @@ And see the events in the run:
6464

6565
You can send events to the agent by using the following endpoint:
6666

67-
`PUT http://localhost:6233/api/agents/agentChatTool/:agentId/:runId`
67+
`PUT http://localhost:6233/api/agents/agentChatRAG/:agentId/:runId`
6868

6969
with the payload:
7070

agent-rag/src/agents/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type AgentChatOutput = {
1818
messages: functions.Message[];
1919
};
2020

21-
export async function agentChatTool(): Promise<AgentChatOutput> {
21+
export async function agentChatRAG(): Promise<AgentChatOutput> {
2222
let endReceived = false;
2323

2424
const salesData = await step<typeof functions>({}).lookupSales();

0 commit comments

Comments
 (0)