Skip to content

feat: add CrewAI APort task verification decorator (#30)#109

Open
lout33 wants to merge 1 commit into
aporthq:mainfrom
lout33:feat/crewai-task-decorator
Open

feat: add CrewAI APort task verification decorator (#30)#109
lout33 wants to merge 1 commit into
aporthq:mainfrom
lout33:feat/crewai-task-decorator

Conversation

@lout33
Copy link
Copy Markdown

@lout33 lout33 commented May 16, 2026

Summary

Closes #30 by adding a CrewAI-focused APort verification decorator under examples/agent-frameworks/crewai.

The integration includes:

  • @aport_verify decorator for sync and async task functions
  • A small dependency-free APortHTTPClient fallback
  • Support for static, callable, kwarg, or environment-derived agent IDs
  • Context builders for passing task-specific facts into APort verification
  • Clear APortVerificationError handling before task execution
  • A runnable example and README usage docs
  • Unit tests covering successful verification, deny responses, derived agent IDs, env agent IDs, strict/non-strict behavior, and async tasks

Files

  • examples/agent-frameworks/crewai/src/aport_verify.py — core decorator and client
  • examples/agent-frameworks/crewai/src/__init__.py — module init
  • examples/agent-frameworks/crewai/README.md — full documentation
  • examples/agent-frameworks/crewai/tests/test_aport_verify.py — 12 unit tests
  • examples/agent-frameworks/crewai/examples/basic_usage.py — runnable demo

Validation

PYTHONPATH=src python3 -m unittest discover -s tests  # 12 tests pass
python3 -m compileall src tests examples            # syntax OK
PYTHONPATH=src python3 examples/basic_usage.py      # demo runs

Bounty

This PR closes #30 which has a $10 USD Hacktoberfest bounty.


Bounty: $10 USD

- @aport_verify decorator for CrewAI task functions
- Sync and async task support
- Configurable agent ID resolution (static, kwarg, env var)
- Strict/non-strict verification modes
- context_builder for passing task-specific context
- Dependency-free APortHTTPClient (uses only stdlib)
- Unit tests and basic_usage example
- Closes aporthq#30 (0 bounty)
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.

[Hacktoberfest] CrewAI Task Verification Decorator

1 participant