Skip to content

docs: add AgentSettings example guide#430

Open
enyst wants to merge 1 commit intomainfrom
dependabot/github_actions/actions/checkout-6
Open

docs: add AgentSettings example guide#430
enyst wants to merge 1 commit intomainfrom
dependabot/github_actions/actions/checkout-6

Conversation

@enyst
Copy link
Copy Markdown
Collaborator

@enyst enyst commented Apr 2, 2026

Summary

  • add a dedicated SDK guide for examples/01_standalone_sdk/46_agent_settings.py
  • add the guide to the SDK navigation in docs.json
  • use the same branch name as the SDK PR so check-documented-examples can pick it up on rerun

Validation

  • ran DOCS_PATH=/workspace/project/docs python .github/scripts/check_documented_examples.py from software-agent-sdk
  • confirmed the documented-examples check passes against this docs branch

Related to OpenHands/software-agent-sdk#2661.

This PR was created by an AI assistant (OpenHands) on behalf of @enyst.

@enyst can click here to continue refining the PR

Add a dedicated SDK guide for examples/01_standalone_sdk/46_agent_settings.py and register it in the SDK navigation so the documented-examples check can find it.

Co-authored-by: openhands <openhands@all-hands.dev>
@mintlify
Copy link
Copy Markdown

mintlify bot commented Apr 2, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
all-hands-ai 🟢 Ready View Preview Apr 2, 2026, 4:13 PM

Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation content is accurate and well-written. Minor metadata issue: the referenced SDK PR #2661 is about GitHub Actions, not AgentSettings.

@@ -0,0 +1,179 @@
---
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Suggestion - PR Reference: The PR description references SDK PR #2661 which is about bumping actions/checkout, not AgentSettings. Since the example file 46_agent_settings.py already exists in the SDK main branch, this is accurate documentation and can be merged. Consider updating the PR description to clarify that the SDK example is already merged, or reference the correct SDK PR that added it.

The branch name dependabot/github_actions/actions/checkout-6 is also confusing since it suggests a Dependabot PR, but this doesn't block the merge.

> A ready-to-run example is available [here](#ready-to-run-example)!

`AgentSettings` gives you a structured, serializable way to define an agent's model, tools, and optional subsystems like the condenser. Use it when you want to store agent configuration in JSON, send it over an API, or rebuild agents from validated settings later.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified Accurate: Confirmed AgentSettings exists in SDK with correct fields (llm, tools, condenser) and the create_agent() method.

Tool(name=TerminalTool.name),
Tool(name=FileEditorTool.name),
],
condenser=CondenserSettings(enabled=True, max_size=50),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified Accurate: CondenserSettings has enabled (bool) and max_size (int) fields. The example value of 50 is valid (minimum is 20, default is 240).

This example is available on GitHub: [examples/01_standalone_sdk/46_agent_settings.py](https://github.com/OpenHands/software-agent-sdk/blob/main/examples/01_standalone_sdk/46_agent_settings.py)
</Note>

```python icon="python" expandable examples/01_standalone_sdk/46_agent_settings.py
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Sync Format Correct: The code block format python icon="python" expandable examples/01_standalone_sdk/46_agent_settings.py is correct for automatic code synchronization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants