Replace PlanModel using the __doc__ of a plan with using Annotated pydantic fields #644
Labels
enhancement
New feature or request
rest api
Potential REST API changes
worker
Relates to worker code
blueapi controller plans
returns a description of the plans that are available in the context. Currently this comes from the docstring of the plan function. This should get also/instead(?) the description of the Pydantic model that is constructed, including information about the fields of the plan: defaults, types, limits etc.Using
Annotated
allows us to have this information presented as part of the json schema, and reduce the amount of information required in the docstring.The text was updated successfully, but these errors were encountered: