Add new work pattern: iterative optimization work pattern #545
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.
When submitting a PR, please confirm the following points and put [x] in the boxes one by one. | 在提出pr时,请确认了以下几点,并逐一使用[x]符号确认勾选。
关联issue:#257
Checklist | 检查项
Please fill in the specific details of this PR: | 请详细填写本次PR的内容:
Iterative Optimization Work Pattern: Iterative Prompt Optimization with Batches, Scoring, and Memory
自适应优化:支持批量样本评估、质量评分与持久化记忆的迭代式提示优化
Summary / 摘要
Adds optimization_work_pattern to enable iterative prompt optimization over batched samples, guided by scoring and feedback loops, with persistent memory of past successes and failures.
新增 optimization_work_pattern ,实现基于批量样本的迭代式提示优化,通过评分与反馈闭环驱动,并持久化过去的成功与失败样例,从其中的关键case吸收经验。
Motivation / 动机
Highlights / 特色功能
Main Functions / 主要功能
Parameters / 参数解释
Usage / 使用示例
Validation / 验证
Checklist / 自检清单
Please provide the path of test files and submit screenshots or files of the test results(fill in as needed): | 请填写测试文件路径并提供测试结果截图或文件(按需填写):

examples/sample_apps/optimization_agent_app/intelligence/test/test_optimization_agent.py