Skip to content

Commit 10cb4fb

Browse files
yanomalyWorkshop Participant
authored andcommitted
Writer model provider (strands-agents#228)
* feat: palmyra provider initial version * test: unit tests for Palmyra provider * feat: message content formatter for different palmyra models * test: integration tests for palmyra provider * refactor: changes made by hatch formatter * refactor: rename filew with Writer name instead of Palmyra * refactor: change writer provider integration tests structure * feat: structured outputs for Writer provider * refactor: add an upper version limit of writer-sdk dependency * feat: image inputs for Writer models * refactor: change name of config parameter to specify model from 'model' to 'model_id' * fix: solve issue for case of empty metadata * fix: delete unused config arguments * fix: pyproject.toml fix to pass linters * fix: fix methods signature to pass updated tests * feat: implement usage of async Writer client istead of sync * test: add tests for async agent calls
1 parent ea6c2b9 commit 10cb4fb

File tree

4 files changed

+931
-3
lines changed

4 files changed

+931
-3
lines changed

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ openai = [
8383
otel = [
8484
"opentelemetry-exporter-otlp-proto-http>=1.30.0,<2.0.0",
8585
]
86+
writer = [
87+
"writer-sdk>=2.2.0,<3.0.0"
88+
]
89+
8690
a2a = [
8791
"a2a-sdk[sql]>=0.2.11",
8892
"uvicorn>=0.34.2",
@@ -96,7 +100,7 @@ a2a = [
96100
source = "vcs"
97101

98102
[tool.hatch.envs.hatch-static-analysis]
99-
features = ["anthropic", "litellm", "llamaapi", "ollama", "openai", "otel","mistral"]
103+
features = ["anthropic", "litellm", "llamaapi", "ollama", "openai", "otel", "mistral", "writer"]
100104
dependencies = [
101105
"mypy>=1.15.0,<2.0.0",
102106
"ruff>=0.11.6,<0.12.0",
@@ -120,7 +124,7 @@ lint-fix = [
120124
]
121125

122126
[tool.hatch.envs.hatch-test]
123-
features = ["anthropic", "litellm", "llamaapi", "ollama", "openai", "otel","mistral"]
127+
features = ["anthropic", "litellm", "llamaapi", "ollama", "openai", "otel", "mistral", "writer"]
124128
extra-dependencies = [
125129
"moto>=5.1.0,<6.0.0",
126130
"pytest>=8.0.0,<9.0.0",
@@ -136,7 +140,7 @@ extra-args = [
136140

137141
[tool.hatch.envs.dev]
138142
dev-mode = true
139-
features = ["dev", "docs", "anthropic", "litellm", "llamaapi", "ollama", "otel","mistral"]
143+
features = ["dev", "docs", "anthropic", "litellm", "llamaapi", "ollama", "otel", "mistral", "writer"]
140144

141145
[tool.hatch.envs.a2a]
142146
dev-mode = true

0 commit comments

Comments
 (0)