feat(adk): impl deepagents #526
Open
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.
What type of PR is this?
feat(adk): deepagents prebuilt agent with planning, storage, and long-term memory
Check the PR title.
(Optional) Translate the PR title into Chinese.
feat(adk): 实现 DeepAgents 预置代理,提供规划、存储与长期记忆能力
(Optional) More detailed description for this PR (en / zh).
en:
This PR introduces a new prebuilt ADK agent named "DeepAgents" that provides:
write_todos(session-scoped plan using planexecute.Plan)ls,read_file,write_file,edit_file(backed by abstractStorageinterface for pluggable backends)tasktool (compose a specialized child agent with custom instruction)MemoryStoreis provided:remember,recall,update_memory,forget,list_memories(checkpoint-persisted, implementation expected in eino-ext)Design highlights:
deepagents.New(ctx, *Config)wires model, storage, optional memory store and extra tools.ToolsConfigto add user-defined tools.schema.ToolInfo; JSON parsing viasonic.Usage:
model.ToolCallingChatModel,Storageimplementation (eino-ext), and optionalMemoryStore.deepagents.Newto obtain anadk.Agent, usable standalone or in compose.StateGraph.zh:
本 PR 新增预置 ADK 代理 “DeepAgents”,能力包括:
write_todos(基于 Session 的 planexecute.Plan)ls、read_file、write_file、edit_file(抽象Storage接口,便于接入文件系统/内存/S3 等)task工具(基于给定指令与模型创建子代理)MemoryStore时启用remember、recall、update_memory、forget、list_memories(基于 CheckPoint 持久化,具体实现建议在 eino-ext)设计要点:
deepagents.New(ctx, *Config)统一注入模型、存储、(可选)记忆库与自定义工具。ToolsConfig扩展用户自定义工具。schema.ToolInfo定义参数协议,sonic做高性能 JSON 解析。使用方式:
model.ToolCallingChatModel、Storage实现(eino-ext),以及可选的MemoryStore。deepagents.New获得adk.Agent,可独立使用或作为 StateGraph 节点。(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: