response type
Browse files- app.py +1 -1
- presentation.py +6 -6
app.py
CHANGED
@@ -23,7 +23,7 @@ def split_long_string(long_string, chunk_size=6000):
|
|
23 |
|
24 |
async def ppt_content(data):
|
25 |
agent = Agent(model,
|
26 |
-
|
27 |
system_prompt=(
|
28 |
"You are an expert in making power-point perssentation",
|
29 |
"Create 6 sliders",
|
|
|
23 |
|
24 |
async def ppt_content(data):
|
25 |
agent = Agent(model,
|
26 |
+
result_type=customClass.PPT,
|
27 |
system_prompt=(
|
28 |
"You are an expert in making power-point perssentation",
|
29 |
"Create 6 sliders",
|
presentation.py
CHANGED
@@ -9,12 +9,12 @@ class Presentation(BaseModel):
|
|
9 |
title: str = Field(
|
10 |
description="The main title of the slide. Should be concise and descriptive, summarizing the core idea of the slide. Avoid lengthy titles and focus on clarity."
|
11 |
)
|
12 |
-
subTitle: Optional[str] = Field(
|
13 |
-
|
14 |
-
)
|
15 |
-
author: Optional[str] = Field(
|
16 |
-
|
17 |
-
)
|
18 |
text: str = Field(
|
19 |
description="The detailed description or narrative content of the slide. This should include key information, explanations, or supporting arguments. Keep it concise yet informative to avoid overwhelming the audience."
|
20 |
)
|
|
|
9 |
title: str = Field(
|
10 |
description="The main title of the slide. Should be concise and descriptive, summarizing the core idea of the slide. Avoid lengthy titles and focus on clarity."
|
11 |
)
|
12 |
+
# subTitle: Optional[str] = Field(
|
13 |
+
# description="An optional subtitle for the slide, typically used on the first slide to provide context or additional information. It should complement the title and give more detail about the presentation topic."
|
14 |
+
# )
|
15 |
+
# author: Optional[str] = Field(
|
16 |
+
# description="The name of the author or presenter, typically included on the first slide. Useful for attributing the presentation to a specific individual or organization."
|
17 |
+
# )
|
18 |
text: str = Field(
|
19 |
description="The detailed description or narrative content of the slide. This should include key information, explanations, or supporting arguments. Keep it concise yet informative to avoid overwhelming the audience."
|
20 |
)
|