Skip to content

Commit ec1363c

Browse files
Merge pull request #36 from argszero/docs-adapter-audit-log
docs: state that the Session audit log must live outside the adapter
2 parents f79aa90 + 4493bd1 commit ec1363c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎docs/framework/adapter.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ for call in message["tool_calls"]: # a chat-completions tu
157157
coroutine, `agents()` and `skills()` give the other exports. Resources a tool may receive through its reserved
158158
`_resources` parameter are bound at construction: `deployment=` (a host.json or its dict), `learning_material=`,
159159
`evidence=` (a record directory), or any mapping under `resources=`. `audit_log=` writes one JSON line per call,
160-
the same record `hermit serve` writes. The [task interface](task.md) leaves host integration to the
161-
pipeline; it does not automatically implement every export.
160+
the same record `hermit serve` writes; the log must live outside the adapter directory, whose files the Trainer
161+
keeps under version control, and `Session` refuses a path inside it. The [task interface](task.md) leaves host
162+
integration to the pipeline; it does not automatically implement every export.
162163

163164
Outside a run's rollout sandbox (a production program, say), `Session(adapter, sandbox=True)` keeps the adapter's code
164165
out of the program: the tools run in a `hermit serve` inside a sandbox (no network, the adapter read-only,

0 commit comments

Comments
 (0)