QueryEnhancer.get_intent_prediction:v0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import weave
import json
from typing import List
from typing import Dict
from typing import Any
from pydantic.main import BaseModel
from typing import Literal
from pydantic.fields import Field
completion_with_instructor = "<instructor.client.AsyncInstructor object at 0x28e4fa5d0>"
class Intent(BaseModel):
"""
Model representing an intent with a label and a reason.
"""
intent: Literal[
"financial_performance",
"operational_metrics",
"market_analysis",
"risk_assessment",
"strategic_initiatives",
"accounting_practices",
"management_insights",
"capital_structure",
"segment_analysis",