-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12f543f
commit abf85c3
Showing
18 changed files
with
218 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
import pydantic | ||
|
||
from ..core.pydantic_utilities import IS_PYDANTIC_V2 | ||
from ..v2.types.chat_stream_event_type import ChatStreamEventType | ||
|
||
|
||
class CitationEndEvent(ChatStreamEventType): | ||
""" | ||
A streamed event which signifies a citation has finished streaming. | ||
""" | ||
|
||
index: typing.Optional[int] = None | ||
|
||
if IS_PYDANTIC_V2: | ||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 | ||
else: | ||
|
||
class Config: | ||
frozen = True | ||
smart_union = True | ||
extra = pydantic.Extra.allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
import pydantic | ||
|
||
from ..core.pydantic_utilities import IS_PYDANTIC_V2 | ||
from ..v2.types.chat_stream_event_type import ChatStreamEventType | ||
from .citation_start_event_delta import CitationStartEventDelta | ||
|
||
|
||
class CitationStartEvent(ChatStreamEventType): | ||
""" | ||
A streamed event which signifies a citation has been created. | ||
""" | ||
|
||
index: typing.Optional[int] = None | ||
delta: typing.Optional[CitationStartEventDelta] = None | ||
|
||
if IS_PYDANTIC_V2: | ||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 | ||
else: | ||
|
||
class Config: | ||
frozen = True | ||
smart_union = True | ||
extra = pydantic.Extra.allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
import pydantic | ||
|
||
from ..core.pydantic_utilities import IS_PYDANTIC_V2 | ||
from ..core.unchecked_base_model import UncheckedBaseModel | ||
from .citation_start_event_delta_message import CitationStartEventDeltaMessage | ||
|
||
|
||
class CitationStartEventDelta(UncheckedBaseModel): | ||
message: typing.Optional[CitationStartEventDeltaMessage] = None | ||
|
||
if IS_PYDANTIC_V2: | ||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 | ||
else: | ||
|
||
class Config: | ||
frozen = True | ||
smart_union = True | ||
extra = pydantic.Extra.allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
import pydantic | ||
|
||
from ..core.pydantic_utilities import IS_PYDANTIC_V2 | ||
from ..core.unchecked_base_model import UncheckedBaseModel | ||
from ..v2.types.citation import Citation | ||
|
||
|
||
class CitationStartEventDeltaMessage(UncheckedBaseModel): | ||
citations: typing.Optional[Citation] = None | ||
|
||
if IS_PYDANTIC_V2: | ||
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 | ||
else: | ||
|
||
class Config: | ||
frozen = True | ||
smart_union = True | ||
extra = pydantic.Extra.allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.