This is an automated email from the ASF dual-hosted git repository.

wenjin272 pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git


    from 3951823c [api][runtime] Support Mem0-based long-term memory
     new 535c97bd [api] Inject output format prompt after the first system 
prompt for ReAct agent.
     new 269c08dd [api] Extract resource context.
     new 54422198 [plan][python] Add bash tool in python.
     new 69ff4f86 [api][runtime][python] Support agent skills in Python.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/ci.yml                           |   2 +
 .licenserc.yaml                                    |   1 +
 .../flink/agents/api/resource/ResourceType.java    |   3 +-
 python/flink_agents/api/agents/react_agent.py      |   9 +-
 python/flink_agents/api/chat_message.py            |   8 +
 python/flink_agents/api/chat_models/chat_model.py  |  45 ++-
 python/flink_agents/api/decorators.py              |  17 +
 .../api/embedding_models/embedding_model.py        |   4 +-
 python/flink_agents/api/resource.py                |  16 +-
 python/flink_agents/api/resource_context.py        |  51 +++
 python/flink_agents/api/skills.py                  |  72 +++++
 .../flink_agents/api/vector_stores/vector_store.py |   4 +-
 .../e2e_tests_integration/agent_skills_test.py     | 346 +++++++++++++++++++++
 .../chat_model_integration_test.py                 |   6 +-
 .../resources/skills/joke-generator/SKILL.md       |  18 ++
 .../skills/joke-generator/scripts/gen_joke.py}     |   3 +
 .../resources/skills/math-calculator/SKILL.md      |  57 ++++
 .../anthropic/tests/test_anthropic_chat_model.py   |  12 +-
 .../azure/tests/test_azure_openai_chat_model.py    |  12 +-
 .../openai/tests/test_openai_chat_model.py         |  12 +-
 .../chat_models/tests/test_ollama_chat_model.py    |  11 +-
 .../chat_models/tests/test_tongyi_chat_model.py    |  11 +-
 .../local/tests/test_ollama_embedding_model.py     |   7 +-
 .../tests/test_openai_embedding_model.py           |   7 +-
 .../tests/test_tongyi_embedding_model.py           |  26 +-
 .../chroma/tests/test_chroma_vector_store.py       |  28 +-
 .../flink_agents/plan/actions/chat_model_action.py |  34 +-
 python/flink_agents/plan/agent_plan.py             |  96 +++++-
 python/flink_agents/plan/resource_provider.py      |  31 +-
 .../plan/tests/actions/test_chat_model_action.py   |  24 +-
 .../{api => plan/tools/bash}/__init__.py           |   3 +-
 python/flink_agents/plan/tools/bash/bash_tool.py   | 144 +++++++++
 .../flink_agents/plan/tools/bash/bash_validator.py | 184 +++++++++++
 .../{api => plan/tools/bash/tests}/__init__.py     |   3 +-
 .../plan/tools/bash/tests/test_bash_tool.py        | 282 +++++++++++++++++
 .../flink_agents/runtime/flink_runner_context.py   |   4 +
 .../runtime/java/java_resource_wrapper.py          |  15 +-
 python/flink_agents/runtime/local_runner.py        |   4 +
 python/flink_agents/runtime/python_java_utils.py   |  13 +-
 python/flink_agents/runtime/resource_cache.py      |   8 +-
 python/flink_agents/runtime/resource_context.py    |  86 +++++
 .../runtime/skill/__init__.py}                     |   8 +-
 python/flink_agents/runtime/skill/agent_skill.py   |  87 ++++++
 .../runtime/skill/repository}/__init__.py          |   2 +-
 .../skill/repository/filesystem_repository.py      | 210 +++++++++++++
 python/flink_agents/runtime/skill/skill_manager.py | 134 ++++++++
 python/flink_agents/runtime/skill/skill_parser.py  | 143 +++++++++
 .../runtime/skill/skill_prompt_provider.py         |  55 ++--
 .../flink_agents/runtime/skill/skill_repository.py |  84 +++++
 python/flink_agents/runtime/skill/skill_tools.py   | 134 ++++++++
 .../runtime/skill}/tests/__init__.py               |   2 +-
 .../runtime/skill/tests/resources/NOTICE           |   8 +
 .../tests/resources/skill_discovery_prompt.txt     |  24 ++
 .../skill/tests/resources/skills/github/SKILL.md   |  47 +++
 .../resources/skills/nano-banana-pro/SKILL.md      | 130 ++++++++
 .../resources/skills/nano-banana-pro/_meta.json    |   6 +
 .../nano-banana-pro/scripts/generate_image.py      | 165 ++++++++++
 .../runtime/skill/tests/test_load_skill.py         | 112 +++++++
 .../runtime/skill/tests/test_manager.py            |  88 ++++++
 .../runtime/skill/tests/test_skill_parser.py       | 166 ++++++++++
 .../runtime/skill/tests/test_skill_repository.py   |  96 ++++++
 .../runtime/tests/test_built_in_actions.py         |  10 +-
 python/pyproject.toml                              |   2 +
 .../python/utils/PythonResourceAdapterImpl.java    |  12 +-
 .../utils/PythonResourceAdapterImplTest.java       |   4 +-
 tools/.rat-excludes                                |   3 +-
 66 files changed, 3322 insertions(+), 129 deletions(-)
 create mode 100644 python/flink_agents/api/resource_context.py
 create mode 100644 python/flink_agents/api/skills.py
 create mode 100644 
