Skip to content
Discussion options

You must be logged in to vote

Hello!

Yes, it is, depends how you do it, for sure will leave things more clear. Let me give you an example:

class Chart(Contract):
classification: Literal["line", "bar", "pie"] = Field(description="The type of the chart")
description: str = Field(description="Description of the chart")
coordinates: List[XYCoordinate] = Field(description="The x-axis and y-axis present in the chart. Will be multiple")
gdp_variation: str = Field(description="Description of the gdp variation")

This will always give you better results

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tuffstuff9
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants