Skip to content

Commit 8339e37

Browse files
committed
fix testing
1 parent da32481 commit 8339e37

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

pythonkr_backend/curation/utils_trans.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,26 @@ def translate_rssitem(rss_item_id: int):
9595

9696
return translated_content
9797

98-
class PyCondersSource(BaseModel):
99-
title: str = Field(description="The title of curated article title")
100-
summary: str = Field(
101-
description="summary of curated article"
102-
)
103-
curated_source_url: str = Field(description="url of curated source")
104-
content_source_type: str = Field(description="type of curated contents in ‘sponsor’,’course’,’release’,’news’,’article’,’others’,’project’,’tutorial’,’event’ ")
105-
author: str = Field(description="author of curated article")
106-
107-
class PyCondersWeeklyResult(BaseModel):
108-
issue_number: str = Field(description="number of issue")
109-
published_date: date = Field(description="The published date of the weekly article")
110-
issues: list[PyCondersSource] = Field(description="issues of the newletters")
111-
112-
113-
system_prompt = "You are an AI assistant specialized in extracting core curated content from a given weekly newsletter URL and clearly separating each content item."
114-
115-
system_prompt = "You are an AI assistant specialized in extacting core curated content from a given weekly newsletter html and clearly separating each content item."
116-
117-
system_prompt = "You are an AI assistant specialized in extracting core curated content from a given weekly newsletter markdown and clearly separating each content item."
118-
agent = Agent("google-gla:gemini-2.5-flash-preview-04-17",
119-
system_prompt=system_prompt,
120-
output_type=PyCondersWeeklyResult)
98+
# class PyCondersSource(BaseModel):
99+
# title: str = Field(description="The title of curated article title")
100+
# summary: str = Field(
101+
# description="summary of curated article"
102+
# )
103+
# curated_source_url: str = Field(description="url of curated source")
104+
# content_source_type: str = Field(description="type of curated contents in ‘sponsor’,’course’,’release’,’news’,’article’,’others’,’project’,’tutorial’,’event’ ")
105+
# author: str = Field(description="author of curated article")
106+
#
107+
# class PyCondersWeeklyResult(BaseModel):
108+
# issue_number: str = Field(description="number of issue")
109+
# published_date: date = Field(description="The published date of the weekly article")
110+
# issues: list[PyCondersSource] = Field(description="issues of the newletters")
111+
#
112+
#
113+
# system_prompt = "You are an AI assistant specialized in extracting core curated content from a given weekly newsletter URL and clearly separating each content item."
114+
#
115+
# system_prompt = "You are an AI assistant specialized in extacting core curated content from a given weekly newsletter html and clearly separating each content item."
116+
#
117+
# system_prompt = "You are an AI assistant specialized in extracting core curated content from a given weekly newsletter markdown and clearly separating each content item."
118+
# agent = Agent("google-gla:gemini-2.5-flash-preview-04-17",
119+
# system_prompt=system_prompt,
120+
# output_type=PyCondersWeeklyResult)

0 commit comments

Comments
 (0)