feat: rename webhook_triggers → agent_triggers, add AgentVFS, v0.4.0#1
Closed
bahattincinic wants to merge 1 commit into
Closed
feat: rename webhook_triggers → agent_triggers, add AgentVFS, v0.4.0#1bahattincinic wants to merge 1 commit into
bahattincinic wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Catches the SDK up with promptrails/monorepo#43:
client.webhook_triggers→client.agent_triggers. The trigger surface now spans generic webhook, Slack, Telegram, Microsoft Teams, WhatsApp Business, and cron schedules — calling it "webhook" was misleading.create()acceptssource,source_config, andreply_configso callers can configure any of the six sources from one method.client.agent_vfs— per-agent Virtual Filesystem.list,read(withline_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/AgentTriggerCreateResponsetypes gainsource,source_config,reply_config. NewAgentVFSFile/AgentVFSGrepMatchtypes./api/v1/webhook-triggers→/api/v1/triggers; new/api/v1/agents/:agentId/vfs/*.Version
0.3.0→0.4.0(minor bump). Renaming the resource attribute is a breaking change for callers usingclient.webhook_triggersdirectly.Test plan
uv run pytest— 31 passeduv run ruff check promptrails— cleansource=slackTag after merge
🤖 Generated with Claude Code