Skip to content

Commit 92a7a10

Browse files
committed
Add giscus, analytics
1 parent 518b383 commit 92a7a10

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

docs/index.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,14 @@ messages = [{
407407
"content": "List the files in the current directory"
408408
}]
409409

410+
while True:
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)
410418
```
411419

412420
## Let's make it more robust
@@ -599,4 +607,21 @@ We welcome contributions on GitHub to improve this guide!
599607

600608
You can find the source code on GitHub.
601609

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.
611+
612+
## Comments
613+
614+
<script src="https://giscus.app/client.js"
615+
data-repo="swe-agent/minimal-agent-tutorial"
616+
data-repo-id="R_kgDOQaid2A"
617+
data-mapping="number"
618+
data-term="1"
619+
data-reactions-enabled="1"
620+
data-emit-metadata="0"
621+
data-input-position="top"
622+
data-theme="preferred_color_scheme"
623+
data-lang="en"
624+
data-loading="lazy"
625+
crossorigin="anonymous"
626+
async>
627+
</script>

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ extra:
8181
social:
8282
- icon: fontawesome/brands/github
8383
link: https://github.com/swe-agent/mini-swe-agent
84+
analytics:
85+
provider: google
86+
property: G-SG2NC1GDRD

0 commit comments

Comments
 (0)