Skip to content

Add expenses Google ADK agent example (TypeScript) - #33

Open
Collin-Park wants to merge 1 commit into
Workday:mainfrom
Collin-Park:expenses-google-adk-agent
Open

Collin-Park wants to merge 1 commit into
Workday:mainfrom
Collin-Park:expenses-google-adk-agent

Conversation

@Collin-Park

Copy link
Copy Markdown

What this PR adds or changes

Adds examples/expenses-google-adk-agent: a buildable Google ADK (TypeScript) Custom Agent, served over A2A, for the Workday custom-agent Early Access program. It runs model inference, calls Workday tools over MCP, and stores sessions through Workday Agent Harness, using the credentials that arrive on each turn's request headers. The sample agent card registers one expenses skill with its Agent Ready Tools.

Checklist for new or changed examples

  • The example lives entirely in its own folder under examples/
  • node scripts/validate-examples.mjs --check passes (valid example.json, README present, index table in sync)
  • The README says what the artifact is, how to use it, and what to change before deploying it (the "Before you deploy" section)
  • No credentials, tenant names, or real personal data anywhere in the folder
  • node scripts/audit-examples.mjs --changed passes, or the findings it reports are explained below (see docs/EXAMPLE_BEST_PRACTICES.md)

Anything reviewers should know?

  • This is TypeScript, so Arcane Auditor does not scan it; the hub rules pass locally with no findings. npm ci, npm run build, and npm test (60 unit tests, no network calls) pass locally.
  • type is Reference, the nearest listed type for runnable agent code.
  • The tool WIDs in wd_agent_card.json are the same values that MCP Explorer publishes.

🤖 Generated with Claude Code

A buildable Google ADK (TypeScript) Custom Agent served over A2A, for the
Workday custom-agent Early Access program. It runs model inference, calls
Workday tools over MCP, and stores sessions through Workday Agent Harness,
with the credentials that arrive on each turn's request headers.

- src/: the agent, the Agent Harness inference adapter, the MCP toolset
  (tool list cached per tenant, no call without a token), the session
  service (write-through with an ordered retry queue), and a /dev/urandom
  ID provider for agents that start from a process snapshot.
- 60 unit tests (node:test); no network calls.
- wd_agent_card.json with the expenses skill and its Workday tools;
  appspec.yaml for the Workday build.
- README with setup, configuration, and a local test with a stub.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

Example audit

Audited examples/expenses-google-adk-agent. No findings. Thank you for a clean submission.

Run it yourself: ./scripts/install-arcane.sh once, then node scripts/audit-examples.mjs --changed. Rule explanations and fixes: docs/EXAMPLE_BEST_PRACTICES.md.

This branch has not been deployed

No deployments
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