Skip to content

docs: add middleware post - #997

Merged
necatiozmen merged 2 commits into
mainfrom
add-middleware-post
Jan 28, 2026
Merged

necatiozmen merged 2 commits into
mainfrom
add-middleware-post

Conversation

@necatiozmen

@necatiozmen necatiozmen commented Jan 28, 2026 •

Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

What is the new behavior?

fixes (issue)

Notes for reviewers


Summary by cubic

Added a blog post on Agent Middleware in VoltAgent that shows how to intercept and control agent input/output before guardrails and hooks, with setup examples, execution order, per-call usage, retry behavior, and limitations to help sanitize inputs, validate outputs, and trigger retries. Also updated the docs navbar label to "VoltAgent Framework".

Written for commit 48c5f67. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Agent Middleware guide covering setup options, API behavior, execution order, streaming and retry semantics, and common usage patterns with examples.
  • Style
    • Renamed a documentation tab label from "VoltAgent" to "VoltAgent Framework" in the site navigation.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot

changeset-bot Bot commented Jan 28, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 48c5f67

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ghost

This comment has been minimized.

@coderabbitai

coderabbitai Bot commented Jan 28, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

New documentation: a blog post describing the VoltAgent Agent Middleware feature — interception points, execution order, agent-level vs per-call setup, middleware API (input/output/abort/retry), streaming considerations, and TypeScript examples.

Changes

Cohort / File(s) Summary
Agent Middleware Documentation
website/blog/2026-01-28-agent-middleware/index.md
Added new blog post (+161 lines) documenting Agent Middleware: interception points around guardrails/hooks, execution order, agent-level and per-call setup paradigms, middleware API (input/output contexts, abort/retry semantics), streaming gotchas, and TypeScript examples (normalization, signatures, JSON validation with retries).
Navbar label update
website/src/components/navbar/index.tsx
Renamed documentation tab label from VoltAgent to VoltAgent Framework (semantic UI text change only).

Sequence Diagram(s)

(Skipped — change set is documentation and a single UI label change; no new multi-component control flow implemented in this diff.)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • PR #948 — Related navbar/docs tab adjustments; touches website/src/components/navbar/index.tsx similarly.
  • PR #963 — Implements the Agent Middleware feature documented in the new blog post.

Poem

🐇 I hopped through hooks and streams tonight,

input, output, retry in sight,
Typescript whispers, middleware true,
a rabbit's wink — the agent's new view. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs: add middleware post' is concise and clearly describes the primary change - adding documentation about Agent Middleware. It follows the commit convention and accurately summarizes the main changeset.
Description check ✅ Passed The PR description is mostly complete with the required checklist items addressed. The commit message guideline is marked as followed, docs updated is checked, and an auto-generated summary explains the middleware post and navbar label update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jan 28, 2026 •

Copy link
Copy Markdown

Deploying voltagent with  Cloudflare Pages  Cloudflare Pages

Latest commit: 48c5f67
Status: ✅  Deploy successful!
Preview URL: https://fa279b02.voltagent.pages.dev
Branch Preview URL: https://add-middleware-post.voltagent.pages.dev

View logs

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@necatiozmen
necatiozmen merged commit 073340a into main Jan 28, 2026
22 checks passed
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