Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions asknews_sdk/api/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def get_deep_news(
presence_penalty: Optional[int] = 0,
frequency_penalty: Optional[int] = 0,
user: Optional[str] = None,
engine: Literal["v1", "v1.5", "v2.0"] = "v1",
engine: Literal["v1", "v1.5", "v2.0"] = "v1.5",
only_cited_sources: bool = True,
max_parallel_tool_calls: int = 1,
enable_source_pruning: bool = False,
Expand Down Expand Up @@ -646,7 +646,7 @@ def get_deep_news(
presence_penalty: Optional[int] = 0,
frequency_penalty: Optional[int] = 0,
user: Optional[str] = None,
engine: Literal["v1", "v1.5"] = "v1",
engine: Literal["v1", "v1.5"] = "v1.5",
only_cited_sources: bool = True,
max_parallel_tool_calls: int = 1,
enable_source_pruning: bool = False,
Expand Down Expand Up @@ -721,7 +721,7 @@ def get_deep_news(
presence_penalty: Optional[int] = 0,
frequency_penalty: Optional[int] = 0,
user: Optional[str] = None,
engine: Literal["v1", "v1.5", "v2.0"] = "v1",
engine: Literal["v1", "v1.5", "v2.0"] = "v1.5",
only_cited_sources: bool = True,
max_parallel_tool_calls: int = 1,
enable_source_pruning: bool = False,
Expand Down Expand Up @@ -1378,7 +1378,7 @@ async def get_deep_news(
presence_penalty: Optional[int] = 0,
frequency_penalty: Optional[int] = 0,
user: Optional[str] = None,
engine: Literal["v1", "v1.5", "v2.0"] = "v1",
engine: Literal["v1", "v1.5", "v2.0"] = "v1.5",
only_cited_sources: bool = True,
max_parallel_tool_calls: int = 1,
enable_source_pruning: bool = False,
Expand Down Expand Up @@ -1416,7 +1416,7 @@ async def get_deep_news(
presence_penalty: Optional[int] = 0,
frequency_penalty: Optional[int] = 0,
user: Optional[str] = None,
engine: Literal["v1", "v1.5"] = "v1",
engine: Literal["v1", "v1.5"] = "v1.5",
only_cited_sources: bool = True,
max_parallel_tool_calls: int = 1,
enable_source_pruning: bool = False,
Expand Down Expand Up @@ -1491,7 +1491,7 @@ async def get_deep_news(
presence_penalty: Optional[int] = 0,
frequency_penalty: Optional[int] = 0,
user: Optional[str] = None,
engine: Literal["v1", "v1.5", "v2.0"] = "v1",
engine: Literal["v1", "v1.5", "v2.0"] = "v1.5",
only_cited_sources: bool = True,
max_parallel_tool_calls: int = 1,
enable_source_pruning: bool = False,
Expand Down
7 changes: 5 additions & 2 deletions asknews_sdk/dto/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ class DeepNewsParams(BaseModel):
description="Whether to provide geo coordinates to the agent. Defaults to False.",
)
engine: Literal["v1", "v1.5"] = Field(
default="v1",
description=("Legacy vs new DeepNews engine"),
default="v1.5",
description=(
"DeepNews engine for the alert's research. 'v1' is deprecated and behaves like "
"'v1.5'; both run the same research agent."
),
)
max_parallel_tool_calls: int = Field(
default=1,
Expand Down
12 changes: 8 additions & 4 deletions asknews_sdk/dto/deepnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,16 @@ class CreateDeepNewsRequest(BaseSchema):
Optional[Literal["v1", "v1.5", "v2.0"]],
Field(
title=(
"Which engine to use for the DeepNews response. 'v1' is the original engine, while "
"'v1.5' is an improved engine with better performance and capabilities. "
"Check API reference for more details on the differences between the engines."
"Which engine to use for the DeepNews response. All engines run the same "
"research agent and differ only in how a stream carries thinking and tool use: "
"'v1.5' streams them as inline tags, <think> </think> for thinking and one tag "
"per tool named for the tool (for example <asknews_search> </asknews_search>), "
"'v2.0' as typed content_block_start, content_block_delta and "
"content_block_stop events in Anthropic's streaming style. 'v1' is deprecated "
"and behaves like 'v1.5'."
)
),
] = "v1"
] = "v1.5"
max_parallel_tool_calls: Annotated[
Optional[int],
Field(
Expand Down
Loading