Repository navigation
Conversation
Add go/adk/pkg/declarative, an experimental (adk.declarative/v0alpha1) YAML/JSON document format that builds ADK Go Workflow and LlmAgent agents from function, join, tool, agent, llm and nested workflow nodes. The Registry is constructed with the single model the workflow runs on; documents omit model or use the offline stub model. Part of kagent-dev#3674 Signed-off-by: Dmytro Rashko <dimetron@me.com>
3 tasks done
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.
Part of #3674 (split of #3673).
Scope
Library-only first slice of
go/adk/pkg/declarative: an experimental document format (apiVersion: adk.declarative/v0alpha1, no compatibility promise) that builds ADK Go agents from YAML/JSON.Workflow,LlmAgent.function,join,tool(registered tools only),agent,llm(inline, single_turn),workflow(nested, max depth 8).START, string routes andDEFAULT,entrysugar; per-noderetry(max_attempts, delays, backoff, jitter) andtimeout; nodeinput_schema/output_schemaand LLMoutput_schema.agents[1].nodes[2].tool: ...); decoding is strict, so unknown or not-yet-supported fields are rejected.NewRegistry(model)takes it via the constructor; documents omitmodel(or usestub, the offline test model). Any other model name is rejected. Documented indoc.go.instruction/global_instructiononly.No CRD, proto, translator, controller, UI, Makefile, or image changes. No new dependencies (
go mod tidyis clean).Intentionally excluded (later PRs per #3674)
celnodes, CELwhen/retry.when(cel-go dependency)mcp_servers,server:on tool nodes)parallel_worker,dynamic,max_concurrencyinstruction_from, config proto loadingagent_tools, toolsets, custom node types, model resolverSequentialAgent/ParallelAgent/LoopAgentTesting
Tests use Given/When/AssertThat scenarios. They cover a showcase document that runs every branch end-to-end with the stub model, the validation issue matrix, strict decoding of excluded fields, registry model resolution, retry/timeout, engine build failures, and runtime schema enforcement. About 2.2k lines including tests.