hammad-python 0.0.30__py3-none-any.whl → 0.0.32__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. ham/__init__.py +200 -0
  2. {hammad_python-0.0.30.dist-info → hammad_python-0.0.32.dist-info}/METADATA +6 -32
  3. hammad_python-0.0.32.dist-info/RECORD +6 -0
  4. hammad/__init__.py +0 -84
  5. hammad/_internal.py +0 -256
  6. hammad/_main.py +0 -226
  7. hammad/cache/__init__.py +0 -40
  8. hammad/cache/base_cache.py +0 -181
  9. hammad/cache/cache.py +0 -169
  10. hammad/cache/decorators.py +0 -261
  11. hammad/cache/file_cache.py +0 -80
  12. hammad/cache/ttl_cache.py +0 -74
  13. hammad/cli/__init__.py +0 -33
  14. hammad/cli/animations.py +0 -573
  15. hammad/cli/plugins.py +0 -867
  16. hammad/cli/styles/__init__.py +0 -55
  17. hammad/cli/styles/settings.py +0 -139
  18. hammad/cli/styles/types.py +0 -358
  19. hammad/cli/styles/utils.py +0 -634
  20. hammad/data/__init__.py +0 -90
  21. hammad/data/collections/__init__.py +0 -49
  22. hammad/data/collections/collection.py +0 -326
  23. hammad/data/collections/indexes/__init__.py +0 -37
  24. hammad/data/collections/indexes/qdrant/__init__.py +0 -1
  25. hammad/data/collections/indexes/qdrant/index.py +0 -723
  26. hammad/data/collections/indexes/qdrant/settings.py +0 -94
  27. hammad/data/collections/indexes/qdrant/utils.py +0 -210
  28. hammad/data/collections/indexes/tantivy/__init__.py +0 -1
  29. hammad/data/collections/indexes/tantivy/index.py +0 -426
  30. hammad/data/collections/indexes/tantivy/settings.py +0 -40
  31. hammad/data/collections/indexes/tantivy/utils.py +0 -176
  32. hammad/data/configurations/__init__.py +0 -35
  33. hammad/data/configurations/configuration.py +0 -564
  34. hammad/data/models/__init__.py +0 -50
  35. hammad/data/models/extensions/__init__.py +0 -4
  36. hammad/data/models/extensions/pydantic/__init__.py +0 -42
  37. hammad/data/models/extensions/pydantic/converters.py +0 -759
  38. hammad/data/models/fields.py +0 -546
  39. hammad/data/models/model.py +0 -1078
  40. hammad/data/models/utils.py +0 -280
  41. hammad/data/sql/__init__.py +0 -24
  42. hammad/data/sql/database.py +0 -576
  43. hammad/data/sql/types.py +0 -127
  44. hammad/data/types/__init__.py +0 -75
  45. hammad/data/types/file.py +0 -431
  46. hammad/data/types/multimodal/__init__.py +0 -36
  47. hammad/data/types/multimodal/audio.py +0 -200
  48. hammad/data/types/multimodal/image.py +0 -182
  49. hammad/data/types/text.py +0 -1308
  50. hammad/formatting/__init__.py +0 -33
  51. hammad/formatting/json/__init__.py +0 -27
  52. hammad/formatting/json/converters.py +0 -158
  53. hammad/formatting/text/__init__.py +0 -63
  54. hammad/formatting/text/converters.py +0 -723
  55. hammad/formatting/text/markdown.py +0 -131
  56. hammad/formatting/yaml/__init__.py +0 -26
  57. hammad/formatting/yaml/converters.py +0 -5
  58. hammad/genai/__init__.py +0 -217
  59. hammad/genai/a2a/__init__.py +0 -32
  60. hammad/genai/a2a/workers.py +0 -552
  61. hammad/genai/agents/__init__.py +0 -59
  62. hammad/genai/agents/agent.py +0 -1973
  63. hammad/genai/agents/run.py +0 -1024
  64. hammad/genai/agents/types/__init__.py +0 -42
  65. hammad/genai/agents/types/agent_context.py +0 -13
  66. hammad/genai/agents/types/agent_event.py +0 -128
  67. hammad/genai/agents/types/agent_hooks.py +0 -220
  68. hammad/genai/agents/types/agent_messages.py +0 -31
  69. hammad/genai/agents/types/agent_response.py +0 -125
  70. hammad/genai/agents/types/agent_stream.py +0 -327
  71. hammad/genai/graphs/__init__.py +0 -125
  72. hammad/genai/graphs/_utils.py +0 -190
  73. hammad/genai/graphs/base.py +0 -1828
  74. hammad/genai/graphs/plugins.py +0 -316
  75. hammad/genai/graphs/types.py +0 -638
  76. hammad/genai/models/__init__.py +0 -1
  77. hammad/genai/models/embeddings/__init__.py +0 -43
  78. hammad/genai/models/embeddings/model.py +0 -226
  79. hammad/genai/models/embeddings/run.py +0 -163
  80. hammad/genai/models/embeddings/types/__init__.py +0 -37
  81. hammad/genai/models/embeddings/types/embedding_model_name.py +0 -75
  82. hammad/genai/models/embeddings/types/embedding_model_response.py +0 -76
  83. hammad/genai/models/embeddings/types/embedding_model_run_params.py +0 -66
  84. hammad/genai/models/embeddings/types/embedding_model_settings.py +0 -47
  85. hammad/genai/models/language/__init__.py +0 -57
  86. hammad/genai/models/language/model.py +0 -1098
  87. hammad/genai/models/language/run.py +0 -878
  88. hammad/genai/models/language/types/__init__.py +0 -40
  89. hammad/genai/models/language/types/language_model_instructor_mode.py +0 -47
  90. hammad/genai/models/language/types/language_model_messages.py +0 -28
  91. hammad/genai/models/language/types/language_model_name.py +0 -239
  92. hammad/genai/models/language/types/language_model_request.py +0 -127
  93. hammad/genai/models/language/types/language_model_response.py +0 -217
  94. hammad/genai/models/language/types/language_model_response_chunk.py +0 -56
  95. hammad/genai/models/language/types/language_model_settings.py +0 -89
  96. hammad/genai/models/language/types/language_model_stream.py +0 -600
  97. hammad/genai/models/language/utils/__init__.py +0 -28
  98. hammad/genai/models/language/utils/requests.py +0 -421
  99. hammad/genai/models/language/utils/structured_outputs.py +0 -135
  100. hammad/genai/models/model_provider.py +0 -4
  101. hammad/genai/models/multimodal.py +0 -47
  102. hammad/genai/models/reranking.py +0 -26
  103. hammad/genai/types/__init__.py +0 -1
  104. hammad/genai/types/base.py +0 -215
  105. hammad/genai/types/history.py +0 -290
  106. hammad/genai/types/tools.py +0 -507
  107. hammad/logging/__init__.py +0 -35
  108. hammad/logging/decorators.py +0 -834
  109. hammad/logging/logger.py +0 -1018
  110. hammad/mcp/__init__.py +0 -53
  111. hammad/mcp/client/__init__.py +0 -35
  112. hammad/mcp/client/client.py +0 -624
  113. hammad/mcp/client/client_service.py +0 -400
  114. hammad/mcp/client/settings.py +0 -178
  115. hammad/mcp/servers/__init__.py +0 -26
  116. hammad/mcp/servers/launcher.py +0 -1161
  117. hammad/runtime/__init__.py +0 -32
  118. hammad/runtime/decorators.py +0 -142
  119. hammad/runtime/run.py +0 -299
  120. hammad/service/__init__.py +0 -49
  121. hammad/service/create.py +0 -527
  122. hammad/service/decorators.py +0 -283
  123. hammad/types.py +0 -288
  124. hammad/typing/__init__.py +0 -435
  125. hammad/web/__init__.py +0 -43
  126. hammad/web/http/__init__.py +0 -1
  127. hammad/web/http/client.py +0 -944
  128. hammad/web/models.py +0 -275
  129. hammad/web/openapi/__init__.py +0 -1
  130. hammad/web/openapi/client.py +0 -740
  131. hammad/web/search/__init__.py +0 -1
  132. hammad/web/search/client.py +0 -1023
  133. hammad/web/utils.py +0 -472
  134. hammad_python-0.0.30.dist-info/RECORD +0 -135
  135. {hammad → ham}/py.typed +0 -0
  136. {hammad_python-0.0.30.dist-info → hammad_python-0.0.32.dist-info}/WHEEL +0 -0
  137. {hammad_python-0.0.30.dist-info → hammad_python-0.0.32.dist-info}/licenses/LICENSE +0 -0
