Skip to content

Implement explicit suspension logic for pauseOnToolCalls#146

Open
dewitt wants to merge 2 commits intomainfrom
pr/6-execution-control
Open

Implement explicit suspension logic for pauseOnToolCalls#146
dewitt wants to merge 2 commits intomainfrom
pr/6-execution-control

Conversation

@dewitt
Copy link
Collaborator

@dewitt dewitt commented Feb 13, 2026

This PR implements the explicit suspension mechanism in LlmAgent.

  • Updates postprocess to set invocationContext.endInvocation = true when pauseOnToolCalls is enabled and a function call is detected.
  • Ensures the execution loop respects endInvocation immediately.
  • Includes runAndHandleError improvements (from PR Refactor error handling and fix state persistence in LlmAgent #144) to support this flow.

Reference: docs/adk-ts-improvements.md.

Fixes #145.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement explicit suspension logic for pauseOnToolCalls

1 participant

Comments