You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check the status of a deck building task using the task ID.
182
182
183
183
You can use the task ID received when you initiated the deck building process to check if the task is still processing, has completed successfully, or has failed. The response will include the current status of the task and the associated deck ID.
184
+
185
+
Args:
186
+
request (HttpRequest): The incoming HTTP request object, used to identify the user making the request.
187
+
path_params (Path[BuildDeckStatusIn]): The path parameters containing the task ID for which to check the status.
188
+
189
+
Returns:
190
+
BuildDeckStatusOut: An object containing the current status of the deck building task
Constructs a deck based on a natural language description.
173
177
This function uses an agent to interpret the description and perform the necessary operations to build the deck.
174
178
175
179
Args:
176
180
deck_id (UUID): The ID of the deck to construct.
181
+
build_task_id (UUID): The ID of the deck build task associated with this deck construction, used for tracking and updating the status of the build task.
177
182
deck_description (str): A natural language description of the desired deck, including its strategy, key cards, and any specific requirements or constraints.
178
183
generation_history (list[str]): A list of previous generation requests for the deck, used to inform the construction process.
179
184
available_set_codes (Optional[set[str]]): An optional set of available set codes to restrict the card selection to specific sets. If not provided, it will default to the current standard set codes.
message=f"Removed {number_to_remove}x '{card.name}' from deck '{deck.name}'. Deck now has {total_cards} total cards ({deck_card.quantity}x {card.name} remaining)."
0 commit comments