Skip to content

Expose runtime-native AG-UI parsing helpers - #1192

Merged
kojiwakayama merged 1 commit into
mainfrom
feat/ag-ui-runtime-request-helpers
Apr 20, 2026
Merged

kojiwakayama merged 1 commit into
mainfrom
feat/ag-ui-runtime-request-helpers

Conversation

@kojiwakayama

Copy link
Copy Markdown
Contributor

Summary

  • add public helpers for parsing the canonical runtime AG-UI request contract
  • return client-facing 400 responses for malformed JSON and invalid runtime AG-UI payloads
  • document the runtime-native AG-UI helper surface alongside the existing AG-UI references

Verification

  • deno test --no-check --allow-all src/agent/runtime-ag-ui-contract.test.ts src/agent/ag-ui-host-support.test.ts
  • deno check src/agent/index.ts
  • deno fmt --check src/agent/runtime-ag-ui-contract.ts src/agent/runtime-ag-ui-contract.test.ts src/agent/index.ts docs/reference/agent-runtime-ag-ui-contract.md docs/reference/agent.md

This adds a public runtime-request parsing helper alongside the existing AG-UI host helpers so hosted runtimes can validate the canonical AG-UI request contract without re-implementing request parsing and malformed-body handling around the package surface.

Constraint: Keep the runtime AG-UI helper additive and aligned with the canonical runtime request schema
Rejected: Re-expand the higher-level AG-UI convenience handler instead | the remaining host need is the runtime-native request path, not the wrapper path
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Prefer adding focused runtime-native helpers over broad handler hooks when the host only needs schema parsing and validation reuse
Tested: deno test --no-check --allow-all src/agent/runtime-ag-ui-contract.test.ts src/agent/ag-ui-host-support.test.ts; deno check src/agent/index.ts; deno fmt --check src/agent/runtime-ag-ui-contract.ts src/agent/runtime-ag-ui-contract.test.ts src/agent/index.ts docs/reference/agent-runtime-ag-ui-contract.md docs/reference/agent.md
Not-tested: full repo verify suite outside the focused AG-UI/runtime-contract surface
@kojiwakayama
kojiwakayama enabled auto-merge (squash) April 20, 2026 16:19
@kojiwakayama
kojiwakayama merged commit 4b2352e into main Apr 20, 2026
17 checks passed
@kojiwakayama
kojiwakayama deleted the feat/ag-ui-runtime-request-helpers branch April 20, 2026 16:23
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