File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- # Restack Agent with Tool Calling
1
+ # Restack Agent with Retrievel-Augmented-Generation (RAG)
2
2
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.
4
4
5
5
## Requirements
6
6
@@ -36,7 +36,7 @@ You can run agents from the UI by clicking the "Run" button.
36
36
37
37
You can run agents from the API by using the generated endpoint:
38
38
39
- ` POST http://localhost:6233/api/agents/agentChatTool `
39
+ ` POST http://localhost:6233/api/agents/agentChatRAG `
40
40
41
41
### from any client
42
42
@@ -46,7 +46,7 @@ You can run agents with any client connected to Restack, for example:
46
46
npm run schedule
47
47
```
48
48
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.
50
50
51
51
## Send events to the Agent
52
52
@@ -64,7 +64,7 @@ And see the events in the run:
64
64
65
65
You can send events to the agent by using the following endpoint:
66
66
67
- ` PUT http://localhost:6233/api/agents/agentChatTool /:agentId/:runId `
67
+ ` PUT http://localhost:6233/api/agents/agentChatRAG /:agentId/:runId `
68
68
69
69
with the payload:
70
70
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type AgentChatOutput = {
18
18
messages : functions . Message [ ] ;
19
19
} ;
20
20
21
- export async function agentChatTool ( ) : Promise < AgentChatOutput > {
21
+ export async function agentChatRAG ( ) : Promise < AgentChatOutput > {
22
22
let endReceived = false ;
23
23
24
24
const salesData = await step < typeof functions > ( { } ) . lookupSales ( ) ;
You can’t perform that action at this time.
0 commit comments