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 483 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
16
17
18
19
  1. from __future__ import annotations
  2. from typing import Optional
  3. from typing_extensions import Literal, Required, TypedDict
  4. __all__ = ["Question", "Evaluation"]
  5. class Question(TypedDict):
  6. question: Required[str]
  7. type: Required[Literal["personal", "role-specific", "behavioral", "situational"]]
  8. class Evaluation(TypedDict):
  9. evaluation: Required[Literal["good", "average", "bad"]]
  10. feedback: Optional[str]
  11. reason: Optional[str]
  12. samples: Optional[list[str]]
Tip!

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

Comments

Loading...