Skip to content

docs: add Anthropic observe() demo to observe_basic example - #23

Merged
nagasatish007 merged 1 commit into
agentguard-ai:mainfrom
amanishimwe:docs/add-observe-anthropic-example
Aug 2, 2026
Merged

docs: add Anthropic observe() demo to observe_basic example#23
nagasatish007 merged 1 commit into
agentguard-ai:mainfrom
amanishimwe:docs/add-observe-anthropic-example

Conversation

@amanishimwe

Copy link
Copy Markdown
Contributor

Pull Request

Description

Extends examples/observe_basic.py with an Anthropic/Claude observe() demo using a mock client (no API key). Keeps the existing OpenAI demo and shows cost tracking plus freeze() / unfreeze() for both providers.

Fixes agentguard-ai/tealtiger#366

Type of Change

  • Documentation update

Changes Made

  • Added Anthropic mock client and demo_anthropic() to examples/observe_basic.py
  • Runs OpenAI and Anthropic demos from the same example script

Testing

  • Manual testing performed
  • Ran python examples/observe_basic.py (both sections: call → cost → blocked → unfreeze)
  • Ran ruff check examples/observe_basic.py

Checklist

  • My code follows the project's code style
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • [] New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Breaking Changes

None.

Screenshots (if applicable)

None.

Additional Notes

Docs/example-only change. No runtime API changes.

@amanishimwe

Copy link
Copy Markdown
Contributor Author

@nagasatish007, when you get time, kindly review this one as well. It fixes agentguard-ai/tealtiger#366.

@nagasatish007
nagasatish007 merged commit f80fa8c into agentguard-ai:main Aug 2, 2026
6 of 21 checks passed
@amanishimwe
amanishimwe deleted the docs/add-observe-anthropic-example branch August 2, 2026 18:36
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.

[observe] Add observe() example for Anthropic Claude

2 participants