@@ -1,283 +0,0 @@
1
- """hammad.service.decorators"""
2
-
3
- from typing import (
4
- Any,
5
- Callable,
6
- Dict,
7
- List,
8
- Literal,
9
- Optional,
10
- Type,
11
- Union,
12
- ParamSpec,
13
- TypeVar,
14
- )
15
-
16
-
17
- ServiceFunctionParams = ParamSpec("ServiceFunctionParams")
18
- ServiceFunctionReturn = TypeVar("ServiceFunctionReturn")
19
-
20
-
21
- def serve(
22
- func: Optional[Callable[ServiceFunctionParams, ServiceFunctionReturn]] = None,
23
- *,
24
- # Overrides
25
- name: Optional[str] = None,
26
- method: Literal[
27
- "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"
28
- ] = "POST",
29
- path: str = "/",
30
- # Server configuration
31
- host: str = "0.0.0.0",
32
- port: int = 8000,
33
- log_level: str = "info",
34
- reload: bool = False,
35
- workers: int = 1,
36
- timeout_keep_alive: int = 5,
37
- access_log: bool = True,
38
- use_colors: bool = True,
39
- auto_start: bool = True,
40
- # FastAPI
41
- include_in_schema: bool = True,
42
- dependencies: Optional[List[Callable[..., Any]]] = None,
43
- tags: Optional[List[str]] = None,
44
- description: Optional[str] = None,
45
- ) -> Union[Callable[ServiceFunctionParams, ServiceFunctionReturn], Callable]:
46
- """Decorator to serve a function as a FastAPI endpoint.
47
-
48
- Can be used as a decorator (@serve) or as a function (serve(func)).
49
-
50
- Args:
51
- func: Function to serve (when used as decorator, this is None initially)
52
- name: Service name (defaults to function name)
53
- method: HTTP method to use
54
- path: API endpoint path
55
- host: Host to bind to
56
- port: Port to bind to
57
- log_level: Uvicorn log level
58
- reload: Enable auto-reload
59
- workers: Number of worker processes
60
- timeout_keep_alive: Keep-alive timeout
61
- access_log: Enable access logging
62
- use_colors: Use colored logs
63
- auto_start: Automatically start the server
64
- include_in_schema: Include in OpenAPI schema
65
- dependencies: FastAPI dependencies
66
- tags: API tags
67
- description: API description
68
-
69
- Returns:
70
- The original function (when used as decorator)
71
- """
72
- from .create import create_service
73
- from ..mcp.servers.launcher import find_next_free_port
74
-
75
- def decorator(
76
- f: Callable[ServiceFunctionParams, ServiceFunctionReturn],
77
- ) -> Callable[ServiceFunctionParams, ServiceFunctionReturn]:
78
- # Find next available port if auto_start is True
79
- actual_port = port
80
- if auto_start:
81
- actual_port = find_next_free_port(port, host)
82
-
83
- # Handle dependencies - convert raw functions to FastAPI Depends
84
- processed_dependencies = None
85
- if dependencies is not None:
86
- from fastapi import Depends
87
-
88
- processed_dependencies = [
89
- Depends(dep) if callable(dep) else dep for dep in dependencies
90
- ]
91
-
92
- # Store the service configuration on the function
93
- f._service_config = {
94
- "name": name or f.__name__,
95
- "method": method,
96
- "path": path,
97
- "host": host,
98
- "port": actual_port,
99
- "log_level": log_level,
100
- "reload": reload,
101
- "workers": workers,
102
- "timeout_keep_alive": timeout_keep_alive,
103
- "access_log": access_log,
104
- "use_colors": use_colors,
105
- "auto_start": auto_start,
106
- "include_in_schema": include_in_schema,
107
- "dependencies": processed_dependencies,
108
- "tags": tags,
109
- "description": description,
110
- }
111
-
112
- # Create and start the service immediately if auto_start is True
113
- if auto_start:
114
- create_service(f, **f._service_config)
115
-
116
- return f
117
-
118
- if func is None:
119
- # Called as @serve(...)
120
- return decorator
121
- else:
122
- # Called as @serve (without parentheses)
123
- return decorator(func)
124
-
125
-
126
- def serve_mcp(
127
- fn: Optional[Union[Callable, List[Callable]]] = None,
128
- *,
129
- # MCP Server configuration
130
- name: Optional[str] = None,
131
- instructions: Optional[str] = None,
132
- transport: Literal["stdio", "sse", "streamable-http"] = "stdio",
133
- # Server settings (for sse/http transports)
134
- host: str = "127.0.0.1",
135
- port: int = 8000,
136
- mount_path: str = "/",
137
- sse_path: str = "/sse",
138
- message_path: str = "/messages/",
139
- streamable_http_path: str = "/mcp",
140
- json_response: bool = False,
141
- stateless_http: bool = False,
142
- warn_on_duplicate_resources: bool = True,
143
- warn_on_duplicate_tools: bool = True,
144
- # FastMCP settings
145
- dependencies: Optional[List[str]] = None,
146
- log_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = "INFO",
147
- debug_mode: bool = False,
148
- cwd: Optional[str] = None,
149
- # Launch settings
150
- auto_restart: bool = False,
151
- check_interval: float = 1.0,
152
- # Function-specific parameters (only when single function)
153
- single_func_name: Optional[str] = None,
154
- single_func_description: Optional[str] = None,
155
- ) -> Union[Callable, List[Callable]]:
156
- """Decorator/function to serve functions as MCP server tools.
157
-
158
- Can be used in multiple ways:
159
- 1. As a decorator: @serve_mcp
160
- 2. As a decorator with params: @serve_mcp(name="MyServer")
161
- 3. As a function with single function: serve_mcp(my_func)
162
- 4. As a function with multiple functions: serve_mcp([func1, func2])
163
-
164
- Args:
165
- fn: Function or list of functions to serve
166
- name: MCP server name
167
- instructions: Server instructions
168
- transport: Transport type (stdio, sse, streamable-http)
169
- host: Host for HTTP transports
170
- port: Starting port for HTTP transports
171
- mount_path: Mount path for HTTP servers
172
- sse_path: SSE endpoint path
173
- message_path: Message endpoint path
174
- streamable_http_path: StreamableHTTP endpoint path
175
- json_response: Use JSON responses for HTTP
176
- stateless_http: Use stateless HTTP mode
177
- warn_on_duplicate_resources: Warn on duplicate resources
178
- warn_on_duplicate_tools: Warn on duplicate tools
179
- dependencies: FastMCP dependencies
180
- log_level: Logging level
181
- debug_mode: Enable debug mode
182
- cwd: Working directory
183
- auto_restart: Automatically restart failed servers
184
- check_interval: Health check interval in seconds
185
- single_func_name: Name override for single function
186
- single_func_description: Description for single function
187
-
188
- Returns:
189
- Original function(s) unchanged
190
- """
191
- from ..mcp.servers.launcher import (
192
- launch_mcp_servers,
193
- MCPServerStdioSettings,
194
- MCPServerSseSettings,
195
- MCPServerStreamableHttpSettings,
196
- )
197
-
198
- def _create_server_config(
199
- tools: List[Callable], server_name: str, server_instructions: Optional[str]
200
- ):
201
- """Create the appropriate server configuration based on transport type."""
202
- base_config = {
203
- "name": server_name,
204
- "instructions": server_instructions,
205
- "tools": tools,
206
- "dependencies": dependencies or [],
207
- "log_level": log_level,
208
- "debug_mode": debug_mode,
209
- "cwd": cwd,
210
- }
211
-
212
- if transport == "stdio":
213
- return MCPServerStdioSettings(**base_config)
214
- elif transport == "sse":
215
- return MCPServerSseSettings(
216
- **base_config,
217
- host=host,
218
- start_port=port,
219
- mount_path=mount_path,
220
- sse_path=sse_path,
221
- message_path=message_path,
222
- json_response=json_response,
223
- stateless_http=stateless_http,
224
- warn_on_duplicate_resources=warn_on_duplicate_resources,
225
- warn_on_duplicate_tools=warn_on_duplicate_tools,
226
- )
227
- elif transport == "streamable-http":
228
- return MCPServerStreamableHttpSettings(
229
- **base_config,
230
- host=host,
231
- start_port=port,
232
- mount_path=mount_path,
233
- streamable_http_path=streamable_http_path,
234
- json_response=json_response,
235
- stateless_http=stateless_http,
236
- warn_on_duplicate_resources=warn_on_duplicate_resources,
237
- warn_on_duplicate_tools=warn_on_duplicate_tools,
238
- )
239
- else:
240
- raise ValueError(f"Unsupported transport: {transport}")
241
-
242
- def _launch_server(server_config):
243
- """Launch the MCP server with the given configuration."""
244
- launch_mcp_servers(
245
- servers=[server_config],
246
- check_interval=check_interval,
247
- auto_restart=auto_restart,
248
- )
249
-
250
- def decorator(f: Callable) -> Callable:
251
- """Decorator for single function."""
252
- func_name = single_func_name or name or f.__name__
253
- func_instructions = single_func_description or instructions or f.__doc__
254
-
255
- # Create server configuration and launch
256
- server_config = _create_server_config([f], func_name, func_instructions)
257
- _launch_server(server_config)
258
-
259
- return f
260
-
261
- def handle_multiple_functions(funcs: List[Callable]) -> List[Callable]:
262
- """Handle multiple functions."""
263
- server_name = name or "MCPServer"
264
- server_instructions = instructions or f"MCP server with {len(funcs)} tools"
265
-
266
- # Create server configuration and launch
267
- server_config = _create_server_config(funcs, server_name, server_instructions)
268
- _launch_server(server_config)
269
-
270
- return funcs
271
-
272
- # Handle different call patterns
273
- if fn is None:
274
- # Called as @serve_mcp(...) - return decorator
275
- return decorator
276
- elif callable(fn):
277
- # Called as @serve_mcp (no parentheses) or serve_mcp(single_func)
278
- return decorator(fn)
279
- elif isinstance(fn, list):
280
- # Called as serve_mcp([func1, func2, ...])
281
- return handle_multiple_functions(fn)
282
- else:
283
- raise TypeError(f"Expected callable or list of callables, got {type(fn)}")
hammad/types.py DELETED
@@ -1,288 +0,0 @@
1
- """hammad.types
2
-
3
- Library level reference to nearly all internally defined types within the
4
- `hammad-python` ecosystem.
5
- """
6
-
7
- from typing import TYPE_CHECKING
8
- from ._internal import create_getattr_importer
9
-
10
-
11
- if TYPE_CHECKING:
12
- # ! Cache
13
- from .cache.base_cache import BaseCache, CacheParams, CacheReturn, CacheType
14
- from .cache.file_cache import FileCacheLocation
15
-
16
- # ! CLI
17
- from .cli.styles.types import (
18
- CLIStyleBackgroundType,
19
- CLIStyleBoxName,
20
- CLIStyleColorName,
21
- CLIStyleError,
22
- CLIStyleJustifyMethod,
23
- CLIStyleOverflowMethod,
24
- CLIStyleStyleName,
25
- CLIStyleType,
26
- CLIStyleVerticalOverflowMethod,
27
- )
28
-
29
- # ! DATA
30
- from .data.sql.database import (
31
- DatabaseItemType,
32
- DatabaseItem,
33
- DatabaseError,
34
- DatabaseItemFilters,
35
- )
36
- from .data.types.file import File, FileSource
37
- from .data.types.multimodal.audio import Audio
38
- from .data.types.multimodal.image import (
39
- Image,
40
- )
41
- from .data.types.text import (
42
- Text,
43
- SimpleText,
44
- CodeSection,
45
- SchemaSection,
46
- OutputFormat,
47
- OutputText,
48
- )
49
- from .data.configurations import Configuration
50
-
51
- # ! GENAI
52
- from .genai.types.base import (
53
- BaseGenAIModel,
54
- BaseGenAIModelEvent,
55
- BaseGenAIModelResponse,
56
- BaseGenAIModelSettings,
57
- BaseGenAIModelStream,
58
- )
59
- from .genai.types.history import History
60
- from .genai.types.tools import Tool, BaseTool, ToolResponseMessage
61
- from .genai.agents.types.agent_context import AgentContext
62
- from .genai.agents.types.agent_event import AgentEvent
63
- from .genai.agents.types.agent_hooks import HookManager, HookDecorator
64
- from .genai.agents.types.agent_messages import AgentMessages
65
- from .genai.agents.types.agent_response import AgentResponse
66
- from .genai.agents.types.agent_stream import AgentStream, AgentResponseChunk
67
- from .genai.graphs.types import (
68
- GraphContext,
69
- GraphEnd,
70
- GraphEvent,
71
- GraphHistoryEntry,
72
- GraphResponse,
73
- GraphNode,
74
- GraphResponseChunk,
75
- GraphRunContext,
76
- GraphStream,
77
- GraphState,
78
- BaseGraph,
79
- PydanticGraphContext,
80
- )
81
- from .genai.models.embeddings.types.embedding_model_name import EmbeddingModelName
82
- from .genai.models.embeddings.types.embedding_model_response import (
83
- EmbeddingModelResponse,
84
- )
85
- from .genai.models.embeddings.types.embedding_model_run_params import (
86
- EmbeddingModelRunParams,
87
- )
88
- from .genai.models.language.types.language_model_instructor_mode import (
89
- LanguageModelInstructorMode,
90
- )
91
- from .genai.models.language.types.language_model_name import LanguageModelName
92
- from .genai.models.language.types.language_model_messages import (
93
- LanguageModelMessages,
94
- )
95
- from .genai.models.language.types.language_model_response import (
96
- LanguageModelResponse,
97
- )
98
- from .genai.models.language.types.language_model_response_chunk import (
99
- LanguageModelResponseChunk,
100
- )
101
- from .genai.models.language.types.language_model_request import LanguageModelRequest
102
- from .genai.models.language.types.language_model_response import (
103
- LanguageModelResponse,
104
- )
105
- from .genai.models.language.types.language_model_response_chunk import (
106
- LanguageModelResponseChunk,
107
- )
108
- from .genai.models.language.types.language_model_stream import LanguageModelStream
109
- from .genai.models.language.types.language_model_settings import (
110
- LanguageModelSettings,
111
- )
112
-
113
- # ! LOGGING
114
- from .logging.logger import (
115
- LoggerLevelSettings,
116
- LoggerLevelName,
117
- FileConfig,
118
- LoggerConfig,
119
- )
120
-
121
- # ! MCP
122
- from .mcp import (
123
- MCPClientSseSettings,
124
- MCPClientStdioSettings,
125
- MCPClientStreamableHttpSettings,
126
- MCPServerSseSettings,
127
- MCPServerStdioSettings,
128
- MCPServerStreamableHttpSettings,
129
- )
130
-
131
- # ! SERVICE
132
- from .service.create import (
133
- ServiceConfig,
134
- ServiceStatus,
135
- )
136
- from .service.decorators import ServiceFunctionParams, ServiceFunctionReturn
137
-
138
- # ! WEB
139
- from .web.models import (
140
- SearchResult,
141
- NewsResult,
142
- SearchResults,
143
- NewsResults,
144
- LinkInfo,
145
- ImageInfo,
146
- SelectedElement,
147
- WebPageResult,
148
- WebPageErrorResult,
149
- ExtractedLink,
150
- HttpResponse,
151
- WebPageResults,
152
- )
153
- from .web.http.client import (
154
- HttpError,
155
- HttpRequest,
156
- HttpResponse,
157
- )
158
- from .web.openapi.client import (
159
- OpenAPIError,
160
- ParameterInfo,
161
- RequestBodyInfo,
162
- ResponseInfo,
163
- OpenAPIOperation,
164
- OpenAPISpec,
165
- )
166
-
167
-
168
- __all__ = (
169
- # ! Cache
170
- "BaseCache",
171
- "CacheParams",
172
- "CacheReturn",
173
- "CacheType",
174
- "FileCacheLocation",
175
- # ! CLI
176
- "CLIStyleBackgroundType",
177
- "CLIStyleBoxName",
178
- "CLIStyleColorName",
179
- "CLIStyleError",
180
- "CLIStyleJustifyMethod",
181
- "CLIStyleOverflowMethod",
182
- "CLIStyleStyleName",
183
- "CLIStyleType",
184
- "CLIStyleVerticalOverflowMethod",
185
- # ! DATA
186
- "DatabaseItemType",
187
- "DatabaseItem",
188
- "DatabaseError",
189
- "DatabaseItemFilters",
190
- "File",
191
- "FileSource",
192
- "Audio",
193
- "Image",
194
- "Text",
195
- "SimpleText",
196
- "CodeSection",
197
- "SchemaSection",
198
- "OutputFormat",
199
- "OutputText",
200
- "Configuration",
201
- # ! GENAI
202
- "BaseGenAIModel",
203
- "BaseGenAIModelEvent",
204
- "BaseGenAIModelResponse",
205
- "BaseGenAIModelSettings",
206
- "BaseGenAIModelStream",
207
- "History",
208
- "Tool",
209
- "BaseTool",
210
- "ToolResponseMessage",
211
- "AgentContext",
212
- "AgentEvent",
213
- "HookManager",
214
- "HookDecorator",
215
- "AgentMessages",
216
- "AgentResponse",
217
- "AgentStream",
218
- "AgentResponseChunk",
219
- "GraphContext",
220
- "GraphEnd",
221
- "GraphEvent",
222
- "GraphHistoryEntry",
223
- "GraphResponse",
224
- "GraphNode",
225
- "GraphResponseChunk",
226
- "GraphRunContext",
227
- "GraphStream",
228
- "GraphState",
229
- "BaseGraph",
230
- "PydanticGraphContext",
231
- "EmbeddingModelName",
232
- "EmbeddingModelResponse",
233
- "EmbeddingModelRunParams",
234
- "LanguageModelInstructorMode",
235
- "LanguageModelName",
236
- "LanguageModelMessages",
237
- "LanguageModelResponse",
238
- "LanguageModelResponseChunk",
239
- "LanguageModelRequest",
240
- "LanguageModelStream",
241
- "LanguageModelSettings",
242
- # ! LOGGING
243
- "LoggerLevelSettings",
244
- "LoggerLevelName",
245
- "FileConfig",
246
- "LoggerConfig",
247
- # ! MCP
248
- "MCPClientSseSettings",
249
- "MCPClientStdioSettings",
250
- "MCPClientStreamableHttpSettings",
251
- "MCPServerSseSettings",
252
- "MCPServerStdioSettings",
253
- "MCPServerStreamableHttpSettings",
254
- # ! SERVICE
255
- "ServiceConfig",
256
- "ServiceStatus",
257
- "ServiceFunctionParams",
258
- "ServiceFunctionReturn",
259
- # ! WEB
260
- "SearchResult",
261
- "NewsResult",
262
- "SearchResults",
263
- "NewsResults",
264
- "LinkInfo",
265
- "ImageInfo",
266
- "SelectedElement",
267
- "WebPageResult",
268
- "WebPageErrorResult",
269
- "ExtractedLink",
270
- "HttpResponse",
271
- "WebPageResults",
272
- "HttpError",
273
- "HttpRequest",
274
- "OpenAPIError",
275
- "ParameterInfo",
276
- "RequestBodyInfo",
277
- "ResponseInfo",
278
- "OpenAPIOperation",
279
- "OpenAPISpec",
280
- )
281
-
282
-
283
- __getattr__ = create_getattr_importer(__all__)
284
-
285
-
286
- def __dir__() -> list[str]:
287
- """Get the attributes of the types module."""
288
- return list(__all__)