Skip to content

feat: GitOps workflow for WebSearch ADK Agent - #15

Open
ypeng1 wants to merge 8 commits into
digitalocean:mainfrom
ypeng1:main
Open

feat: GitOps workflow for WebSearch ADK Agent#15
ypeng1 wants to merge 8 commits into
digitalocean:mainfrom
ypeng1:main

Conversation

@ypeng1

@ypeng1 ypeng1 commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR adds CI validation for the WebSearch ADK agent and updates the WebSearch template for LangChain 0.3.x compatibility.

Changes

1. Reusable GitHub Action for ADK Agent Validation

  • New action: .github/actions/run-adk-agent
    • Runs gradient agent run to validate that an ADK agent starts and is reachable at http://localhost:8080
    • Supports configurable working-directory, python-version, and API keys
    • Uses DIGITALOCEAN_INFERENCE_KEY for LLM calls; optional OPENAI_API_KEY for RAG embeddings
  • Workflow: .github/workflows/validate-websearch.yml
    • Runs on PRs that touch WebSearch/** and on workflow_dispatch
    • Uses the new action to validate the WebSearch agent

2. Composite Action Fix

  • Added required shell: bash to run steps in the composite action for correct execution.

3. LangChain 0.3.x Compatibility (WebSearch)

  • Dependencies (WebSearch/requirements.txt): Pinned to LangChain 0.3.x for compatibility with langchain-gradient.
  • Agent implementation (WebSearch/main.py): Switched to langgraph.prebuilt.create_react_agent for LangChain 0.3.x support.

Testing

  • WebSearch agent validated via the new GitHub Action workflow.
  • Requires DIGITALOCEAN_INFERENCE_KEY in repo secrets for CI to pass.

ypeng1 and others added 8 commits March 17, 2026 18:24
Add reusable GitHub Action for ADK agent validation (gradient agent run)
Fix composite action: add required shell property to run steps
Fix langchain deps: use 0.3.x stack for langchain-gradient compatibility
Use langgraph create_react_agent for langchain 0.3.x compatibility
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