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 57c4446 [hotfix] fix: format code with lint.sh to resolve style issues new 7ca8cb2 [hotfix] Remove useless parameter chat_history from ChatModel#chat. new 4b8beab [integration][python] Introduce ollama chat model in python. The 2 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: python/flink_agents/api/chat_models/chat_model.py | 8 +- python/flink_agents/api/tools/tool.py | 28 ++++ .../chat_ollama_exmaple.py} | 92 ++--------- .../{api => integrations/chat_models}/__init__.py | 0 .../integrations/chat_models/ollama_chat_model.py | 183 +++++++++++++++++++++ .../chat_models/tests}/__init__.py | 0 .../chat_models/tests/start_ollama_server.sh} | 21 ++- .../chat_models/tests/test_ollama_chat_model.py | 102 ++++++++++++ python/flink_agents/plan/tests/test_agent_plan.py | 8 +- .../runtime/tests/test_built_in_actions.py | 8 +- .../runtime/tests/test_get_resource_in_action.py | 8 +- python/pyproject.toml | 2 + 12 files changed, 350 insertions(+), 110 deletions(-) copy python/flink_agents/{runtime/tests/test_built_in_actions.py => examples/chat_ollama_exmaple.py} (50%) copy python/flink_agents/{api => integrations/chat_models}/__init__.py (100%) create mode 100644 python/flink_agents/integrations/chat_models/ollama_chat_model.py copy python/flink_agents/{api => integrations/chat_models/tests}/__init__.py (100%) copy python/flink_agents/{api/agent.py => integrations/chat_models/tests/start_ollama_server.sh} (79%) create mode 100644 python/flink_agents/integrations/chat_models/tests/test_ollama_chat_model.py