Generate Subtasks
Decompose a parent task into subtasks.
The SDK’s :class:GenerateSubtasksRequest enforces that exactly
one of (title, parent_context) is supplied, treating
whitespace-only strings as not-supplied. Pydantic runs that
validator when FastAPI parses the request body, so the handler
does not need to duplicate the check — a request that violates
the rule surfaces as 422 Unprocessable Entity.
Returns: Ordered list of proposed subtasks.
Documentation Index
Fetch the complete documentation index at: https://docs.pragmatiks.io/llms.txt
Use this file to discover all available pages before exploring further.
Body
Request body for the generate-subtasks assist.
Two mutually exclusive modes are supported:
- New task mode — supply
title(with optionaldescription) to generate subtasks for a proposed work item that does not yet exist on the board. - Existing task mode — supply
parent_context(the body of an already-created parent task) to generate subtasks beneath it.
Exactly one mode must be used per request: omit both fields and there is nothing to seed the assist with; provide both and the intended parent is ambiguous.
Attributes:
title: Title of the proposed work item, for new-task mode.
description: Detailed description of the proposed work item,
paired with title in new-task mode.
parent_context: Body of an already-created parent task, for
existing-task mode.
Response
Successful Response
Response body for the generate-subtasks assist.
Attributes: subtasks: Ordered list of proposed subtasks for the caller to review before persisting.