Skip to content

docs: document DefaultBackgroundTaskHandler in typescript-adk - #68

Merged
edenreich merged 1 commit into
mainfrom
claude/issue-67-20260527-1104
May 27, 2026
Merged

edenreich merged 1 commit into
mainfrom
claude/issue-67-20260527-1104

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Closes #67.

Summary

Adds a new "Background task handler" section to typescript-adk.md covering:

  • Class overview and constructor options table (llmClient, toolBox, systemPrompt, maxIterations, maxConversationHistory) with defaults.
  • The structural LLMClient and ToolBox interfaces (with a pointer to typescript-adk#chore(deps): Bump actions/create-github-app-token from 3.1.1 to 3.2.0 #27 / typescript-adk#chore(deps-dev): Bump eslint-config-next from 16.2.4 to 16.2.6 #31 for concrete impls).
  • A mermaid flowchart TD diagram + numbered walkthrough of the iteration loop covering the COMPLETED / INPUT_REQUIRED / FAILED / CANCELLED terminal transitions.
  • The MAX_CHAT_COMPLETION_ITERATIONS env var (default 50) and maxConversationHistory (default 20).
  • The reserved input_required tool with the message / prompt / question arg-key fallback.
  • setEnableUsageMetadata(true) and the resulting task.metadata shape (usage, execution_stats).
  • End-to-end wiring example using A2AServerBuilder.withBackgroundTaskHandler(handler.asHandler()).

Also updates the "What ships today" table (DefaultBackgroundTaskHandler and A2AServerBuilder rows flipped to Available) and extends the "Parity with the Go ADK" section with the new equivalence points.

Test plan

  • npm run lint:md
  • npm run format:check
  • npm run build (mermaid renders to SVG, new keywords present in built HTML)

Generated with Claude Code

Adds a new "Background task handler" section to typescript-adk.md
covering constructor options, the LLMClient and ToolBox structural
interfaces, the LLM-call / tool-dispatch iteration loop (mermaid
diagram plus numbered walkthrough), the MAX_CHAT_COMPLETION_ITERATIONS
env var, the reserved input_required tool with its message / prompt /
question arg-key fallback, setEnableUsageMetadata and the resulting
task.metadata shape, and an end-to-end wiring example via
A2AServerBuilder.withBackgroundTaskHandler(handler.asHandler()).

Also updates the "What ships today" table to reflect that
DefaultBackgroundTaskHandler and A2AServerBuilder are now available,
extends the Parity with Go ADK section with the new equivalence
points (iteration cap default, env var name, reserved tool semantics,
metadata shape), and broadens the page frontmatter description for
search/OG.

Closes #67

Co-authored-by: Eden Reich <[email protected]>
@edenreich
edenreich merged commit ab33df2 into main May 27, 2026
@edenreich
edenreich deleted the claude/issue-67-20260527-1104 branch May 27, 2026 11:17
github-actions Bot pushed a commit that referenced this pull request May 27, 2026
## [0.6.32](0.6.31...0.6.32) (2026-05-27)

### 📚 Documentation

* document DefaultBackgroundTaskHandler in typescript-adk ([#68](#68)) ([ab33df2](ab33df2)), closes [#67](#67)
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.

[DOCS] Document DefaultBackgroundTaskHandler in typescript-adk

1 participant