frogml-core 0.0.113__py3-none-any.whl → 0.0.115__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 (137) hide show
  1. frogml_core/__init__.py +1 -1
  2. frogml_core/clients/administration/authentication/client.py +2 -2
  3. frogml_core/clients/batch_job_management/client.py +4 -4
  4. frogml_core/clients/build_orchestrator/build_model_request_getter.py +6 -6
  5. frogml_core/clients/build_orchestrator/client.py +12 -12
  6. frogml_core/clients/build_orchestrator/internal_client.py +10 -10
  7. frogml_core/frogml_client/build_api_helpers/build_api_steps.py +3 -3
  8. frogml_core/inner/build_logic/constants/upload_tag.py +7 -7
  9. frogml_core/inner/build_logic/interface/context_interface.py +1 -1
  10. frogml_core/inner/build_logic/phases/phase_010_fetch_model/fetch_strategy_manager/strategy/strategy.py +4 -4
  11. frogml_core/inner/build_logic/phases/phase_010_fetch_model/set_version_step.py +3 -3
  12. frogml_core/inner/build_logic/phases/phase_020_remote_register_frogml_build/start_remote_build_step.py +3 -3
  13. frogml_core/inner/build_logic/phases/phase_020_remote_register_frogml_build/upload_step.py +11 -9
  14. frogml_core/inner/build_logic/tools/ignore_files.py +3 -3
  15. frogml_core/inner/di_configuration/__init__.py +0 -6
  16. frogml_core/model/adapters/__init__.py +1 -1
  17. frogml_core/model/analytics_logging.py +1 -1
  18. frogml_core/model/tools/adapters/input.py +6 -6
  19. frogml_core/model/tools/adapters/output.py +8 -8
  20. frogml_core/model/tools/run_model_locally.py +2 -2
  21. frogml_core/model/utils/feature_utils.py +1 -1
  22. {frogml_core-0.0.113.dist-info → frogml_core-0.0.115.dist-info}/METADATA +1 -1
  23. {frogml_core-0.0.113.dist-info → frogml_core-0.0.115.dist-info}/RECORD +30 -137
  24. frogml_services_mock/mocks/analytics_api.py +6 -6
  25. frogml_services_mock/mocks/ecosystem_service_api.py +2 -2
  26. frogml_services_mock/mocks/frogml_mocks.py +0 -11
  27. frogml_services_mock/services_mock.py +4 -52
  28. frogml_storage/__init__.py +1 -1
  29. frogml_core/clients/prompt_manager/__init__.py +0 -0
  30. frogml_core/clients/prompt_manager/model_descriptor_mapper.py +0 -196
  31. frogml_core/clients/prompt_manager/prompt_manager_client.py +0 -190
  32. frogml_core/clients/prompt_manager/prompt_proto_mapper.py +0 -264
  33. frogml_core/clients/vector_store/__init__.py +0 -2
  34. frogml_core/clients/vector_store/management_client.py +0 -127
  35. frogml_core/clients/vector_store/serving_client.py +0 -157
  36. frogml_core/clients/workspace_manager/__init__.py +0 -1
  37. frogml_core/clients/workspace_manager/client.py +0 -224
  38. frogml_core/llmops/__init__.py +0 -0
  39. frogml_core/llmops/generation/__init__.py +0 -0
  40. frogml_core/llmops/generation/_steaming.py +0 -78
  41. frogml_core/llmops/generation/base.py +0 -5
  42. frogml_core/llmops/generation/chat/__init__.py +0 -0
  43. frogml_core/llmops/generation/chat/openai/LICENSE.txt +0 -201
  44. frogml_core/llmops/generation/chat/openai/types/__init__.py +0 -0
  45. frogml_core/llmops/generation/chat/openai/types/chat/__init__.py +0 -0
  46. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion.py +0 -88
  47. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_assistant_message_param.py +0 -65
  48. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_chunk.py +0 -153
  49. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_content_part_text_param.py +0 -28
  50. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_function_call_option_param.py +0 -25
  51. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_function_message_param.py +0 -33
  52. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message.py +0 -56
  53. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_param.py +0 -34
  54. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call.py +0 -46
  55. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call_param.py +0 -44
  56. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_named_tool_choice_param.py +0 -32
  57. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_role.py +0 -20
  58. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_system_message_param.py +0 -35
  59. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_token_logprob.py +0 -71
  60. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_choice_option_param.py +0 -28
  61. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_message_param.py +0 -31
  62. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_param.py +0 -29
  63. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_user_message_param.py +0 -35
  64. frogml_core/llmops/generation/chat/openai/types/chat/completion_create_params.py +0 -279
  65. frogml_core/llmops/generation/chat/openai/types/completion_choice.py +0 -47
  66. frogml_core/llmops/generation/chat/openai/types/completion_create_params.py +0 -209
  67. frogml_core/llmops/generation/chat/openai/types/completion_usage.py +0 -30
  68. frogml_core/llmops/generation/chat/openai/types/model.py +0 -35
  69. frogml_core/llmops/generation/chat/openai/types/shared/__init__.py +0 -3
  70. frogml_core/llmops/generation/chat/openai/types/shared/error_object.py +0 -27
  71. frogml_core/llmops/generation/chat/openai/types/shared/function_definition.py +0 -49
  72. frogml_core/llmops/generation/chat/openai/types/shared/function_parameters.py +0 -20
  73. frogml_core/llmops/generation/chat/openai/types/shared_params/__init__.py +0 -2
  74. frogml_core/llmops/generation/chat/openai/types/shared_params/function_definition.py +0 -49
  75. frogml_core/llmops/generation/chat/openai/types/shared_params/function_parameters.py +0 -22
  76. frogml_core/llmops/generation/streaming.py +0 -26
  77. frogml_core/llmops/model/__init__.py +0 -0
  78. frogml_core/llmops/model/descriptor.py +0 -40
  79. frogml_core/llmops/prompt/__init__.py +0 -0
  80. frogml_core/llmops/prompt/base.py +0 -136
  81. frogml_core/llmops/prompt/chat/__init__.py +0 -0
  82. frogml_core/llmops/prompt/chat/message.py +0 -24
  83. frogml_core/llmops/prompt/chat/template.py +0 -113
  84. frogml_core/llmops/prompt/chat/value.py +0 -10
  85. frogml_core/llmops/prompt/manager.py +0 -138
  86. frogml_core/llmops/prompt/template.py +0 -24
  87. frogml_core/llmops/prompt/value.py +0 -14
  88. frogml_core/llmops/provider/__init__.py +0 -0
  89. frogml_core/llmops/provider/chat.py +0 -44
  90. frogml_core/llmops/provider/openai/__init__.py +0 -0
  91. frogml_core/llmops/provider/openai/client.py +0 -126
  92. frogml_core/llmops/provider/openai/provider.py +0 -93
  93. frogml_core/vector_store/__init__.py +0 -4
  94. frogml_core/vector_store/client.py +0 -151
  95. frogml_core/vector_store/collection.py +0 -429
  96. frogml_core/vector_store/filters.py +0 -359
  97. frogml_core/vector_store/inference_client.py +0 -105
  98. frogml_core/vector_store/rest_helpers.py +0 -81
  99. frogml_core/vector_store/utils/__init__.py +0 -0
  100. frogml_core/vector_store/utils/filter_utils.py +0 -23
  101. frogml_core/vector_store/utils/upsert_utils.py +0 -218
  102. frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2.py +0 -77
  103. frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2.pyi +0 -417
  104. frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2_grpc.py +0 -441
  105. frogml_proto/qwak/prompt/v1/prompt/prompt_pb2.py +0 -69
  106. frogml_proto/qwak/prompt/v1/prompt/prompt_pb2.pyi +0 -415
  107. frogml_proto/qwak/prompt/v1/prompt/prompt_pb2_grpc.py +0 -4
  108. frogml_proto/qwak/vectors/v1/collection/collection_pb2.py +0 -46
  109. frogml_proto/qwak/vectors/v1/collection/collection_pb2.pyi +0 -287
  110. frogml_proto/qwak/vectors/v1/collection/collection_pb2_grpc.py +0 -4
  111. frogml_proto/qwak/vectors/v1/collection/collection_service_pb2.py +0 -60
  112. frogml_proto/qwak/vectors/v1/collection/collection_service_pb2.pyi +0 -258
  113. frogml_proto/qwak/vectors/v1/collection/collection_service_pb2_grpc.py +0 -304
  114. frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2.py +0 -28
  115. frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2.pyi +0 -41
  116. frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2_grpc.py +0 -4
  117. frogml_proto/qwak/vectors/v1/filters_pb2.py +0 -52
  118. frogml_proto/qwak/vectors/v1/filters_pb2.pyi +0 -297
  119. frogml_proto/qwak/vectors/v1/filters_pb2_grpc.py +0 -4
  120. frogml_proto/qwak/vectors/v1/vector_pb2.py +0 -38
  121. frogml_proto/qwak/vectors/v1/vector_pb2.pyi +0 -142
  122. frogml_proto/qwak/vectors/v1/vector_pb2_grpc.py +0 -4
  123. frogml_proto/qwak/vectors/v1/vector_service_pb2.py +0 -53
  124. frogml_proto/qwak/vectors/v1/vector_service_pb2.pyi +0 -243
  125. frogml_proto/qwak/vectors/v1/vector_service_pb2_grpc.py +0 -201
  126. frogml_proto/qwak/workspace/workspace_pb2.py +0 -50
  127. frogml_proto/qwak/workspace/workspace_pb2.pyi +0 -331
  128. frogml_proto/qwak/workspace/workspace_pb2_grpc.py +0 -4
  129. frogml_proto/qwak/workspace/workspace_service_pb2.py +0 -84
  130. frogml_proto/qwak/workspace/workspace_service_pb2.pyi +0 -393
  131. frogml_proto/qwak/workspace/workspace_service_pb2_grpc.py +0 -507
  132. frogml_services_mock/mocks/prompt_manager_service.py +0 -281
  133. frogml_services_mock/mocks/vector_serving_api.py +0 -159
  134. frogml_services_mock/mocks/vectors_management_api.py +0 -97
  135. frogml_services_mock/mocks/workspace_manager_service_mock.py +0 -202
  136. /frogml_core/model/adapters/output_adapters/{qwak_with_default_fallback.py → frogml_with_default_fallback.py} +0 -0
  137. {frogml_core-0.0.113.dist-info → frogml_core-0.0.115.dist-info}/WHEEL +0 -0
