diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d940b600..87d3d84c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.55.0" + ".": "0.56.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index fa5ea03f..9260ad3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 102 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-7f89d003ee5886a49dcba4317709b3631185a517c455e0dbf12130dadc1a73c3.yml -openapi_spec_hash: b6057ce27ebb04cdd19c0f006774ce65 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-bcaf63c0b7413453485a405e30a5d5b82f4cb29949cc0ba7e0af24fc5a49ea36.yml +openapi_spec_hash: 0f50b7862d9981f3837865b7e971bea7 config_hash: ff20af11692df5be71f1ef46d41ef365 diff --git a/CHANGELOG.md b/CHANGELOG.md index 20628def..d2babd15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.56.0 (2026-07-31) + +Full Changelog: [v0.55.0...v0.56.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.55.0...v0.56.0) + +### Features + +* **api:** api update ([6c38bfb](https://github.com/cooper-square-technologies/profound-python-sdk/commit/6c38bfbb3d9e564499611a33396c310d69e375e4)) + ## 0.55.0 (2026-07-30) Full Changelog: [v0.54.0...v0.55.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.54.0...v0.55.0) diff --git a/pyproject.toml b/pyproject.toml index 9c36160a..0b776b8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "profound" -version = "0.55.0" +version = "0.56.0" description = "The official Python library for the profound API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/profound/_version.py b/src/profound/_version.py index 08b468b7..0a80bd3b 100644 --- a/src/profound/_version.py +++ b/src/profound/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "profound" -__version__ = "0.55.0" # x-release-please-version +__version__ = "0.56.0" # x-release-please-version diff --git a/src/profound/types/prompt_answers_v2_response.py b/src/profound/types/prompt_answers_v2_response.py index 143aa83a..0b8bdda2 100644 --- a/src/profound/types/prompt_answers_v2_response.py +++ b/src/profound/types/prompt_answers_v2_response.py @@ -6,7 +6,13 @@ from .._models import BaseModel -__all__ = ["PromptAnswersV2Response", "Data", "DataCitationDetail", "DataModel", "Info"] +__all__ = ["PromptAnswersV2Response", "Data", "DataCitationDetail", "DataCitationDetailGroup", "DataModel", "Info"] + + +class DataCitationDetailGroup(BaseModel): + group_id: int + + group_position: int class DataCitationDetail(BaseModel): @@ -24,6 +30,10 @@ class DataCitationDetail(BaseModel): first_cited_at: Optional[str] = None + groups: Optional[List[DataCitationDetailGroup]] = None + + positions: Optional[List[int]] = None + text: Optional[str] = None @@ -44,6 +54,12 @@ class Data(BaseModel): analysis_types: Optional[List[str]] = None citation_details: Optional[List[DataCitationDetail]] = None + """Citation metadata. + + `positions` identify citation locations in the answer text. Each `groups` entry + represents a rendered citation pill; `group_position` is the source's position + within that pill. + """ citations: Optional[List[str]] = None diff --git a/src/profound/types/prompt_stream_answers_v2_response.py b/src/profound/types/prompt_stream_answers_v2_response.py index d3a30a6e..17565563 100644 --- a/src/profound/types/prompt_stream_answers_v2_response.py +++ b/src/profound/types/prompt_stream_answers_v2_response.py @@ -7,7 +7,14 @@ from .._models import BaseModel -__all__ = ["PromptStreamAnswersV2Response", "AnswersV2Info", "AnswerRow", "AnswerRowCitationDetail", "AnswerRowModel"] +__all__ = [ + "PromptStreamAnswersV2Response", + "AnswersV2Info", + "AnswerRow", + "AnswerRowCitationDetail", + "AnswerRowCitationDetailGroup", + "AnswerRowModel", +] class AnswersV2Info(BaseModel): @@ -50,6 +57,12 @@ def __getattr__(self, attr: str) -> object: ... __pydantic_extra__: Dict[str, object] +class AnswerRowCitationDetailGroup(BaseModel): + group_id: int + + group_position: int + + class AnswerRowCitationDetail(BaseModel): clean_url: str @@ -65,6 +78,10 @@ class AnswerRowCitationDetail(BaseModel): first_cited_at: Optional[str] = None + groups: Optional[List[AnswerRowCitationDetailGroup]] = None + + positions: Optional[List[int]] = None + text: Optional[str] = None @@ -82,6 +99,12 @@ class AnswerRow(BaseModel): analysis_types: Optional[List[str]] = None citation_details: Optional[List[AnswerRowCitationDetail]] = None + """Citation metadata. + + `positions` identify citation locations in the answer text. Each `groups` entry + represents a rendered citation pill; `group_position` is the source's position + within that pill. + """ citations: Optional[List[str]] = None