Skip to content

feat: Add AgentOps governance event exporter#18

Merged
nagasatish007 merged 2 commits into
mainfrom
feat/agentops-governance-export
Jul 16, 2026
Merged

feat: Add AgentOps governance event exporter#18
nagasatish007 merged 2 commits into
mainfrom
feat/agentops-governance-export

Conversation

@nagasatish007

Copy link
Copy Markdown
Contributor

Adds tealtiger.integrations.agentops module that exports governance decisions as AgentOps ActionEvents/ErrorEvents in the session timeline.

  • AgentOpsGovernanceReporter class with report() callback
  • ALLOW/MONITOR → ActionEvent, DENY → ErrorEvent
  • Full metadata in event params (risk_score, reason_codes, cost, PII count)
  • Includes tests and example
  • Tracks allow/deny counts

Closes #318

Pull Request

Description

Provide a clear and concise description of what this PR does.

Fixes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring
  • Test improvements

Changes Made

Testing

Describe the tests you ran to verify your changes:

  • Unit tests pass (pytest)
  • Type checking passes (mypy src)
  • Linting passes (ruff check src tests)
  • Manual testing performed
  • Added new tests for new functionality

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

If this PR introduces breaking changes, describe them here and provide migration instructions.

Screenshots (if applicable)

Add screenshots to help explain your changes.

Additional Notes

Add any other context about the PR here.

Adds tealtiger.integrations.agentops module that exports governance
decisions as AgentOps ActionEvents/ErrorEvents in the session timeline.

- AgentOpsGovernanceReporter class with report() callback
- ALLOW/MONITOR → ActionEvent, DENY → ErrorEvent
- Full metadata in event params (risk_score, reason_codes, cost, PII count)
- Includes tests and example
- Tracks allow/deny counts

Closes #318
Comment thread src/tealtiger/integrations/agentops.py Fixed
Comment thread src/tealtiger/integrations/agentops.py Fixed
Comment thread src/tealtiger/integrations/agentops.py Fixed
@nagasatish007
nagasatish007 merged commit 1e1eb31 into main Jul 16, 2026
9 of 24 checks passed
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.

1 participant