Commit 1a147bd
feat: create customMetadata() mutable map in BaseTool
This is needed for the policy engine which consumes metadata from the tools. The current design allows tools to be created first and then they get metadata during registration.
PiperOrigin-RevId: 822277777
listSessions returns sessions with empty state
Update core/src/main/java/com/google/adk/sessions/VertexAiSessionService.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
test: Add tests for ExampleUtils
Note the bug in the "no input" test. The header is missing.
PiperOrigin-RevId: 822299706
feat: add `GoogleMapsTool` to enable Google Maps search integration for Gemini 2 models
refactor: Refactoring ExampleUtil
- convertExamplesToText() is broken down into smaller methods (header, user turn, model turns, footer).
- The Example header is always added, even if the input is missing.
PiperOrigin-RevId: 822643263
refactor: Simplify LlmRequest code
PiperOrigin-RevId: 822715169
docs: Adds missing comments
PiperOrigin-RevId: 822718215
fix: Add OpenTelemetry context propagation to span creation
Resolves issue google#403 where ADK Java spans were not properly linking to
parent contexts, causing distributed tracing to break across RxJava
async boundaries. Add Telemetry traceFlowable and use in Runner and BaseAgent
Impact:
- Enables unified trace hierarchy in observability tools
- Preserves backward compatibility (Context.current() safe when no parent)
- All 656 existing tests pass
Test coverage:
- Parent-child span linking
- Root span creation when no parent exists
- Nested span hierarchy (4 levels deep)
- Parallel tool execution
- Thread boundary context propagation
feat: HITL/Introduce ToolConfirmations and integrate them into ToolContext
This is a port of the python implementation and part of the "human in the loop" workflow.
PiperOrigin-RevId: 823136285
test: Adding a test for telemetry in RunnerTest
PiperOrigin-RevId: 823192673
refactor: Simplifying TestUtils
Basically, the single Event case and multi-Event case had duplicate code. I consolidated the implementation, and broke down different parts of the process into helper methods.
PiperOrigin-RevId: 823580027
fix: Avoid ClassCastException and reduce copy/pasta 🍝 in FunctionTool
Prompted by google#487 (comment).
test: Add tests for ExampleUtils
Note the bug in the "no input" test. The header is missing.
PiperOrigin-RevId: 822299706
feat: add `GoogleMapsTool` to enable Google Maps search integration for Gemini 2 models
refactor: Refactoring ExampleUtil
- convertExamplesToText() is broken down into smaller methods (header, user turn, model turns, footer).
- The Example header is always added, even if the input is missing.
PiperOrigin-RevId: 822643263
refactor: Simplify LlmRequest code
PiperOrigin-RevId: 822715169
docs: Adds missing comments
PiperOrigin-RevId: 822718215
fix: Add OpenTelemetry context propagation to span creation
Resolves issue google#403 where ADK Java spans were not properly linking to
parent contexts, causing distributed tracing to break across RxJava
async boundaries. Add Telemetry traceFlowable and use in Runner and BaseAgent
Impact:
- Enables unified trace hierarchy in observability tools
- Preserves backward compatibility (Context.current() safe when no parent)
- All 656 existing tests pass
Test coverage:
- Parent-child span linking
- Root span creation when no parent exists
- Nested span hierarchy (4 levels deep)
- Parallel tool execution
- Thread boundary context propagation
feat: HITL/Introduce ToolConfirmations and integrate them into ToolContext
This is a port of the python implementation and part of the "human in the loop" workflow.
PiperOrigin-RevId: 823136285
test: Adding a test for telemetry in RunnerTest
PiperOrigin-RevId: 823192673
refactor: Simplifying TestUtils
Basically, the single Event case and multi-Event case had duplicate code. I consolidated the implementation, and broke down different parts of the process into helper methods.
PiperOrigin-RevId: 823580027
fix: Avoid ClassCastException and reduce copy/pasta 🍝 in FunctionTool
Prompted by google#487 (comment).
feat: HITL/Introduce ToolConfirmations and integrate them into ToolContext
This is a port of the python implementation and part of the "human in the loop" workflow.
PiperOrigin-RevId: 824617972
listSessions returns sessions with empty state
Update core/src/main/java/com/google/adk/sessions/VertexAiSessionService.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
test: Add tests for ExampleUtils
Note the bug in the "no input" test. The header is missing.
PiperOrigin-RevId: 822299706
feat: add `GoogleMapsTool` to enable Google Maps search integration for Gemini 2 models
refactor: Refactoring ExampleUtil
- convertExamplesToText() is broken down into smaller methods (header, user turn, model turns, footer).
- The Example header is always added, even if the input is missing.
PiperOrigin-RevId: 822643263
refactor: Simplify LlmRequest code
PiperOrigin-RevId: 822715169
docs: Adds missing comments
PiperOrigin-RevId: 822718215
fix: Add OpenTelemetry context propagation to span creation
Resolves issue google#403 where ADK Java spans were not properly linking to
parent contexts, causing distributed tracing to break across RxJava
async boundaries. Add Telemetry traceFlowable and use in Runner and BaseAgent
Impact:
- Enables unified trace hierarchy in observability tools
- Preserves backward compatibility (Context.current() safe when no parent)
- All 656 existing tests pass
Test coverage:
- Parent-child span linking
- Root span creation when no parent exists
- Nested span hierarchy (4 levels deep)
- Parallel tool execution
- Thread boundary context propagation
feat: HITL/Introduce ToolConfirmations and integrate them into ToolContext
This is a port of the python implementation and part of the "human in the loop" workflow.
PiperOrigin-RevId: 823136285
test: Adding a test for telemetry in RunnerTest
PiperOrigin-RevId: 823192673
refactor: Simplifying TestUtils
Basically, the single Event case and multi-Event case had duplicate code. I consolidated the implementation, and broke down different parts of the process into helper methods.
PiperOrigin-RevId: 823580027
fix: Avoid ClassCastException and reduce copy/pasta 🍝 in FunctionTool
Prompted by google#487 (comment).
feat: add `GoogleMapsTool` to enable Google Maps search integration for Gemini 2 models
refactor: Refactoring ExampleUtil
- convertExamplesToText() is broken down into smaller methods (header, user turn, model turns, footer).
- The Example header is always added, even if the input is missing.
PiperOrigin-RevId: 822643263
refactor: Simplify LlmRequest code
PiperOrigin-RevId: 822715169
docs: Adds missing comments
PiperOrigin-RevId: 822718215
fix: Add OpenTelemetry context propagation to span creation
Resolves issue google#403 where ADK Java spans were not properly linking to
parent contexts, causing distributed tracing to break across RxJava
async boundaries. Add Telemetry traceFlowable and use in Runner and BaseAgent
Impact:
- Enables unified trace hierarchy in observability tools
- Preserves backward compatibility (Context.current() safe when no parent)
- All 656 existing tests pass
Test coverage:
- Parent-child span linking
- Root span creation when no parent exists
- Nested span hierarchy (4 levels deep)
- Parallel tool execution
- Thread boundary context propagation
feat: HITL/Introduce ToolConfirmations and integrate them into ToolContext
This is a port of the python implementation and part of the "human in the loop" workflow.
PiperOrigin-RevId: 823136285
test: Adding a test for telemetry in RunnerTest
PiperOrigin-RevId: 823192673
refactor: Simplifying TestUtils
Basically, the single Event case and multi-Event case had duplicate code. I consolidated the implementation, and broke down different parts of the process into helper methods.
PiperOrigin-RevId: 823580027
fix: Avoid ClassCastException and reduce copy/pasta 🍝 in FunctionTool
Prompted by google#487 (comment).
feat: HITL/Introduce ToolConfirmations and integrate them into ToolContext
This is a port of the python implementation and part of the "human in the loop" workflow.
PiperOrigin-RevId: 8246179721 parent 7f12064 commit 1a147bd
File tree
22 files changed
+1482
-384
lines changed- core
- src
- main/java/com/google/adk
- agents
- events
- examples
- flows/llmflows
- models
- runner
- sessions
- tools
- test/java/com/google/adk
- examples
- runner
- telemetry
- testing
- tools
22 files changed
+1482
-384
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
| |||
219 | 230 | | |
220 | 231 | | |
221 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
222 | 267 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| |||
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
349 | 359 | | |
350 | 360 | | |
351 | 361 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
116 | 129 | | |
117 | 130 | | |
118 | 131 | | |
| |||
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
| 164 | + | |
151 | 165 | | |
152 | 166 | | |
153 | 167 | | |
| |||
160 | 174 | | |
161 | 175 | | |
162 | 176 | | |
| 177 | + | |
163 | 178 | | |
164 | 179 | | |
165 | 180 | | |
| |||
172 | 187 | | |
173 | 188 | | |
174 | 189 | | |
| 190 | + | |
| 191 | + | |
175 | 192 | | |
176 | 193 | | |
177 | 194 | | |
| |||
183 | 200 | | |
184 | 201 | | |
185 | 202 | | |
| 203 | + | |
| 204 | + | |
186 | 205 | | |
187 | 206 | | |
188 | 207 | | |
| |||
229 | 248 | | |
230 | 249 | | |
231 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
232 | 258 | | |
233 | 259 | | |
234 | 260 | | |
| |||
256 | 282 | | |
257 | 283 | | |
258 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
259 | 288 | | |
260 | 289 | | |
261 | 290 | | |
| |||
270 | 299 | | |
271 | 300 | | |
272 | 301 | | |
| 302 | + | |
273 | 303 | | |
274 | 304 | | |
275 | 305 | | |
| |||
0 commit comments