Skip to content

Conversation

adk-bot
Copy link
Collaborator

@adk-bot adk-bot commented Oct 9, 2025

This PR expands the documentation for LongRunningFunctionTool to provide a more detailed explanation of the pause and resume mechanism, including a code example based on the human-in-the-loop sample.


* **Agent instruction**: Directs the LLM to use the tool and understand the incoming FunctionResponse stream (progress vs. completion) for user updates.
# Resume the agent's run with the FunctionResponse.
events = runner.run(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run_async

* **Agent instruction**: Directs the LLM to use the tool and understand the incoming FunctionResponse stream (progress vs. completion) for user updates.
# Resume the agent's run with the FunctionResponse.
events = runner.run(
session_id=session_id,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should also provide invocation_id

```java
--8<-- "examples/java/snippets/src/main/java/tools/LongRunningFunctionExample.java:full_code"
```
### Resuming the Invocation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm only commenting on this section which is relevant to the resumability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants