| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
task/create is get-or-create by name, so reusing an existing name returns that task with its prior history rather than creating a new one. Document on the hand-written ADK entry point that name is optional: omit it (or make it unique) for a fresh task each call. Avoids accidental duplicate/stale tasks, especially in multi-agent delegation. Co-authored-by: Cursor <cursoragent@cursor.com>
| Back | FazBrowse Home | New Git URL |
Summary
task/create is get-or-create keyed on the task name, and name is optional. Reusing an existing name returns that task with its prior message history instead of creating a new one — a common cause of accidental duplicate / stale tasks, especially in multi-agent delegation where names are derived from prompts.
This documents that contract on adk.acp.create_task, the hand-written ADK entry point orchestrators call (the generated types//resources/ layer inherits the matching wording from the OpenAPI spec on the next Stainless regen, so this is the durable, hand-authored counterpart).
Change
Test plan
Made with Cursor
Greptile Summary
This PR clarifies the name parameter semantics for adk.acp.create_task via an expanded docstring. No behavior changes are introduced.
Confidence Score: 5/5
Docstring-only change with no runtime code modified — safe to merge.
The single changed line range is a docstring expansion that accurately describes the existing get-or-create behavior of the task/create endpoint. No logic, imports, or signatures are touched.
No files require special attention.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["adk.acp.create_task(name=...)"] --> B{name provided?} B -- No --> C["Always creates a fresh task"] B -- Yes --> D{Name already exists?} D -- No --> E["Creates a new task"] D -- Yes --> F["Returns existing task\n(with prior message history)"] C --> G[Task returned] E --> G F --> GReviews (2): Last reviewed commit: "docs: clarify task name is optional in a..." | Re-trigger Greptile