athena-intelligence 0.1.7__py3-none-any.whl → 0.1.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. athena/__init__.py +1 -265
  2. athena/core/client_wrapper.py +1 -1
  3. athena/types/__init__.py +0 -270
  4. {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.8.dist-info}/METADATA +1 -1
  5. athena_intelligence-0.1.8.dist-info/RECORD +28 -0
  6. athena/types/agent_chat_request.py +0 -31
  7. athena/types/agent_chat_request_wait.py +0 -28
  8. athena/types/ai_message.py +0 -35
  9. athena/types/ai_message_content_item.py +0 -5
  10. athena/types/api_message_submitted.py +0 -36
  11. athena/types/append_final_msg_tokens_request.py +0 -29
  12. athena/types/append_msg_tokens_request.py +0 -29
  13. athena/types/attachment.py +0 -32
  14. athena/types/audio_request.py +0 -29
  15. athena/types/base_message.py +0 -37
  16. athena/types/base_message_content_item.py +0 -5
  17. athena/types/batch_response_metadata.py +0 -33
  18. athena/types/callback_event.py +0 -142
  19. athena/types/callbacks.py +0 -5
  20. athena/types/chart_request.py +0 -31
  21. athena/types/chat_fireworks_input.py +0 -9
  22. athena/types/chat_fireworks_input_item.py +0 -76
  23. athena/types/chat_fireworks_output.py +0 -76
  24. athena/types/chat_generation.py +0 -35
  25. athena/types/chat_message.py +0 -35
  26. athena/types/chat_message_content_item.py +0 -5
  27. athena/types/chat_open_ai_input.py +0 -9
  28. athena/types/chat_open_ai_input_item.py +0 -76
  29. athena/types/chat_open_ai_output.py +0 -76
  30. athena/types/chat_prompt_value_concrete.py +0 -35
  31. athena/types/chat_prompt_value_concrete_messages_item.py +0 -76
  32. athena/types/content.py +0 -7
  33. athena/types/create_room_request.py +0 -28
  34. athena/types/delete_room_request.py +0 -28
  35. athena/types/document.py +0 -34
  36. athena/types/document_webhook_payload.py +0 -33
  37. athena/types/email_data.py +0 -40
  38. athena/types/envelope.py +0 -38
  39. athena/types/error.py +0 -34
  40. athena/types/forecast_request.py +0 -31
  41. athena/types/function_message.py +0 -35
  42. athena/types/function_message_content_item.py +0 -5
  43. athena/types/generate_conversation_title_request.py +0 -29
  44. athena/types/generate_recommendation_request.py +0 -33
  45. athena/types/generation.py +0 -33
  46. athena/types/headers.py +0 -41
  47. athena/types/human_message.py +0 -35
  48. athena/types/human_message_content_item.py +0 -5
  49. athena/types/interpret_sweep_job_request.py +0 -30
  50. athena/types/jamsocket_create_request.py +0 -28
  51. athena/types/json_output_parser_output.py +0 -5
  52. athena/types/llm_result.py +0 -38
  53. athena/types/llm_result_generations_item_item.py +0 -31
  54. athena/types/markdown_to_csv_request.py +0 -28
  55. athena/types/on_chain_end.py +0 -36
  56. athena/types/on_chain_error.py +0 -37
  57. athena/types/on_chain_start.py +0 -38
  58. athena/types/on_chat_model_start.py +0 -39
  59. athena/types/on_llm_end.py +0 -37
  60. athena/types/on_llm_start.py +0 -38
  61. athena/types/on_retriever_end.py +0 -37
  62. athena/types/on_retriever_error.py +0 -37
  63. athena/types/on_retriever_start.py +0 -38
  64. athena/types/on_tool_end.py +0 -36
  65. athena/types/on_tool_error.py +0 -37
  66. athena/types/on_tool_start.py +0 -38
  67. athena/types/presigned_url_request.py +0 -28
  68. athena/types/prompt_input.py +0 -28
  69. athena/types/query_tool_request.py +0 -31
  70. athena/types/report_details_request.py +0 -28
  71. athena/types/room_request.py +0 -28
  72. athena/types/run_info.py +0 -32
  73. athena/types/runnable_config.py +0 -35
  74. athena/types/singleton_response_metadata.py +0 -33
  75. athena/types/spf.py +0 -29
  76. athena/types/sql_execution_request.py +0 -30
  77. athena/types/sql_fix_request.py +0 -32
  78. athena/types/sql_glot_request.py +0 -28
  79. athena/types/sql_request.py +0 -31
  80. athena/types/sql_sync_execution_request.py +0 -30
  81. athena/types/stream_request.py +0 -34
  82. athena/types/string_prompt_value.py +0 -33
  83. athena/types/system_message.py +0 -35
  84. athena/types/system_message_content_item.py +0 -5
  85. athena/types/tool_message.py +0 -35
  86. athena/types/tool_message_content_item.py +0 -5
  87. athena/types/uploader_request.py +0 -33
  88. athena/types/uploader_request_if_exists.py +0 -25
  89. athena/types/user_message_submitted.py +0 -38
  90. athena_intelligence-0.1.7.dist-info/RECORD +0 -112
  91. {athena_intelligence-0.1.7.dist-info → athena_intelligence-0.1.8.dist-info}/WHEEL +0 -0
