105 Commits

Author SHA1 Message Date
everywhere.z
5b749ffd80 test(agent): 按 feature/platform 维度重组 react-agent 测试模块
将原先扁平的 connectivity/feature/unit/cmp 测试布局重构为按功能
(feature/*)和按供应商平台(platform/*)划分的独立目录,每个目录
自带隔离的测试资源(application.properties + flow.el.xml),并相应
更新 BaseAgentLiveTest、LiveTestEnv、LiveTestSupport 等支撑类与使用指南文档。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 23:55:42 +08:00
everywhere.z
49044d1b76 refactor(agent): drop fixed assistant identity line from default system prompt
移除 DEFAULT_SYSTEM_PROMPT 中固定的「你是 LiteFlow ReAct Agent 助手。」身份行,
并同步更新 react-agent guide 文档中的对应描述。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 21:33:27 +08:00
everywhere.z
e6d6a37869 docs(agent): refresh react-agent guide for skill tool DI and fix stale content
- Document that the framework always prepends DEFAULT_SYSTEM_PROMPT before the
  component systemPrompt(), and its behavioral implications.
- Correct §7.6: skillBox.codeExecution() is enabled and bound to the conversation
  workspace; add the related security note in §7.6 and §10.
- Update §7.4 for container-based DI of skill tools (no-arg ctor is only a
  fallback) and native YAML inline-list tools; drop the dead SkillToolManifest
  reference and add a troubleshooting row for instantiation failure.
- Add §5.6 covering the AgentSessionFactory SPI for custom persistence backends.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 19:29:59 +08:00
everywhere.z
0668ae6f35 docs(agent): add implementation plan for skill tools Spring DI
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 17:12:03 +08:00
everywhere.z
6152e34000 docs(agent): add design spec for skill tools Spring DI
通过 ContextAware SPI 从容器按类型引用已注册的 skill 工具 bean,
使其依赖注入生效;无容器/未注册时降级反射实例化。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 17:03:09 +08:00
everywhere.z
083bdfa0f2 feat(agent): track per-invocation chat usage across ReAct reasoning steps
Add ChatUsageTrackingHook that accumulates ChatUsage from every
PostReasoningEvent within a single process() call, expose it via
ReActAgentContext#getChatUsage(), and emit a per-step usage line in
ReActLoggingHook. The hook is cached on AgentSession and reset at the
start of each process() so the snapshot reflects the full invocation
(not just the last reasoning step).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 20:50:23 +08:00
everywhere.z
5c91e56bec chore: update LiteFlow build after logging improvements
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 23:51:33 +08:00
everywhere.z
d72d04475b docs(agent): clarify lifecycle and security caveats in react agent guide
Add notes on framework integration prerequisites, event listener
threading, build-time capability methods, session reuse semantics,
built-in tool risks, and two new troubleshooting entries.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 19:13:31 +08:00
everywhere.z
65a6213b72 feat(core): add generic flow event channel for streaming output
Introduce FlowEvent/FlowEventListener/FlowEventPublisher on the Slot so
callers can subscribe via ExecuteOption.eventListener and receive
incremental events while a chain is running. ReActAgentComponent wires
agentscope reasoning/tool_result/summary/result events into this channel
when a listener is registered, keeping the non-listener path as a plain
blocking call.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 16:24:10 +08:00
everywhere.z
9b227cf126 docs(agent): complete react agent skills guide 2026-05-10 22:31:09 +08:00
everywhere.z
7adfbe7f5f docs(agent): plan react-agent skills support 2026-05-10 16:19:11 +08:00
everywhere.z
b9de094d33 docs(agent): design react-agent skills support 2026-05-10 16:12:43 +08:00
everywhere.z
ccebedc77e docs(agent): update react-agent guide to dual-key (conversationId + agentKey) model
Reflect the session management refactor from single sessionId to
(conversationId, agentKey) dual-key: update all hook signatures to
parameterless style with ctx(), add curl/wget to shell whitelist,
and remove obsolete SlotAttachmentTest.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 15:57:51 +08:00
everywhere.z
29073e23c4 docs: add design spec and implementation plan for react-agent context refactor
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 15:01:45 +08:00
everywhere.z
c31e279560 refactor(agent): rename WORKSPACE_FILE to LOCAL_FILE for memory storage mode
该模式的 .agent-session 目录实际位于 workspace.root 之下、与各 session
的 workspace 子目录平级而非嵌套,旧名 WORKSPACE_FILE 容易误导为"存储在
某个 workspace 内部"。LOCAL_FILE 与 REDIS、MYSQL 同层级地描述后端类型,
更准确地反映实际行为。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 00:11:21 +08:00
everywhere.z
7fe12ed624 chore(agent): 补全 agent 配置 javadoc 与 spring 配置元数据,精简测试模块 pom
- 为 agent 配置类(AgentConfig/SessionConfig/ShellConfig/MemoryStorageConfig 等)补充中文 javadoc
- 在 spring-boot-starter / spring-boot4-starter 的 additional-spring-configuration-metadata.json 中补全 liteflow.agent.* 配置项,提供 IDE 配置提示
- 合并 testcase-el 中 react-agent 与 springboot4 的 profile,移除子模块冗余的 maven-compiler/surefire 配置
- 移除已不再使用的 AgentConfig / LiteflowConfigAgentField / Boot4AutoConfiguration 测试文件

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-06 23:25:07 +08:00
everywhere.z
f65d4264b9 docs(react-agent): 补充下游节点获取 Agent 结果的说明,扩展 react-agent 测试模块多平台用例
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-04 12:32:37 +08:00
everywhere.z
bfad0ece58 docs(react-agent): document default NanoId session and ReAct logging hook
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-30 11:59:56 +08:00
everywhere.z
61824d6956 feat(react-agent): add session factory infrastructure, memory storage config, and integration tests
- Add MemoryStorageConfig/MemoryStorageMode and per-backend configs (Redis, MySQL, workspace file)
- Add AgentSessionFactoryRegistry with NONE, JVM, WORKSPACE_FILE, REDIS, MYSQL implementations
- Add integration test suite with EL-orchestrated Spring Boot tests
- Remove per-module READMEs in favor of unified guide
- Update POMs, CLAUDE.md, AGENTS.md

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 19:12:29 +08:00
everywhere.z
0820f45032 docs(react-agent): rewrite usage guide based on current ModelSpec API
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 19:11:26 +08:00
everywhere.z
4285720428 docs(react-agent): add implementation plan for ModelSpec redesign
10-task TDD plan covering ModelSpec/CredentialResolver in core, the
four provider modules (openai/anthropic/gemini/dashscope), the
ReActAgentComponent abstract-method switch, and migration of test cmps.
2026-04-29 17:37:04 +08:00
everywhere.z
b63bc1a7f4 docs(react-agent): add design spec for ModelSpec API redesign
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 17:28:23 +08:00
everywhere.z
3751739b26 docs: 新增 liteflow-react-agent 模块实现计划
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 15:25:06 +08:00
everywhere.z
96f68c84fc docs: 将 ReActAgent 配置融入 LiteflowConfig,apiKey 由抽象类自动提供
- ReActAgentProperties 改名为 AgentConfig,作为 LiteflowConfig.agent 字段
  (Spring Boot 自动走 prefix=liteflow 装配,统一 LiteflowConfigGetter 访问)
- AgentConfig 等纯 POJO 放入 liteflow-core 新包 property.agent,
  严格保证无 agentscope/第三方 SDK 依赖
- 抽象类新增 final agentConfig() 方法,用户不再需要 @Resource 注入配置
- 用户代码示例与执行流程同步更新

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 15:09:06 +08:00
everywhere.z
8333819ffe docs: 修正 ReActAgentComponent 的 userPrompt 语义与 thinking 参数处置
- userMessage 更名为 userPrompt,并改为抽象方法(必须实现)
- 新增 §4.1 明确 thinking level 等模型高级参数由用户在 buildModel 内处理,
  LiteFlow 不做统一抽象

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 14:39:04 +08:00
everywhere.z
f760ac2203 docs: 新增 liteflow-react-agent 模块设计稿
为 LiteFlow 集成 agentscope ReAct Agent 的 5 模块设计:
core + openai(含 DeepSeek/Kimi/GLM/MiniMax preset)+ anthropic + gemini + dashscope。
涵盖抽象类、session/workspace 隔离、shell 命令管控与配置结构。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 14:20:10 +08:00
bryan31
091c701347 更新项目主页,移除项目内的主页 2021-01-02 12:45:06 +08:00
bryan31
7b250ff670 更新文档 2020-11-05 00:24:44 +08:00
bryan31
04c99af2b0 更新文档 2020-11-05 00:22:21 +08:00
bryan31
26c1d15e85 更新readme 2020-11-05 00:19:29 +08:00
bryan.zhang
cb0cfe879e 删除群二维码 2020-08-27 00:28:25 +08:00
bryan.zhang
e4028a80a1 更新图片地址 2020-08-22 11:34:01 +08:00
bryan.zhang
b0380ceadc 更新文档 2020-08-11 15:03:55 +08:00
bryan.zhang
a51afb8803 更新二维码 2020-08-03 00:47:13 +08:00
bryan.zhang
af7b1cddc3 更新二维码 2020-08-03 00:44:49 +08:00
bryan.zhang
40041ab666 更新二维码 2020-08-03 00:42:41 +08:00
bryan.zhang
6f6a82808b 更新二维码 2020-08-03 00:36:32 +08:00
bryan.zhang
d8c3c757d8 提供idea配置的自动化提示功能 2020-07-27 17:58:23 +08:00
bryan.zhang
5495d40297 更新二维码 2020-07-27 11:59:34 +08:00
bryan.zhang
6d3cbc3d3d 更新二维码 2020-07-20 01:12:03 +08:00
dt_flys
e4052c213c 去掉多余信息 2020-07-15 14:52:11 +08:00
bryan.zhang
304008bf38 更新文档首页 2020-07-14 11:49:37 +08:00
bryan.zhang
1eacafebfc 更新文档首页 2020-07-14 11:45:11 +08:00
bryan.zhang
17e2c00bca 更新文档 2020-07-14 11:30:57 +08:00
bryan.zhang
0d502d8d0c 更新二维码 2020-07-14 11:08:40 +08:00
bryan.zhang
876ecdadc3 更新二维码 2020-07-14 11:03:19 +08:00
bryan.zhang
02c4e1462e 更新文档 2020-07-09 11:36:01 +08:00
bryan.zhang
dba5011214 更新文档架构图 2020-07-07 15:01:44 +08:00
bryan.zhang
94edcf4064 更新文档架构图 2020-07-07 15:00:06 +08:00
bryan.zhang
54ec2c5566 文档更新,增加示例的说明和链接 2020-07-07 13:40:03 +08:00