vanna.types
@dataclass
class
Status:
@dataclass
class
StatusWithId:
@dataclass
class
QuestionList:
QuestionList(questions: List[FullQuestionDocument])
questions: List[FullQuestionDocument]
@dataclass
class
FullQuestionDocument:
FullQuestionDocument( id: QuestionId, question: Question, answer: SQLAnswer | None, data: DataResult | None, plotly: PlotlyResult | None)
id: QuestionId
question: Question
answer: SQLAnswer | None
data: DataResult | None
plotly: PlotlyResult | None
@dataclass
class
QuestionSQLPair:
@dataclass
class
Organization:
Organization( name: str, user: str | None, connection: Connection | None)
connection: Connection | None
@dataclass
class
OrganizationList:
@dataclass
class
QuestionStringList:
@dataclass
class
Visibility:
@dataclass
class
UserEmail:
@dataclass
class
NewOrganization:
@dataclass
class
NewOrganizationMember:
@dataclass
class
UserOTP:
@dataclass
class
ApiKey:
@dataclass
class
QuestionId:
@dataclass
class
Question:
@dataclass
class
QuestionCategory:
@dataclass
class
AccuracyStats:
@dataclass
class
Followup:
@dataclass
class
QuestionEmbedding:
QuestionEmbedding(question: Question, embedding: List[float])
question: Question
@dataclass
class
Connection:
@dataclass
class
SQLAnswer:
@dataclass
class
Explanation:
@dataclass
class
DataResult:
@dataclass
class
PlotlyResult:
@dataclass
class
WarehouseDefinition:
WarehouseDefinition(name: str, tables: List[TableDefinition])
tables: List[TableDefinition]
@dataclass
class
TableDefinition:
TableDefinition( schema_name: str, table_name: str, ddl: str | None, columns: List[ColumnDefinition])
columns: List[ColumnDefinition]
@dataclass
class
ColumnDefinition:
@dataclass
class
Diagram:
@dataclass
class
StringData:
@dataclass
class
DataFrameJSON:
@dataclass
class
TrainingData:
@dataclass
class
TrainingPlanItem:
class
TrainingPlan:
A class representing a training plan. You can see what's in it, and remove items from it that you don't want trained.
Example:
plan = vn.get_training_plan()
plan.get_summary()
TrainingPlan(plan: List[TrainingPlanItem])