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

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


    from 4ed5fc5  [runtime] Add rescaling test case
     new 64c0713  [hotfix] Fixup unstable plan compatibility e2e test.
     new 3d28c23  [hotfix] Move event and action to separate module.
     new 40d406c  [hotfix] Refactor function to reduce serialize complexity.
     new 66ed0d0  [api][python] Introduce Prompt in python.
     new 40822f2  [api][python] Introduce Tool api and FunctionTool in python.
     new 0528d21  [api][python] Introduce ChatModel in python.
     new cc46f29  [plan][python] Add built-in actions for processing chat and 
tool call.

The 7 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:
 .../compatibility/CreateJavaAgentPlanFromJson.java |  55 ++++++-
 python/flink_agents/api/chat_message.py            |  69 +++++++++
 python/flink_agents/api/chat_models/chat_model.py  |  41 ++++-
 python/flink_agents/api/decorators.py              |  27 +++-
 python/flink_agents/api/{ => events}/__init__.py   |   0
 .../agent_runner.py => api/events/chat_event.py}   |  45 +++---
 python/flink_agents/api/{ => events}/event.py      |   7 +-
 .../events/tool_event.py}                          |  37 +++--
 python/flink_agents/api/{ => prompts}/__init__.py  |   0
 python/flink_agents/api/prompts/prompt.py          |  81 ++++++++++
 .../chat_model.py => prompts/utils.py}             |  25 +--
 python/flink_agents/api/resource.py                |  15 +-
 python/flink_agents/api/runner_context.py          |   2 +-
 .../api/tests/resources/tool_metadata.json         |  24 +++
 python/flink_agents/api/tests/test_decorators.py   |   2 +-
 python/flink_agents/api/tests/test_event.py        |   2 +-
 python/flink_agents/api/tests/test_prompt.py       | 123 +++++++++++++++
 python/flink_agents/api/tests/test_tool.py         |  69 +++++++++
 python/flink_agents/api/tools/tool.py              |  93 ++++++++++-
 python/flink_agents/api/tools/utils.py             | 171 +++++++++++++++++++++
 python/flink_agents/examples/agent_example.py      |   2 +-
 python/flink_agents/examples/my_agent.py           |   2 +-
 .../flink_agents/{api => plan/actions}/__init__.py |   0
 python/flink_agents/plan/{ => actions}/action.py   |  43 ++----
 .../flink_agents/plan/actions/chat_model_action.py |  90 +++++++++++
 .../tool_call_action.py}                           |  32 ++--
 python/flink_agents/plan/agent_plan.py             |  42 +++--
 python/flink_agents/plan/function.py               |  23 ++-
 python/flink_agents/plan/resource_provider.py      |  36 ++++-
 .../create_python_agent_plan_from_json.py          |   2 +-
 .../python_agent_plan_compatibility_test_agent.py  |   2 +-
 .../flink_agents/plan/tests/resources/action.json  |   2 +-
 .../plan/tests/resources/agent_plan.json           |  46 +++++-
 .../plan/tests/resources/python_function.json      |   1 +
 python/flink_agents/plan/tests/test_action.py      |   6 +-
 python/flink_agents/plan/tests/test_agent_plan.py  |  31 ++--
 python/flink_agents/plan/tests/test_function.py    |   2 +-
 .../{api => plan/tests/tools}/__init__.py          |   0
 .../plan/tests/tools/resources/function_tool.json  |  32 ++++
 .../plan/tests/tools/test_function_tool.py         |  64 ++++++++
 python/flink_agents/plan/tools/function_tool.py    |  53 +++++--
 .../flink_agents/runtime/flink_runner_context.py   |   2 +-
 python/flink_agents/runtime/local_runner.py        |   2 +-
 python/flink_agents/runtime/python_java_utils.py   |   2 +-
 .../runtime/tests/test_built_in_actions.py         | 169 ++++++++++++++++++++
 .../runtime/tests/test_get_resource_in_action.py   |  41 +++--
 .../tests/test_local_execution_environment.py      |   2 +-
 python/pyproject.toml                              |   1 +
 48 files changed, 1421 insertions(+), 197 deletions(-)
 create mode 100644 python/flink_agents/api/chat_message.py
 copy python/flink_agents/api/{ => events}/__init__.py (100%)
 copy python/flink_agents/{runtime/agent_runner.py => api/events/chat_event.py} 
(56%)
 rename python/flink_agents/api/{ => events}/event.py (94%)
 copy python/flink_agents/{runtime/python_java_utils.py => 
api/events/tool_event.py} (61%)
 copy python/flink_agents/api/{ => prompts}/__init__.py (100%)
 create mode 100644 python/flink_agents/api/prompts/prompt.py
 copy python/flink_agents/api/{chat_models/chat_model.py => prompts/utils.py} 
(69%)
 create mode 100644 python/flink_agents/api/tests/resources/tool_metadata.json
 create mode 100644 python/flink_agents/api/tests/test_prompt.py
 create mode 100644 python/flink_agents/api/tests/test_tool.py
 create mode 100644 python/flink_agents/api/tools/utils.py
 copy python/flink_agents/{api => plan/actions}/__init__.py (100%)
 rename python/flink_agents/plan/{ => actions}/action.py (60%)
 create mode 100644 python/flink_agents/plan/actions/chat_model_action.py
 copy 
python/flink_agents/plan/{tests/compatibility/python_agent_plan_compatibility_test_agent.py
 => actions/tool_call_action.py} (55%)
 copy python/flink_agents/{api => plan/tests/tools}/__init__.py (100%)
 create mode 100644 
python/flink_agents/plan/tests/tools/resources/function_tool.json
 create mode 100644 python/flink_agents/plan/tests/tools/test_function_tool.py
 create mode 100644 python/flink_agents/runtime/tests/test_built_in_actions.py

Reply via email to