Build a human approval workflow with Google ADK and AgentOps tracking
.env
file in approval_agent/
directory:
GOOGLE_GENAI_USE_VERTEXAI=TRUE
and run gcloud auth application-default login
approval_agent/__init__.py
:
approval_agent/agent.py
to create your approval workflow:
approval_agent/__init__.py
- Module initialization with agent importapproval_agent/agent.py
- Complete workflow with 3 agents and AgentOps integrationapproval_agent/.env
- API keys for Google AI and AgentOpsagentops.init()
- Enables automatic instrumentationagentops.start_session()
- Begins tracking each workflow runagentops.end_session()
- Completes the session with status