Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aisi-inspect committed Oct 3, 2024
1 parent a630b5c commit 063b320
Show file tree
Hide file tree
Showing 12 changed files with 168 additions and 164 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e5d55f6d
fb91b253
3 changes: 2 additions & 1 deletion agents-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ <h3 class="anchored" data-anchor-id="custom-loop">Custom Loop</h3>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> agent_loop():</span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> <span class="cf">async</span> <span class="kw">def</span> solve(state: TaskState, generate: Generate):</span>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a> model <span class="op">=</span> get_model()</span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> <span class="cf">while</span> <span class="va">True</span>:</span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> <span class="cf">while</span> <span class="kw">not</span> state.completed:</span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> <span class="co"># call model</span></span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a> output <span class="op">=</span> <span class="cf">await</span> model.generate(state.messages, state.tools)</span>
<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a></span>
Expand All @@ -438,6 +438,7 @@ <h3 class="anchored" data-anchor-id="custom-loop">Custom Loop</h3>
<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> state</span>
<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> solve</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>The <code>state.completed</code> flag is automatically set to <code>False</code> if <code>max_messages</code> for the task is exceeded, so we check it at the top of the loop.</p>
<p>You can imagine several ways you might want to customise this loop:</p>
<ol type="1">
<li>Adding another termination condition for the output satisfying some criteria.</li>
Expand Down
167 changes: 82 additions & 85 deletions agents.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eval-logs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ <h3 class="anchored" data-anchor-id="reading-logs">Reading Logs</h3>
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"descPosition":"bottom","selector":".lightbox","loop":false,"openEffect":"zoom","closeEffect":"zoom"});
<script>var lightboxQuarto = GLightbox({"closeEffect":"zoom","selector":".lightbox","openEffect":"zoom","loop":false,"descPosition":"bottom"});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ <h2 class="anchored" data-anchor-id="learning-more">Learning More</h2>
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"loop":false,"selector":".lightbox","closeEffect":"zoom","openEffect":"zoom","descPosition":"bottom"});
<script>var lightboxQuarto = GLightbox({"descPosition":"bottom","selector":".lightbox","loop":false,"openEffect":"zoom","closeEffect":"zoom"});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
2 changes: 1 addition & 1 deletion log-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ <h3 class="unlisted anchored" data-anchor-id="other-notes">Other Notes</h3>
</div>
</div>
</footer>
<script>var lightboxQuarto = GLightbox({"selector":".lightbox","closeEffect":"zoom","openEffect":"zoom","loop":false,"descPosition":"bottom"});
<script>var lightboxQuarto = GLightbox({"selector":".lightbox","openEffect":"zoom","loop":false,"closeEffect":"zoom","descPosition":"bottom"});
(function() {
let previousOnload = window.onload;
window.onload = () => {
Expand Down
19 changes: 15 additions & 4 deletions search.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://inspect.ai-safety-institute.org.uk/index.html</loc>
<lastmod>2024-10-01T19:48:21.698Z</lastmod>
<lastmod>2024-10-02T17:04:20.184Z</lastmod>
</url>
<url>
<loc>https://inspect.ai-safety-institute.org.uk/tutorial.html</loc>
<lastmod>2024-10-02T13:33:25.803Z</lastmod>
<lastmod>2024-10-02T17:04:20.188Z</lastmod>
</url>
<url>
<loc>https://inspect.ai-safety-institute.org.uk/workflow.html</loc>
Expand All @@ -30,11 +30,11 @@
</url>
<url>
<loc>https://inspect.ai-safety-institute.org.uk/tools.html</loc>
<lastmod>2024-10-01T14:48:34.664Z</lastmod>
<lastmod>2024-10-03T13:53:29.232Z</lastmod>
</url>
<url>
<loc>https://inspect.ai-safety-institute.org.uk/agents.html</loc>
<lastmod>2024-10-02T13:33:25.803Z</lastmod>
<lastmod>2024-10-02T17:04:20.184Z</lastmod>
</url>
<url>
<loc>https://inspect.ai-safety-institute.org.uk/scorers.html</loc>
Expand Down
Loading

0 comments on commit 063b320

Please sign in to comment.