Commit c402f55
temporal-spring-ai: README expansion and default-model-name consolidation (#2861)
* temporal-spring-ai: plan — README expansion and default-model-name cleanup
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* temporal-spring-ai: README expansion and default-model-name consolidation
Moves the "default" model-name constant from SpringAiPlugin to
ChatModelTypes and uses it from both SpringAiPlugin and
ChatModelActivityImpl. Removes the duplicate literal in the activity's
single-arg constructor (which had drifted — the constant existed but
the activity kept its own copy). ChatModelTypes is the logical home:
the activity package already imports it, so hosting the constant there
avoids the activity → plugin import direction that would otherwise be
a package cycle.
README gains four new sections:
- Migrating from plain Spring AI: a three-row table showing which
three substitutions get an existing ChatClient-based service onto
Temporal. Matches the integration guide's "easy migration" goal.
- Activity options and retry behavior: documents the default timeouts
and non-retryable classification, and shows the forModel(name,
ActivityOptions) escape hatch for custom knobs.
- Known limitations: streaming, defaultToolContext, child-workflow
stubs as tools, the media byte[] cap, and the ChatOptions.copy()
constraint that affects ChatClient.defaultOptions users.
- Observability: pointer to the Temporal Java SDK docs plus a note
that TemporalChatClient accepts a Micrometer ObservationRegistry.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* temporal-spring-ai: drop PLAN.md
Planning scratchpad — not part of the shipped artifact. Removed before merge.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Update temporal-spring-ai/README.md
Co-authored-by: Brian Strauch <brian@brianstrauch.com>
* Update README to clarify streaming support limitation
Clarified the limitation regarding streaming support in chatClient.
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Brian Strauch <brian@brianstrauch.com>1 parent 9eae4a8 commit c402f55
5 files changed
Lines changed: 102 additions & 8 deletions
File tree
- temporal-spring-ai
- src
- main/java/io/temporal/springai
- activity
- model
- plugin
- test/java/io/temporal/springai/plugin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
117 | 174 | | |
118 | 175 | | |
119 | 176 | | |
| |||
130 | 187 | | |
131 | 188 | | |
132 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
133 | 220 | | |
134 | 221 | | |
135 | 222 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments