Skip to content

Commit ff647f3

Browse files
Merge pull request #574 from WilliamRabuel/patch-1
Update dummy-agent-library.mdx
2 parents 43ab436 + 49ad257 commit ff647f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

units/en/unit1/dummy-agent-library.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ Action:
211211
"action": "get_weather",
212212
"action_input": {"location": "London"}
213213
}
214-
```
215-
Observation:
214+
215+
216216
````
217217

218218
Much Better!
@@ -239,7 +239,7 @@ Let's concatenate the system prompt, the base prompt, the completion until funct
239239
messages=[
240240
{"role": "system", "content": SYSTEM_PROMPT},
241241
{"role": "user", "content": "What's the weather in London ?"},
242-
{"role": "assistant", "content": output.choices[0].message.content + get_weather('London')},
242+
{"role": "assistant", "content": output.choices[0].message.content + "Observation:\n" + get_weather('London')},
243243
]
244244

245245
output = client.chat.completions.create(

0 commit comments

Comments
 (0)