@@ -1,34 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing import Union
19
-
20
- from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
21
- from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
22
- from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
23
- from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
24
- from .chat_completion_user_message_param import ChatCompletionUserMessageParam
25
-
26
- __all__ = ["ChatCompletionMessageParam"]
27
-
28
- ChatCompletionMessageParam = Union[
29
- ChatCompletionSystemMessageParam,
30
- ChatCompletionUserMessageParam,
31
- ChatCompletionAssistantMessageParam,
32
- ChatCompletionToolMessageParam,
33
- ChatCompletionFunctionMessageParam,
34
- ]
@@ -1,46 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from dataclasses import dataclass
17
-
18
- from typing_extensions import Literal
19
-
20
- __all__ = ["ChatCompletionMessageToolCall", "Function"]
21
-
22
-
23
- @dataclass
24
- class Function:
25
- arguments: str
26
- """
27
- The arguments to call the function with, as generated by the model in JSON
28
- format. Note that the model does not always generate valid JSON, and may
29
- hallucinate parameters not defined by your function schema. Validate the
30
- arguments in your code before calling your function.
31
- """
32
-
33
- name: str
34
- """The name of the function to call."""
35
-
36
-
37
- @dataclass
38
- class ChatCompletionMessageToolCall:
39
- id: str
40
- """The ID of the tool call."""
41
-
42
- function: Function
43
- """The function that the model called."""
44
-
45
- type: Literal["function"]
46
- """The type of the tool. Currently, only `function` is supported."""
@@ -1,44 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing_extensions import Literal, Required, TypedDict
19
-
20
- __all__ = ["ChatCompletionMessageToolCallParam", "Function"]
21
-
22
-
23
- class Function(TypedDict, total=False):
24
- arguments: Required[str]
25
- """
26
- The arguments to call the function with, as generated by the model in JSON
27
- format. Note that the model does not always generate valid JSON, and may
28
- hallucinate parameters not defined by your function schema. Validate the
29
- arguments in your code before calling your function.
30
- """
31
-
32
- name: Required[str]
33
- """The name of the function to call."""
34
-
35
-
36
- class ChatCompletionMessageToolCallParam(TypedDict, total=False):
37
- id: Required[str]
38
- """The ID of the tool call."""
39
-
40
- function: Required[Function]
41
- """The function that the model called."""
42
-
43
- type: Required[Literal["function"]]
44
- """The type of the tool. Currently, only `function` is supported."""
@@ -1,32 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing_extensions import Literal, Required, TypedDict
19
-
20
- __all__ = ["ChatCompletionNamedToolChoiceParam", "Function"]
21
-
22
-
23
- class Function(TypedDict, total=False):
24
- name: Required[str]
25
- """The name of the function to call."""
26
-
27
-
28
- class ChatCompletionNamedToolChoiceParam(TypedDict, total=False):
29
- function: Required[Function]
30
-
31
- type: Required[Literal["function"]]
32
- """The type of the tool. Currently, only `function` is supported."""
@@ -1,20 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from typing_extensions import Literal
17
-
18
- __all__ = ["ChatCompletionRole"]
19
-
20
- ChatCompletionRole = Literal["system", "user", "assistant", "tool", "function"]
@@ -1,35 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing_extensions import Literal, Required, TypedDict
19
-
20
- __all__ = ["ChatCompletionSystemMessageParam"]
21
-
22
-
23
- class ChatCompletionSystemMessageParam(TypedDict, total=False):
24
- content: Required[str]
25
- """The contents of the system message."""
26
-
27
- role: Required[Literal["system"]]
28
- """The role of the messages author, in this case `system`."""
29
-
30
- name: str
31
- """An optional name for the participant.
32
-
33
- Provides the model information to differentiate between participants of the same
34
- role.
35
- """
@@ -1,71 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from dataclasses import dataclass
17
- from typing import List, Optional
18
-
19
- __all__ = ["ChatCompletionTokenLogprob", "TopLogprob"]
20
-
21
-
22
- @dataclass
23
- class TopLogprob:
24
- token: str
25
- """The token."""
26
-
27
- logprob: float
28
- """The log probability of this token, if it is within the top 20 most likely
29
- tokens.
30
-
31
- Otherwise, the value `-9999.0` is used to signify that the token is very
32
- unlikely.
33
- """
34
-
35
- bytes: Optional[List[int]] = None
36
- """A list of integers representing the UTF-8 bytes representation of the token.
37
-
38
- Useful in instances where characters are represented by multiple tokens and
39
- their byte representations must be combined to generate the correct text
40
- representation. Can be `null` if there is no bytes representation for the token.
41
- """
42
-
43
-
44
- @dataclass
45
- class ChatCompletionTokenLogprob:
46
- token: str
47
- """The token."""
48
-
49
- logprob: float
50
- """The log probability of this token, if it is within the top 20 most likely
51
- tokens.
52
-
53
- Otherwise, the value `-9999.0` is used to signify that the token is very
54
- unlikely.
55
- """
56
-
57
- top_logprobs: List[TopLogprob]
58
- """List of the most likely tokens and their log probability, at this token
59
- position.
60
-
61
- In rare cases, there may be fewer than the number of requested `top_logprobs`
62
- returned.
63
- """
64
-
65
- bytes: Optional[List[int]] = None
66
- """A list of integers representing the UTF-8 bytes representation of the token.
67
-
68
- Useful in instances where characters are represented by multiple tokens and
69
- their byte representations must be combined to generate the correct text
70
- representation. Can be `null` if there is no bytes representation for the token.
71
- """
@@ -1,28 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing import Union
19
-
20
- from typing_extensions import Literal
21
-
22
- from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
23
-
24
- __all__ = ["ChatCompletionToolChoiceOptionParam"]
25
-
26
- ChatCompletionToolChoiceOptionParam = Union[
27
- Literal["none", "auto"], ChatCompletionNamedToolChoiceParam
28
- ]
@@ -1,31 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing_extensions import Literal, Required, TypedDict
19
-
20
- __all__ = ["ChatCompletionToolMessageParam"]
21
-
22
-
23
- class ChatCompletionToolMessageParam(TypedDict, total=False):
24
- content: Required[str]
25
- """The contents of the tool message."""
26
-
27
- role: Required[Literal["tool"]]
28
- """The role of the messages author, in this case `tool`."""
29
-
30
- tool_call_id: Required[str]
31
- """Tool call that this message is responding to."""
@@ -1,29 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing_extensions import Literal, Required, TypedDict
19
-
20
- from ...types import shared_params
21
-
22
- __all__ = ["ChatCompletionToolParam"]
23
-
24
-
25
- class ChatCompletionToolParam(TypedDict, total=False):
26
- function: Required[shared_params.FunctionDefinition]
27
-
28
- type: Required[Literal["function"]]
29
- """The type of the tool. Currently, only `function` is supported."""
@@ -1,35 +0,0 @@
1
- #
2
- # Copyright 2024 OpenAI
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- from typing_extensions import Literal, Required, TypedDict
19
-
20
- __all__ = ["ChatCompletionUserMessageParam"]
21
-
22
-
23
- class ChatCompletionUserMessageParam(TypedDict, total=False):
24
- content: Required[str]
25
- """The contents of the user message."""
26
-
27
- role: Required[Literal["user"]]
28
- """The role of the messages author, in this case `user`."""
29
-
30
- name: str
31
- """An optional name for the participant.
32
-
33
- Provides the model information to differentiate between participants of the same
34
- role.
35
- """