batchwork-ai 0.1.1__tar.gz

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 (40) hide show
  1. batchwork_ai-0.1.1/LICENSE +21 -0
  2. batchwork_ai-0.1.1/PKG-INFO +143 -0
  3. batchwork_ai-0.1.1/README.md +114 -0
  4. batchwork_ai-0.1.1/pyproject.toml +70 -0
  5. batchwork_ai-0.1.1/src/batchwork/__init__.py +261 -0
  6. batchwork_ai-0.1.1/src/batchwork/_anthropic_serialization.py +432 -0
  7. batchwork_ai-0.1.1/src/batchwork/_compatible_media.py +147 -0
  8. batchwork_ai-0.1.1/src/batchwork/_google_schema.py +134 -0
  9. batchwork_ai-0.1.1/src/batchwork/_google_serialization.py +239 -0
  10. batchwork_ai-0.1.1/src/batchwork/_network.py +79 -0
  11. batchwork_ai-0.1.1/src/batchwork/_serialization.py +1467 -0
  12. batchwork_ai-0.1.1/src/batchwork/_typing.py +15 -0
  13. batchwork_ai-0.1.1/src/batchwork/body.py +1170 -0
  14. batchwork_ai-0.1.1/src/batchwork/client.py +489 -0
  15. batchwork_ai-0.1.1/src/batchwork/errors.py +47 -0
  16. batchwork_ai-0.1.1/src/batchwork/job.py +145 -0
  17. batchwork_ai-0.1.1/src/batchwork/media.py +452 -0
  18. batchwork_ai-0.1.1/src/batchwork/providers/__init__.py +46 -0
  19. batchwork_ai-0.1.1/src/batchwork/providers/adapter.py +36 -0
  20. batchwork_ai-0.1.1/src/batchwork/providers/anthropic.py +246 -0
  21. batchwork_ai-0.1.1/src/batchwork/providers/google.py +309 -0
  22. batchwork_ai-0.1.1/src/batchwork/providers/groq.py +5 -0
  23. batchwork_ai-0.1.1/src/batchwork/providers/ids.py +22 -0
  24. batchwork_ai-0.1.1/src/batchwork/providers/mistral.py +153 -0
  25. batchwork_ai-0.1.1/src/batchwork/providers/openai.py +5 -0
  26. batchwork_ai-0.1.1/src/batchwork/providers/openai_compatible.py +373 -0
  27. batchwork_ai-0.1.1/src/batchwork/providers/shared.py +383 -0
  28. batchwork_ai-0.1.1/src/batchwork/providers/together.py +5 -0
  29. batchwork_ai-0.1.1/src/batchwork/providers/xai.py +217 -0
  30. batchwork_ai-0.1.1/src/batchwork/py.typed +1 -0
  31. batchwork_ai-0.1.1/src/batchwork/server/__init__.py +77 -0
  32. batchwork_ai-0.1.1/src/batchwork/server/models.py +93 -0
  33. batchwork_ai-0.1.1/src/batchwork/server/poller.py +321 -0
  34. batchwork_ai-0.1.1/src/batchwork/server/signing.py +262 -0
  35. batchwork_ai-0.1.1/src/batchwork/server/transport.py +232 -0
  36. batchwork_ai-0.1.1/src/batchwork/stores/__init__.py +14 -0
  37. batchwork_ai-0.1.1/src/batchwork/stores/base.py +24 -0
  38. batchwork_ai-0.1.1/src/batchwork/stores/memory.py +44 -0
  39. batchwork_ai-0.1.1/src/batchwork/stores/redis.py +110 -0
  40. batchwork_ai-0.1.1/src/batchwork/types.py +685 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ajanraj
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,143 @@
1
+ Metadata-Version: 2.4
2
+ Name: batchwork-ai
3
+ Version: 0.1.1
4
+ Summary: Unified async batch API for AI providers
5
+ Keywords: ai,anthropic,batch,gemini,llm,openai
6
+ Author: Ajanraj
7
+ Author-email: Ajanraj <hey@ajanraj.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Framework :: AsyncIO
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Typing :: Typed
19
+ Requires-Dist: httpcore>=1,<2
20
+ Requires-Dist: httpx>=0.28,<1
21
+ Requires-Dist: pydantic>=2.11,<3
22
+ Requires-Dist: upstash-redis>=1.4,<2 ; extra == 'redis'
23
+ Maintainer: Ajanraj
24
+ Maintainer-email: Ajanraj <hey@ajanraj.com>
25
+ Requires-Python: >=3.11
26
+ Project-URL: Documentation, https://batchwork.ajanraj.com
27
+ Provides-Extra: redis
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Batchwork
31
+
32
+ Unified async batch API for OpenAI, Anthropic, Google Gemini, Groq, Mistral, Together AI, and xAI. Access provider-native batch pricing—often up to 50% lower than standard synchronous requests—through one typed interface while Batchwork handles provider-specific serialization, submission, polling, and result normalization. Pricing and eligibility remain provider- and model-specific. Built for Python by Ajanraj.
33
+
34
+ - One typed API for provider-native batch jobs
35
+ - Text, embedding, and image workloads
36
+ - Normalized jobs, results, usage, and errors
37
+ - Messages, tools, structured content, and remote media
38
+ - Polling, persistent stores, and signed webhooks
39
+ - No provider SDK or JavaScript runtime dependencies
40
+
41
+ 📖 **Full documentation: [batchwork.ajanraj.com](https://batchwork.ajanraj.com)**
42
+
43
+ ## Installation
44
+
45
+ Batchwork requires Python 3.11 or newer.
46
+
47
+ With uv:
48
+
49
+ ```bash
50
+ uv add batchwork-ai
51
+ ```
52
+
53
+ With pip:
54
+
55
+ ```bash
56
+ pip install batchwork-ai
57
+ ```
58
+
59
+ Then configure a provider credential:
60
+
61
+ ```bash
62
+ export OPENAI_API_KEY="..."
63
+ ```
64
+
65
+ See [Configuration](https://batchwork.ajanraj.com/docs/configuration) for every provider credential, endpoint override, model format, and batch limit.
66
+
67
+ ## Quickstart
68
+
69
+ ```python
70
+ import asyncio
71
+
72
+ from batchwork import BatchRequest, Batchwork
73
+
74
+
75
+ async def main() -> None:
76
+ async with Batchwork() as client:
77
+ job = await client.batch(
78
+ model="openai/gpt-5.6-sol",
79
+ requests=[BatchRequest(custom_id="hello", prompt="Say hello")],
80
+ )
81
+ await job.wait(timeout=3600)
82
+
83
+ for result in await job.collect():
84
+ print(result.custom_id, result.text)
85
+
86
+
87
+ asyncio.run(main())
88
+ ```
89
+
90
+ Submitting returns a `BatchJob` immediately. Provider processing is asynchronous and may take minutes or, depending on the provider and workload, up to 24 hours.
91
+
92
+ Models use `provider/model` form. Results are correlated with requests through `custom_id`; provider output order is not guaranteed.
93
+
94
+ ## Providers
95
+
96
+ Output workloads supported by Batchwork:
97
+
98
+ | Provider | Text | Embeddings | Image generation |
99
+ | ------------- | ---- | ---------- | ---------------- |
100
+ | OpenAI | Yes | Yes | Yes |
101
+ | Anthropic | Yes | No | No |
102
+ | Google Gemini | Yes | Yes | Yes |
103
+ | Groq | Yes | No | No |
104
+ | Mistral | Yes | Yes | No |
105
+ | Together AI | Yes | No | No |
106
+ | xAI | Yes | No | Yes |
107
+
108
+ Image, PDF, text-file, and audio inputs for text requests vary separately from output modalities. Provider APIs may also impose model-specific limits. See the [provider overview](https://batchwork.ajanraj.com/docs/providers) for input support, submission transport, credentials, and restrictions.
109
+
110
+ ## Optional Redis store
111
+
112
+ Install the Upstash Redis integration for persistent polling state:
113
+
114
+ ```bash
115
+ uv add "batchwork-ai[redis]"
116
+ # or
117
+ pip install "batchwork-ai[redis]"
118
+ ```
119
+
120
+ The base package does not import or require `upstash-redis`.
121
+
122
+ ## Documentation
123
+
124
+ - [Installation](https://batchwork.ajanraj.com/docs/installation)
125
+ - [Configuration](https://batchwork.ajanraj.com/docs/configuration)
126
+ - [Jobs](https://batchwork.ajanraj.com/docs/guides/jobs)
127
+ - [Results](https://batchwork.ajanraj.com/docs/guides/results)
128
+ - [Text, embeddings, and images](https://batchwork.ajanraj.com/docs/modalities/text)
129
+ - [Provider overview](https://batchwork.ajanraj.com/docs/providers)
130
+ - [Polling and webhooks](https://batchwork.ajanraj.com/docs/guides/server)
131
+ - [Stores](https://batchwork.ajanraj.com/docs/guides/stores)
132
+ - [Security](https://batchwork.ajanraj.com/docs/guides/security)
133
+ - [Examples](https://batchwork.ajanraj.com/docs/examples)
134
+ - [Public API](https://batchwork.ajanraj.com/docs/api)
135
+ - [FAQ](https://batchwork.ajanraj.com/docs/faq)
136
+
137
+ ## License
138
+
139
+ [MIT](https://opensource.org/licenses/MIT) © [Ajanraj](https://github.com/ajanraj)
140
+
141
+ ## Acknowledgements
142
+
143
+ Inspired by [Hayden Bleasel's Batchwork](https://github.com/haydenbleasel/batchwork).
@@ -0,0 +1,114 @@
1
+ # Batchwork
2
+
3
+ Unified async batch API for OpenAI, Anthropic, Google Gemini, Groq, Mistral, Together AI, and xAI. Access provider-native batch pricing—often up to 50% lower than standard synchronous requests—through one typed interface while Batchwork handles provider-specific serialization, submission, polling, and result normalization. Pricing and eligibility remain provider- and model-specific. Built for Python by Ajanraj.
4
+
5
+ - One typed API for provider-native batch jobs
6
+ - Text, embedding, and image workloads
7
+ - Normalized jobs, results, usage, and errors
8
+ - Messages, tools, structured content, and remote media
9
+ - Polling, persistent stores, and signed webhooks
10
+ - No provider SDK or JavaScript runtime dependencies
11
+
12
+ 📖 **Full documentation: [batchwork.ajanraj.com](https://batchwork.ajanraj.com)**
13
+
14
+ ## Installation
15
+
16
+ Batchwork requires Python 3.11 or newer.
17
+
18
+ With uv:
19
+
20
+ ```bash
21
+ uv add batchwork-ai
22
+ ```
23
+
24
+ With pip:
25
+
26
+ ```bash
27
+ pip install batchwork-ai
28
+ ```
29
+
30
+ Then configure a provider credential:
31
+
32
+ ```bash
33
+ export OPENAI_API_KEY="..."
34
+ ```
35
+
36
+ See [Configuration](https://batchwork.ajanraj.com/docs/configuration) for every provider credential, endpoint override, model format, and batch limit.
37
+
38
+ ## Quickstart
39
+
40
+ ```python
41
+ import asyncio
42
+
43
+ from batchwork import BatchRequest, Batchwork
44
+
45
+
46
+ async def main() -> None:
47
+ async with Batchwork() as client:
48
+ job = await client.batch(
49
+ model="openai/gpt-5.6-sol",
50
+ requests=[BatchRequest(custom_id="hello", prompt="Say hello")],
51
+ )
52
+ await job.wait(timeout=3600)
53
+
54
+ for result in await job.collect():
55
+ print(result.custom_id, result.text)
56
+
57
+
58
+ asyncio.run(main())
59
+ ```
60
+
61
+ Submitting returns a `BatchJob` immediately. Provider processing is asynchronous and may take minutes or, depending on the provider and workload, up to 24 hours.
62
+
63
+ Models use `provider/model` form. Results are correlated with requests through `custom_id`; provider output order is not guaranteed.
64
+
65
+ ## Providers
66
+
67
+ Output workloads supported by Batchwork:
68
+
69
+ | Provider | Text | Embeddings | Image generation |
70
+ | ------------- | ---- | ---------- | ---------------- |
71
+ | OpenAI | Yes | Yes | Yes |
72
+ | Anthropic | Yes | No | No |
73
+ | Google Gemini | Yes | Yes | Yes |
74
+ | Groq | Yes | No | No |
75
+ | Mistral | Yes | Yes | No |
76
+ | Together AI | Yes | No | No |
77
+ | xAI | Yes | No | Yes |
78
+
79
+ Image, PDF, text-file, and audio inputs for text requests vary separately from output modalities. Provider APIs may also impose model-specific limits. See the [provider overview](https://batchwork.ajanraj.com/docs/providers) for input support, submission transport, credentials, and restrictions.
80
+
81
+ ## Optional Redis store
82
+
83
+ Install the Upstash Redis integration for persistent polling state:
84
+
85
+ ```bash
86
+ uv add "batchwork-ai[redis]"
87
+ # or
88
+ pip install "batchwork-ai[redis]"
89
+ ```
90
+
91
+ The base package does not import or require `upstash-redis`.
92
+
93
+ ## Documentation
94
+
95
+ - [Installation](https://batchwork.ajanraj.com/docs/installation)
96
+ - [Configuration](https://batchwork.ajanraj.com/docs/configuration)
97
+ - [Jobs](https://batchwork.ajanraj.com/docs/guides/jobs)
98
+ - [Results](https://batchwork.ajanraj.com/docs/guides/results)
99
+ - [Text, embeddings, and images](https://batchwork.ajanraj.com/docs/modalities/text)
100
+ - [Provider overview](https://batchwork.ajanraj.com/docs/providers)
101
+ - [Polling and webhooks](https://batchwork.ajanraj.com/docs/guides/server)
102
+ - [Stores](https://batchwork.ajanraj.com/docs/guides/stores)
103
+ - [Security](https://batchwork.ajanraj.com/docs/guides/security)
104
+ - [Examples](https://batchwork.ajanraj.com/docs/examples)
105
+ - [Public API](https://batchwork.ajanraj.com/docs/api)
106
+ - [FAQ](https://batchwork.ajanraj.com/docs/faq)
107
+
108
+ ## License
109
+
110
+ [MIT](https://opensource.org/licenses/MIT) © [Ajanraj](https://github.com/ajanraj)
111
+
112
+ ## Acknowledgements
113
+
114
+ Inspired by [Hayden Bleasel's Batchwork](https://github.com/haydenbleasel/batchwork).
@@ -0,0 +1,70 @@
1
+ [build-system]
2
+ requires = ["uv_build>=0.11.29,<0.12"]
3
+ build-backend = "uv_build"
4
+
5
+ [project]
6
+ name = "batchwork-ai"
7
+ version = "0.1.1"
8
+ description = "Unified async batch API for AI providers"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Ajanraj", email = "hey@ajanraj.com" }]
14
+ maintainers = [{ name = "Ajanraj", email = "hey@ajanraj.com" }]
15
+ keywords = ["ai", "anthropic", "batch", "gemini", "llm", "openai"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Framework :: AsyncIO",
19
+ "Intended Audience :: Developers",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Programming Language :: Python :: 3.14",
25
+ "Typing :: Typed",
26
+ ]
27
+ dependencies = [
28
+ "httpcore>=1,<2",
29
+ "httpx>=0.28,<1",
30
+ "pydantic>=2.11,<3",
31
+ ]
32
+
33
+ [project.optional-dependencies]
34
+ redis = ["upstash-redis>=1.4,<2"]
35
+
36
+ [project.urls]
37
+ Documentation = "https://batchwork.ajanraj.com"
38
+
39
+ [dependency-groups]
40
+ dev = [
41
+ "pytest>=8.4,<9",
42
+ "pytest-asyncio>=1,<2",
43
+ "pytest-cov>=6.2,<7",
44
+ "ruff>=0.12,<1",
45
+ "twine>=6.1,<7",
46
+ "ty==0.0.59",
47
+ ]
48
+
49
+ [tool.uv.build-backend]
50
+ module-name = "batchwork"
51
+ module-root = "src"
52
+
53
+ [tool.pytest.ini_options]
54
+ addopts = "-q"
55
+ asyncio_mode = "auto"
56
+ testpaths = ["tests"]
57
+ markers = [
58
+ "live: requires real provider credentials",
59
+ "redis: requires Upstash Redis credentials",
60
+ ]
61
+
62
+ [tool.ruff]
63
+ line-length = 100
64
+ target-version = "py311"
65
+
66
+ [tool.ruff.lint]
67
+ select = ["E", "F", "I", "UP", "B", "ASYNC", "RUF"]
68
+
69
+ [tool.ty.src]
70
+ include = ["src"]
@@ -0,0 +1,261 @@
1
+ """Unified async batch API for AI providers."""
2
+
3
+ from .client import Batchwork
4
+ from .errors import (
5
+ BatchClosedError,
6
+ BatchStateError,
7
+ BatchTimeoutError,
8
+ BatchworkError,
9
+ MediaResolutionError,
10
+ MissingDependencyError,
11
+ UnsupportedProviderError,
12
+ )
13
+ from .job import BatchJob, PollCallback
14
+ from .media import DefaultMediaResolver, MediaResolver, ResolvedMedia
15
+ from .server import (
16
+ AtomicWebhookReplayStore,
17
+ BatchPoller,
18
+ BatchStore,
19
+ BatchWebhookEvent,
20
+ CompletionSink,
21
+ CredentialResolver,
22
+ ErrorHandler,
23
+ MemoryBatchStore,
24
+ MemoryWebhookReplayStore,
25
+ PinnedWebhookTransport,
26
+ RedisBatchStore,
27
+ TickFailure,
28
+ TickResult,
29
+ TrackedBatch,
30
+ TrackTarget,
31
+ UpstashRedis,
32
+ VerifiedWebhook,
33
+ WebhookEventType,
34
+ WebhookReplayStore,
35
+ WebhookResponse,
36
+ WebhookTransport,
37
+ WebhookUrlValidator,
38
+ create_batch_poller,
39
+ create_memory_store,
40
+ create_redis_store,
41
+ parse_webhook_url,
42
+ resolve_public_addresses,
43
+ sign_webhook,
44
+ validate_webhook_url,
45
+ verify_batch_webhook,
46
+ verify_webhook,
47
+ )
48
+ from .types import (
49
+ TERMINAL_STATUSES,
50
+ AssistantContentPart,
51
+ AssistantMessage,
52
+ BatchDefaults,
53
+ BatchEmbeddingRequest,
54
+ BatchImage,
55
+ BatchImageDefaults,
56
+ BatchImageRequest,
57
+ BatchLimits,
58
+ BatchProvider,
59
+ BatchRef,
60
+ BatchRequest,
61
+ BatchRequestCounts,
62
+ BatchRequestSettings,
63
+ BatchResult,
64
+ BatchResultError,
65
+ BatchResultStatus,
66
+ BatchSnapshot,
67
+ BatchStatus,
68
+ BatchUsage,
69
+ ContentToolOutput,
70
+ CustomPart,
71
+ DeprecatedToolOutputFileDataPart,
72
+ DeprecatedToolOutputFileIdPart,
73
+ DeprecatedToolOutputFileReferencePart,
74
+ DeprecatedToolOutputFileUrlPart,
75
+ DeprecatedToolOutputImageDataPart,
76
+ DeprecatedToolOutputImageFileIdPart,
77
+ DeprecatedToolOutputImageFileReferencePart,
78
+ DeprecatedToolOutputImageUrlPart,
79
+ ErrorJsonToolOutput,
80
+ ErrorTextToolOutput,
81
+ ExecutionDeniedToolOutput,
82
+ FilePart,
83
+ FunctionTool,
84
+ ImagePart,
85
+ JsonScalar,
86
+ JsonToolOutput,
87
+ JsonValue,
88
+ MediaSource,
89
+ ModelKind,
90
+ ModelMessage,
91
+ ModelSpec,
92
+ NamedToolChoice,
93
+ ProviderCredentials,
94
+ ProviderDefinedTool,
95
+ ProviderFileReference,
96
+ ProviderOptions,
97
+ ProviderToolChoice,
98
+ ReasoningFilePart,
99
+ ReasoningMediaSource,
100
+ ReasoningPart,
101
+ SystemMessage,
102
+ TaggedFileData,
103
+ TaggedFileDataData,
104
+ TaggedFileDataReference,
105
+ TaggedFileDataText,
106
+ TaggedFileDataUrl,
107
+ TaggedReasoningFileData,
108
+ TextPart,
109
+ TextToolOutput,
110
+ Tool,
111
+ ToolApprovalRequestPart,
112
+ ToolApprovalResponsePart,
113
+ ToolCallPart,
114
+ ToolChoice,
115
+ ToolContentPart,
116
+ ToolMessage,
117
+ ToolOutput,
118
+ ToolOutputContentPart,
119
+ ToolOutputCustomPart,
120
+ ToolOutputFilePart,
121
+ ToolOutputTextPart,
122
+ ToolResultPart,
123
+ UserContentPart,
124
+ UserMessage,
125
+ coerce_credentials,
126
+ is_terminal_status,
127
+ provider_from_ref,
128
+ resolve_model,
129
+ utc_datetime,
130
+ )
131
+
132
+ __version__ = "0.1.1"
133
+
134
+ __all__ = [
135
+ "TERMINAL_STATUSES",
136
+ "AssistantContentPart",
137
+ "AssistantMessage",
138
+ "AtomicWebhookReplayStore",
139
+ "BatchClosedError",
140
+ "BatchDefaults",
141
+ "BatchEmbeddingRequest",
142
+ "BatchImage",
143
+ "BatchImageDefaults",
144
+ "BatchImageRequest",
145
+ "BatchJob",
146
+ "BatchLimits",
147
+ "BatchPoller",
148
+ "BatchProvider",
149
+ "BatchRef",
150
+ "BatchRequest",
151
+ "BatchRequestCounts",
152
+ "BatchRequestSettings",
153
+ "BatchResult",
154
+ "BatchResultError",
155
+ "BatchResultStatus",
156
+ "BatchSnapshot",
157
+ "BatchStateError",
158
+ "BatchStatus",
159
+ "BatchStore",
160
+ "BatchTimeoutError",
161
+ "BatchUsage",
162
+ "BatchWebhookEvent",
163
+ "Batchwork",
164
+ "BatchworkError",
165
+ "CompletionSink",
166
+ "ContentToolOutput",
167
+ "CredentialResolver",
168
+ "CustomPart",
169
+ "DefaultMediaResolver",
170
+ "DeprecatedToolOutputFileDataPart",
171
+ "DeprecatedToolOutputFileIdPart",
172
+ "DeprecatedToolOutputFileReferencePart",
173
+ "DeprecatedToolOutputFileUrlPart",
174
+ "DeprecatedToolOutputImageDataPart",
175
+ "DeprecatedToolOutputImageFileIdPart",
176
+ "DeprecatedToolOutputImageFileReferencePart",
177
+ "DeprecatedToolOutputImageUrlPart",
178
+ "ErrorHandler",
179
+ "ErrorJsonToolOutput",
180
+ "ErrorTextToolOutput",
181
+ "ExecutionDeniedToolOutput",
182
+ "FilePart",
183
+ "FunctionTool",
184
+ "ImagePart",
185
+ "JsonScalar",
186
+ "JsonToolOutput",
187
+ "JsonValue",
188
+ "MediaResolutionError",
189
+ "MediaResolver",
190
+ "MediaSource",
191
+ "MemoryBatchStore",
192
+ "MemoryWebhookReplayStore",
193
+ "MissingDependencyError",
194
+ "ModelKind",
195
+ "ModelMessage",
196
+ "ModelSpec",
197
+ "NamedToolChoice",
198
+ "PinnedWebhookTransport",
199
+ "PollCallback",
200
+ "ProviderCredentials",
201
+ "ProviderDefinedTool",
202
+ "ProviderFileReference",
203
+ "ProviderOptions",
204
+ "ProviderToolChoice",
205
+ "ReasoningFilePart",
206
+ "ReasoningMediaSource",
207
+ "ReasoningPart",
208
+ "RedisBatchStore",
209
+ "ResolvedMedia",
210
+ "SystemMessage",
211
+ "TaggedFileData",
212
+ "TaggedFileDataData",
213
+ "TaggedFileDataReference",
214
+ "TaggedFileDataText",
215
+ "TaggedFileDataUrl",
216
+ "TaggedReasoningFileData",
217
+ "TextPart",
218
+ "TextToolOutput",
219
+ "TickFailure",
220
+ "TickResult",
221
+ "Tool",
222
+ "ToolApprovalRequestPart",
223
+ "ToolApprovalResponsePart",
224
+ "ToolCallPart",
225
+ "ToolChoice",
226
+ "ToolContentPart",
227
+ "ToolMessage",
228
+ "ToolOutput",
229
+ "ToolOutputContentPart",
230
+ "ToolOutputCustomPart",
231
+ "ToolOutputFilePart",
232
+ "ToolOutputTextPart",
233
+ "ToolResultPart",
234
+ "TrackTarget",
235
+ "TrackedBatch",
236
+ "UnsupportedProviderError",
237
+ "UpstashRedis",
238
+ "UserContentPart",
239
+ "UserMessage",
240
+ "VerifiedWebhook",
241
+ "WebhookEventType",
242
+ "WebhookReplayStore",
243
+ "WebhookResponse",
244
+ "WebhookTransport",
245
+ "WebhookUrlValidator",
246
+ "__version__",
247
+ "coerce_credentials",
248
+ "create_batch_poller",
249
+ "create_memory_store",
250
+ "create_redis_store",
251
+ "is_terminal_status",
252
+ "parse_webhook_url",
253
+ "provider_from_ref",
254
+ "resolve_model",
255
+ "resolve_public_addresses",
256
+ "sign_webhook",
257
+ "utc_datetime",
258
+ "validate_webhook_url",
259
+ "verify_batch_webhook",
260
+ "verify_webhook",
261
+ ]