Skip to content

Commit cf971e1

Browse files
committed
fix: Prefer OpenAI schema for ReAct and Tool Calling Agents
Signed-off-by: Will Killian <[email protected]>
1 parent 36e0595 commit cf971e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/agents/react/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Once the server is running, you can make HTTP requests to interact with the work
144144
curl --request POST \
145145
--url http://localhost:8000/generate \
146146
--header 'Content-Type: application/json' \
147-
--data '{"input_message": "What are LLMs?"}'
147+
--data '{"messages": [{"role": "user", "content": "What are LLMs?"}]}'
148148
```
149149

150150
#### Streaming Requests
@@ -155,7 +155,7 @@ curl --request POST \
155155
curl --request POST \
156156
--url http://localhost:8000/generate/stream \
157157
--header 'Content-Type: application/json' \
158-
--data '{"input_message": "What are LLMs?"}'
158+
--data '{"messages": [{"role": "user", "content": "What are LLMs?"}]}'
159159
```
160160

161161
### Evaluating the ReAct Agent Workflow

examples/agents/tool_calling/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Once the server is running, you can make HTTP requests to interact with the work
157157
curl --request POST \
158158
--url http://localhost:8000/generate \
159159
--header 'Content-Type: application/json' \
160-
--data '{"input_message": "What are LLMs?"}'
160+
--data '{"messages": [{"role": "user", "content": "What are LLMs?"}]}'
161161
```
162162

163163
#### Streaming Requests
@@ -168,7 +168,7 @@ curl --request POST \
168168
curl --request POST \
169169
--url http://localhost:8000/generate/stream \
170170
--header 'Content-Type: application/json' \
171-
--data '{"input_message": "What are LLMs?"}'
171+
--data '{"messages": [{"role": "user", "content": "What are LLMs?"}]}'
172172
```
173173
---
174174
### Evaluating the Tool Calling Agent Workflow

0 commit comments

Comments
 (0)