python/flink_agents/e2e_tests/e2e_tests_integration/agent_skills_test.py
 create mode 100644 
python/flink_agents/e2e_tests/resources/skills/joke-generator/SKILL.md
 copy python/{_build_backend/tests/__init__.py => 
flink_agents/e2e_tests/resources/skills/joke-generator/scripts/gen_joke.py} 
(90%)
 mode change 100644 => 100755
 create mode 100644 
python/flink_agents/e2e_tests/resources/skills/math-calculator/SKILL.md
 copy python/flink_agents/{api => plan/tools/bash}/__init__.py (90%)
 create mode 100644 python/flink_agents/plan/tools/bash/bash_tool.py
 create mode 100644 python/flink_agents/plan/tools/bash/bash_validator.py
 copy python/flink_agents/{api => plan/tools/bash/tests}/__init__.py (90%)
 create mode 100644 python/flink_agents/plan/tools/bash/tests/test_bash_tool.py
 create mode 100644 python/flink_agents/runtime/resource_context.py
 copy python/{MANIFEST.in => flink_agents/runtime/skill/__init__.py} (81%)
 create mode 100644 python/flink_agents/runtime/skill/agent_skill.py
 copy python/{_build_backend/tests => 
flink_agents/runtime/skill/repository}/__init__.py (98%)
 create mode 100644 
python/flink_agents/runtime/skill/repository/filesystem_repository.py
 create mode 100644 python/flink_agents/runtime/skill/skill_manager.py
 create mode 100644 python/flink_agents/runtime/skill/skill_parser.py
 copy 
e2e-test/flink-agents-end-to-end-tests-resource-cross-language/src/test/resources/mcp_server.py
 => python/flink_agents/runtime/skill/skill_prompt_provider.py (50%)
 create mode 100644 python/flink_agents/runtime/skill/skill_repository.py
 create mode 100644 python/flink_agents/runtime/skill/skill_tools.py
 copy python/{_build_backend => flink_agents/runtime/skill}/tests/__init__.py 
(98%)
 create mode 100644 python/flink_agents/runtime/skill/tests/resources/NOTICE
 create mode 100644 
python/flink_agents/runtime/skill/tests/resources/skill_discovery_prompt.txt
 create mode 100644 
python/flink_agents/runtime/skill/tests/resources/skills/github/SKILL.md
 create mode 100644 
python/flink_agents/runtime/skill/tests/resources/skills/nano-banana-pro/SKILL.md
 create mode 100644 
python/flink_agents/runtime/skill/tests/resources/skills/nano-banana-pro/_meta.json
 create mode 100644 
python/flink_agents/runtime/skill/tests/resources/skills/nano-banana-pro/scripts/generate_image.py
 create mode 100644 python/flink_agents/runtime/skill/tests/test_load_skill.py
 create mode 100644 python/flink_agents/runtime/skill/tests/test_manager.py
 create mode 100644 python/flink_agents/runtime/skill/tests/test_skill_parser.py
 create mode 100644 
python/flink_agents/runtime/skill/tests/test_skill_repository.py

Reply via email to