Skip to content

Commit df4f6ef

Browse files
committed
✨ Add logging instructions for agents in documentation
Each agent's logging namespace and CLI usage are now detailed.
1 parent 030b94b commit df4f6ef

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/src/content/docs/reference/scripts/agents.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,14 @@ We use the `system` parameter to configure the tools exposed to the LLM. In this
245245
```
246246

247247
This full source of this agent is defined in the [system.agent_github](/genaiscript/reference/scripts/system/#systemagent_github) system prompt.
248+
249+
## Logging
250+
251+
Each agent uses a `agent:<name>` [logging](/genaiscript/reference/scripts/logging) namespace
252+
to report debugging information.
253+
254+
To get logging from the cli, you can use the `DEBUG` environment variable to enable logging for a specific agent.
255+
256+
```sh
257+
DEBUG=agent:github* genascript run ...
258+
```

0 commit comments

Comments
 (0)