You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,6 +407,14 @@ messages = [{
407
407
"content": "List the files in the current directory"
408
408
}]
409
409
410
+
whileTrue:
411
+
lm_output= query_lm(messages)
412
+
messages.append({"role": .., lm_output) # remember what was executed
413
+
action = parse_action(lm_output) # separate the action from output
414
+
if action =="exit":
415
+
break
416
+
output = execute_action(action)
417
+
messages.append({"role": ..., output)
410
418
```
411
419
412
420
## Let's make it more robust
@@ -599,4 +607,21 @@ We welcome contributions on GitHub to improve this guide!
599
607
600
608
You can find the source code on GitHub.
601
609
602
-
If you have questions or comments, please comment below. Note that GitHub issues are still preferred for bug reports and discussions about further developing this page.
610
+
If you have questions or comments, please comment below. Note that GitHub issues are still preferred for bug reports and discussions about further developing this page.
0 commit comments