Skip to content

[back-office-tasks] require procedure_id on task create#4

Merged
gmtuca merged 1 commit into
mainfrom
back-office-task-procedure-id
Jun 29, 2026
Merged

[back-office-tasks] require procedure_id on task create#4
gmtuca merged 1 commit into
mainfrom
back-office-task-procedure-id

Conversation

@gmtuca

@gmtuca gmtuca commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What

POST /back-office-tasks in the public API now starts a back-office task from an agent (agent_…) plus a procedure (proc_…) within it — previously the request carried only agent_id. This updates the SDK to match.

  • src/models/back-office-tasks.ts — add required procedure_id: string to CreateBackOfficeTaskParams; reword the agent_id doc to reflect the agent-owns-procedures model.
  • examples/back-office-tasks/index.ts — pass procedure_id; update example IDs from the legacy boagent_12345 to agent_12345 + proc_12345.

The response object (BackOfficeTask) is unchanged — the API does not return a procedure ID.

Testing

npm run typecheck, npm test (40 passing), and npm run format:check all pass.

🤖 Generated with Claude Code

The public API now starts a back-office task from an agent (`agent_…`) plus a
procedure (`proc_…`) within it, so add the required `procedure_id` field to
CreateBackOfficeTaskParams and update the example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmtuca gmtuca requested review from a team as code owners June 29, 2026 14:49
@gmtuca gmtuca merged commit 117de22 into main Jun 29, 2026
2 checks passed
@gmtuca gmtuca deleted the back-office-task-procedure-id branch June 29, 2026 14:51
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.

2 participants