Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

types.py 358 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  1. from typing import Literal, TypedDict
  2. __all__ = ["Question", "Evaluation"]
  3. class Question(TypedDict):
  4. question: str
  5. type: Literal["personal", "role-specific", "behavioral", "situational"]
  6. class Evaluation(TypedDict):
  7. evaluation: Literal["good", "average", "bad"]
  8. feedback: str | None
  9. reason: str | None
  10. samples: list[str] | None
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...