@@ -1,33 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class GenerateRecommendationRequest(pydantic.BaseModel):
15
- conversation_id: typing.Optional[str] = None
16
- user_id: str
17
- workspace_id: str
18
- sdataset_ids: typing.Optional[typing.List[str]] = None
19
- tools: typing.Optional[typing.List[str]] = None
20
- model: typing.Optional[str] = None
21
-
22
- def json(self, **kwargs: typing.Any) -> str:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
- return super().json(**kwargs_with_defaults)
25
-
26
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().dict(**kwargs_with_defaults)
29
-
30
- class Config:
31
- frozen = True
32
- smart_union = True
33
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,33 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class Generation(pydantic.BaseModel):
15
- """
16
- A single text generation output.
17
- """
18
-
19
- text: str
20
- generation_info: typing.Optional[typing.Dict[str, typing.Any]] = None
21
-
22
- def json(self, **kwargs: typing.Any) -> str:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
- return super().json(**kwargs_with_defaults)
25
-
26
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().dict(**kwargs_with_defaults)
29
-
30
- class Config:
31
- frozen = True
32
- smart_union = True
33
- json_encoders = {dt.datetime: serialize_datetime}
athena/types/headers.py DELETED
@@ -1,41 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class Headers(pydantic.BaseModel):
15
- return_path: typing.Optional[str] = None
16
- received: typing.Optional[typing.Any] = None
17
- date: typing.Optional[str] = None
18
- from_: typing.Optional[str] = pydantic.Field(alias="from", default=None)
19
- to: typing.Optional[str] = None
20
- message_id: typing.Optional[str] = None
21
- subject: typing.Optional[str] = None
22
- mime_version: typing.Optional[str] = None
23
- content_type: typing.Optional[str] = None
24
- delivered_to: typing.Optional[str] = None
25
- received_spf: typing.Optional[str] = None
26
- authentication_results: typing.Optional[str] = None
27
- user_agent: typing.Optional[str] = None
28
-
29
- def json(self, **kwargs: typing.Any) -> str:
30
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
31
- return super().json(**kwargs_with_defaults)
32
-
33
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
34
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
35
- return super().dict(**kwargs_with_defaults)
36
-
37
- class Config:
38
- frozen = True
39
- smart_union = True
40
- allow_population_by_field_name = True
41
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,35 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .content import Content
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class HumanMessage(pydantic.BaseModel):
16
- """
17
- A Message from a human.
18
- """
19
-
20
- content: Content
21
- additional_kwargs: typing.Optional[typing.Dict[str, typing.Any]] = None
22
- example: typing.Optional[bool] = None
23
-
24
- def json(self, **kwargs: typing.Any) -> str:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
- return super().json(**kwargs_with_defaults)
27
-
28
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
29
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
30
- return super().dict(**kwargs_with_defaults)
31
-
32
- class Config:
33
- frozen = True
34
- smart_union = True
35
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- HumanMessageContentItem = typing.Union[str, typing.Dict[str, typing.Any]]
@@ -1,30 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class InterpretSweepJobRequest(pydantic.BaseModel):
15
- sweep_job_id: str
16
- user_context: typing.Optional[str] = None
17
- turbo: typing.Optional[bool] = None
18
-
19
- def json(self, **kwargs: typing.Any) -> str:
20
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
- return super().json(**kwargs_with_defaults)
22
-
23
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
- return super().dict(**kwargs_with_defaults)
26
-
27
- class Config:
28
- frozen = True
29
- smart_union = True
30
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,28 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class JamsocketCreateRequest(pydantic.BaseModel):
15
- doc_id: str
16
-
17
- def json(self, **kwargs: typing.Any) -> str:
18
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
- return super().json(**kwargs_with_defaults)
20
-
21
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
22
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
- return super().dict(**kwargs_with_defaults)
24
-
25
- class Config:
26
- frozen = True
27
- smart_union = True
28
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- JsonOutputParserOutput = typing.Any
@@ -1,38 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .llm_result_generations_item_item import LlmResultGenerationsItemItem
8
- from .run_info import RunInfo
9
-
10
- try:
11
- import pydantic.v1 as pydantic # type: ignore
12
- except ImportError:
13
- import pydantic # type: ignore
14
-
15
-
16
- class LlmResult(pydantic.BaseModel):
17
- """
18
- Concrete instance of LLMResult for validation only.
19
-
20
- Must be kept in sync with langchain.schema.llm.LLMResult.
21
- """
22
-
23
- generations: typing.List[typing.List[LlmResultGenerationsItemItem]]
24
- llm_output: typing.Optional[typing.Dict[str, typing.Any]] = None
25
- run: typing.Optional[typing.List[RunInfo]] = None
26
-
27
- def json(self, **kwargs: typing.Any) -> str:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().json(**kwargs_with_defaults)
30
-
31
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
32
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
- return super().dict(**kwargs_with_defaults)
34
-
35
- class Config:
36
- frozen = True
37
- smart_union = True
38
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,31 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from __future__ import annotations
4
-
5
- import typing
6
-
7
- from .chat_generation import ChatGeneration
8
- from .generation import Generation
9
-
10
-
11
- class LlmResultGenerationsItemItem_Generation(Generation):
12
- type: typing.Literal["Generation"]
13
-
14
- class Config:
15
- frozen = True
16
- smart_union = True
17
- allow_population_by_field_name = True
18
-
19
-
20
- class LlmResultGenerationsItemItem_ChatGeneration(ChatGeneration):
21
- type: typing.Literal["ChatGeneration"]
22
-
23
- class Config:
24
- frozen = True
25
- smart_union = True
26
- allow_population_by_field_name = True
27
-
28
-
29
- LlmResultGenerationsItemItem = typing.Union[
30
- LlmResultGenerationsItemItem_Generation, LlmResultGenerationsItemItem_ChatGeneration
31
- ]
@@ -1,28 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class MarkdownToCsvRequest(pydantic.BaseModel):
15
- markdown: str
16
-
17
- def json(self, **kwargs: typing.Any) -> str:
18
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
- return super().json(**kwargs_with_defaults)
20
-
21
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
22
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
- return super().dict(**kwargs_with_defaults)
24
-
25
- class Config:
26
- frozen = True
27
- smart_union = True
28
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,36 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class OnChainEnd(pydantic.BaseModel):
15
- """
16
- On Chain End Callback Event.
17
- """
18
-
19
- outputs: typing.Optional[typing.Any] = None
20
- run_id: str
21
- parent_run_id: typing.Optional[str] = None
22
- tags: typing.Optional[typing.List[str]] = None
23
- kwargs: typing.Optional[typing.Any] = None
24
-
25
- def json(self, **kwargs: typing.Any) -> str:
26
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
- return super().json(**kwargs_with_defaults)
28
-
29
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
30
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
31
- return super().dict(**kwargs_with_defaults)
32
-
33
- class Config:
34
- frozen = True
35
- smart_union = True
36
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,37 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .error import Error
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class OnChainError(pydantic.BaseModel):
16
- """
17
- On Chain Error Callback Event.
18
- """
19
-
20
- error: Error
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- kwargs: typing.Optional[typing.Any] = None
25
-
26
- def json(self, **kwargs: typing.Any) -> str:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().json(**kwargs_with_defaults)
29
-
30
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
32
- return super().dict(**kwargs_with_defaults)
33
-
34
- class Config:
35
- frozen = True
36
- smart_union = True
37
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,38 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class OnChainStart(pydantic.BaseModel):
15
- """
16
- On Chain Start Callback Event.
17
- """
18
-
19
- serialized: typing.Dict[str, typing.Any]
20
- inputs: typing.Optional[typing.Any] = None
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
25
- kwargs: typing.Optional[typing.Any] = None
26
-
27
- def json(self, **kwargs: typing.Any) -> str:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().json(**kwargs_with_defaults)
30
-
31
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
32
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
- return super().dict(**kwargs_with_defaults)
34
-
35
- class Config:
36
- frozen = True
37
- smart_union = True
38
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,39 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .base_message import BaseMessage
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class OnChatModelStart(pydantic.BaseModel):
16
- """
17
- On Chat Model Start Callback Event.
18
- """
19
-
20
- serialized: typing.Dict[str, typing.Any]
21
- messages: typing.List[typing.List[BaseMessage]]
22
- run_id: str
23
- parent_run_id: typing.Optional[str] = None
24
- tags: typing.Optional[typing.List[str]] = None
25
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
26
- kwargs: typing.Optional[typing.Any] = None
27
-
28
- def json(self, **kwargs: typing.Any) -> str:
29
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
30
- return super().json(**kwargs_with_defaults)
31
-
32
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
33
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
34
- return super().dict(**kwargs_with_defaults)
35
-
36
- class Config:
37
- frozen = True
38
- smart_union = True
39
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,37 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .llm_result import LlmResult
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class OnLlmEnd(pydantic.BaseModel):
16
- """
17
- On LLM End Callback Event.
18
- """
19
-
20
- response: LlmResult
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- kwargs: typing.Optional[typing.Any] = None
25
-
26
- def json(self, **kwargs: typing.Any) -> str:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().json(**kwargs_with_defaults)
29
-
30
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
32
- return super().dict(**kwargs_with_defaults)
33
-
34
- class Config:
35
- frozen = True
36
- smart_union = True
37
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,38 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class OnLlmStart(pydantic.BaseModel):
15
- """
16
- On LLM Start Callback Event.
17
- """
18
-
19
- serialized: typing.Dict[str, typing.Any]
20
- prompts: typing.List[str]
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
25
- kwargs: typing.Optional[typing.Any] = None
26
-
27
- def json(self, **kwargs: typing.Any) -> str:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().json(**kwargs_with_defaults)
30
-
31
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
32
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
- return super().dict(**kwargs_with_defaults)
34
-
35
- class Config:
36
- frozen = True
37
- smart_union = True
38
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,37 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .document import Document
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class OnRetrieverEnd(pydantic.BaseModel):
16
- """
17
- On Retriever End Callback Event.
18
- """
19
-
20
- documents: typing.List[Document]
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- kwargs: typing.Optional[typing.Any] = None
25
-
26
- def json(self, **kwargs: typing.Any) -> str:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().json(**kwargs_with_defaults)
29
-
30
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
32
- return super().dict(**kwargs_with_defaults)
33
-
34
- class Config:
35
- frozen = True
36
- smart_union = True
37
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,37 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from .error import Error
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class OnRetrieverError(pydantic.BaseModel):
16
- """
17
- On Retriever Error Callback Event.
18
- """
19
-
20
- error: Error
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- kwargs: typing.Optional[typing.Any] = None
25
-
26
- def json(self, **kwargs: typing.Any) -> str:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().json(**kwargs_with_defaults)
29
-
30
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
32
- return super().dict(**kwargs_with_defaults)
33
-
34
- class Config:
35
- frozen = True
36
- smart_union = True
37
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,38 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class OnRetrieverStart(pydantic.BaseModel):
15
- """
16
- On Retriever Start Callback Event.
17
- """
18
-
19
- serialized: typing.Dict[str, typing.Any]
20
- query: str
21
- run_id: str
22
- parent_run_id: typing.Optional[str] = None
23
- tags: typing.Optional[typing.List[str]] = None
24
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
25
- kwargs: typing.Optional[typing.Any] = None
26
-
27
- def json(self, **kwargs: typing.Any) -> str:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().json(**kwargs_with_defaults)
30
-
31
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
32
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
- return super().dict(**kwargs_with_defaults)
34
-
35
- class Config:
36
- frozen = True
37
- smart_union = True
38
- json_encoders = {dt.datetime: serialize_datetime}