Repository navigation
docs: document DefaultBackgroundTaskHandler in typescript-adk - #68
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #67.
Summary
Adds a new "Background task handler" section to
typescript-adk.mdcovering:llmClient,toolBox,systemPrompt,maxIterations,maxConversationHistory) with defaults.LLMClientandToolBoxinterfaces (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).flowchart TDdiagram + numbered walkthrough of the iteration loop covering the COMPLETED / INPUT_REQUIRED / FAILED / CANCELLED terminal transitions.MAX_CHAT_COMPLETION_ITERATIONSenv var (default 50) andmaxConversationHistory(default 20).input_requiredtool with themessage/prompt/questionarg-key fallback.setEnableUsageMetadata(true)and the resultingtask.metadatashape (usage,execution_stats).A2AServerBuilder.withBackgroundTaskHandler(handler.asHandler()).Also updates the "What ships today" table (
DefaultBackgroundTaskHandlerandA2AServerBuilderrows flipped to Available) and extends the "Parity with the Go ADK" section with the new equivalence points.Test plan
npm run lint:mdnpm run format:checknpm run build(mermaid renders to SVG, new keywords present in built HTML)Generated with Claude Code