Skip to content

feat: rename webhook_triggers → agent_triggers, add AgentVFS, v0.4.0#1

Closed
bahattincinic wants to merge 1 commit into
mainfrom
feature/agent-triggers-and-vfs
Closed

feat: rename webhook_triggers → agent_triggers, add AgentVFS, v0.4.0#1
bahattincinic wants to merge 1 commit into
mainfrom
feature/agent-triggers-and-vfs

Conversation

@bahattincinic

Copy link
Copy Markdown
Member

Summary

Catches the SDK up with promptrails/monorepo#43:

  • client.webhook_triggersclient.agent_triggers. The trigger surface now spans generic webhook, Slack, Telegram, Microsoft Teams, WhatsApp Business, and cron schedules — calling it "webhook" was misleading. create() accepts source, source_config, and reply_config so callers can configure any of the six sources from one method.
  • New client.agent_vfs — per-agent Virtual Filesystem. list, read (with line_offset + line_limit), write (overwrite or append), stat, mkdir, move, copy, delete, grep, glob, usage. Files survive across executions and double as long-term memory.
  • AgentTrigger / AgentTriggerCreateResponse types gain source, source_config, reply_config. New AgentVFSFile / AgentVFSGrepMatch types.
  • Routes: /api/v1/webhook-triggers/api/v1/triggers; new /api/v1/agents/:agentId/vfs/*.

Version

0.3.00.4.0 (minor bump). Renaming the resource attribute is a breaking change for callers using client.webhook_triggers directly.

Test plan

  • uv run pytest — 31 passed
  • uv run ruff check promptrails — clean
  • Smoke test against a live trigger create with source=slack
  • Smoke test against the VFS write+read round-trip

Tag after merge

git checkout main && git pull
git tag v0.4.0 -m "v0.4.0 — agent triggers + virtual filesystem"
git push origin v0.4.0

🤖 Generated with Claude Code

Trigger surface on the platform now spans generic webhook, Slack,
Telegram, Microsoft Teams, WhatsApp Business, and cron schedules. The
SDK follows suit:

- WebhookTriggersResource → AgentTriggersResource (sync + async).
  client.webhook_triggers → client.agent_triggers. create() accepts
  source, source_config, and reply_config so callers can configure
  any of the six sources.
- New AgentVFSResource (sync + async) exposing the per-agent
  Virtual Filesystem: list, read (with line_offset/line_limit),
  write (overwrite or append), stat, mkdir, move, copy, delete,
  grep, glob, usage. client.agent_vfs.
- types.py: AgentTrigger / AgentTriggerCreateResponse pick up
  source, source_config, reply_config. New AgentVFSFile and
  AgentVFSGrepMatch types.
- Routes updated to /api/v1/triggers (was /api/v1/webhook-triggers)
  and /api/v1/agents/:agentId/vfs/*.

Minor version bump (0.3.0 → 0.4.0): renaming the resource class and
client attribute is a breaking change for anyone calling
client.webhook_triggers directly.

README capability table updated to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bahattincinic bahattincinic deleted the feature/agent-triggers-and-vfs branch May 21, 2026 11:14
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