File size: 3,440 Bytes
b623e6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
json_schema = {
    "idea1":{
        "idea": "Display the first video idea as it is.",
        "mapped_budget_range": "The best suitable budget range from budget tiers schema. Include the price range mentioned too.", 
        "budget_label": "The best fit budget label from the budget tiers schema.",
        "justification": "Clean and precise reason why this idea can be mapped in this budget range and budget label.",
        "recommended_team_and_tools": "Display the cost detailing by deeply analyzing the cost table. You have to give a clear response that which portion needs how much money. Remember, the cost detailing don't have to exceed the fitted budget range."
   },

    "idea2":{
        "idea": "Display the second video idea as it is.",
        "mapped_budget_range": "The best suitable budget range from budget tiers schema. Include the price range mentioned too.", 
        "budget_label": "The best fit budget label from the budget tiers schema.",
        "justification": "Clean and precise reason why this idea can be mapped in this budget range and budget label.",
        "recommended_team_and_tools": "Display the cost detailing by deeply analyzing the cost table. You have to give a clear response that which portion needs how much money. Remember, the cost detailing don't have to exceed the fitted budget range."
   },

    "idea3":{
        "idea": "Display the third video idea as it is.",
        "mapped_budget_range": "The best suitable budget range from budget tiers schema. Include the price range mentioned too.", 
        "budget_label": "The best fit budget label from the budget tiers schema.",
        "justification": "Clean and precise reason why this idea can be mapped in this budget range and budget label.",
        "recommended_team_and_tools": "Display the cost detailing by deeply analyzing the cost table. You have to give a clear response that which portion needs how much money. Remember, the cost detailing don't have to exceed the fitted budget range."
   },

    "idea4":{
        "idea": "Display the fourth video idea as it is.",
        "mapped_budget_range": "The best suitable budget range from budget tiers schema. Include the price range mentioned too.", 
        "budget_label": "The best fit budget label from the budget tiers schema.",
        "justification": "Clean and precise reason why this idea can be mapped in this budget range and budget label.",
        "recommended_team_and_tools": "Display the cost detailing by deeply analyzing the cost table. You have to give a clear response that which portion needs how much money. Remember, the cost detailing don't have to exceed the fitted budget range."
   },
}

from pydantic import BaseModel, Field

class IdeaMapping(BaseModel):
    idea: str = Field(..., description="The video idea as it is.")
    mapped_budget_range: str = Field(..., description="Best suitable budget range from budget tiers schema. Include price range.")
    budget_label: str = Field(..., description="Best fit budget label from the budget tiers schema.")
    justification: str = Field(..., description="Reason why this idea fits in the given budget.")
    recommended_team_and_tools: str = Field(..., description="Detailed cost breakdown. Must not exceed budget.")

class VideoIdeasBudgetSchema(BaseModel):
    ideas: list[IdeaMapping] = Field(..., description="List of 4 video ideas mapped with budget, justification, and cost breakdown.")