Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/check-vercel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Vercel Deployment Check

on:
deployment_status:

jobs:
vercel-pr-deployment:
runs-on: ubuntu-latest
steps:
- name: Check if deployment is for a PR
env:
PR_URLS: ${{ toJSON(github.event.deployment.pull_request_urls) }}
run: |
echo "Deployment pull_request_urls: $PR_URLS"

if [ "$PR_URLS" = "null" ] || [ "$PR_URLS" = "[]" ]; then
echo "⚠️ Deployment not associated with a PR, skipping job."
exit 0
fi

echo "✅ Deployment is associated with a PR, continuing..."

- name: Check deployment state
run: |
state="${{ github.event.deployment_status.state }}"
echo "Deployment state: $state"

case "$state" in
success)
echo "✅ Deployment succeeded"
;;
failure|error)
echo "❌ Deployment failed"
exit 1
;;
inactive)
echo "ℹ️ Deployment skipped or inactive"
;;
pending|queued)
echo "⏳ Deployment still in progress"
exit 0 # Optional: can re-trigger on next status update
;;
*)
echo "ℹ️ Unknown state: $state"
;;
esac

- name: Output deployment URL
run: |
url="${{ github.event.deployment_status.target_url }}"
echo "Deployment URL: $url"
2 changes: 2 additions & 0 deletions docs-website/docs/concepts/agents/state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ slug: "/state"
description: "`State` is a container for storing shared information during Agent and Tool execution. It provides a structured way to store messages during execution, share data between tools, and store intermediate results throughout an agent's workflow."
---

I love agents. They are fun.

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.

📝 [vale] reported by reviewdog 🐶
[Google.Contractions] Feel free to use 'they're' instead of 'They are'.


# State

`State` is a container for storing shared information during Agent and Tool execution. It provides a structured way to store messages during execution, share data between tools, and store intermediate results throughout an agent's workflow.
Expand Down
Loading