Skip to content

Commit

Permalink
docs on custom staffold
Browse files Browse the repository at this point in the history
  • Loading branch information
aisi-inspect committed Oct 3, 2024
1 parent f82c66f commit 2b32d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/_tools-scaffold.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This does everything that default `generate()` does, save for an outer loop to c
def agent_loop():
async def solve(state: TaskState, generate: Generate):
model = get_model()
while True:
while not state.completed:
# call model
output = await model.generate(state.messages, state.tools)

Expand All @@ -43,6 +43,8 @@ def agent_loop():
return solve
```

The `state.completed` flag is automatically set to `False` if `max_messages` for the task is exceeded, so we check it at the top of the loop.

You can imagine several ways you might want to customise this loop:

1. Adding another termination condition for the output satisfying some criteria.
Expand Down
8 changes: 0 additions & 8 deletions docs/tools.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,6 @@ See the [Agents](#sec-agents) section for more details on how to build evaluatio

## Web Browser {#sec-web-browser}

::: {.callout-note apperance="\"simple:"}
Note that the web browser tools described below is currently only available in the development version of Inspect. You can install the development version with:

``` bash
pip install git+https://github.com/UKGovernmentBEIS/inspect_ai
```
:::

The web browser tools provids models with the ability to browse the web using a headless Chromium browser. Navigation, history, and mouse/keyboard interactions are all supported.

### Configuration
Expand Down

0 comments on commit 2b32d5b

Please sign in to comment.