Skip to content

Conversation

@twosom
Copy link
Contributor

@twosom twosom commented Oct 18, 2025

Linked issue: #162 #278

Purpose of change

This PR enables explicit tool call handling in OllamaChatModel to align with the flink-agents framework's design principles for observability and tool execution lifecycle management.

Tests

API

Documentation

@wenjin272
Copy link
Collaborator

Hi, @twosom, thanks for your contribution. LGTM.

Additionally, I discover there are outputs like "Asking model: xxx" when run the example, I found that this maybe a log left by mistake in ollama4j, and it has been fixed recently.
image

@twosom twosom force-pushed the ollama-tool-call-handling branch from 928345f to f0753e6 Compare October 21, 2025 03:19
@twosom
Copy link
Contributor Author

twosom commented Oct 21, 2025

Hi, @twosom, thanks for your contribution. LGTM.

Additionally, I discover there are outputs like "Asking model: xxx" when run the example, I found that this maybe a log left by mistake in ollama4j, and it has been fixed recently.

image

@wenjin272

Thank you for your review.

Version 1.1.2 was released today, and I've applied it.

Copy link
Contributor

@xintongsong xintongsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing my comments, @twosom. LGTM

@xintongsong xintongsong merged commit d1a419b into apache:main Oct 22, 2025
11 checks passed
@Sxnan Sxnan added priority/major Default priority of the PR or issue. fixVersion/0.2.0 The feature or bug should be implemented/fixed in the 0.2.0 version. doc-not-needed Your PR changes do not impact docs labels Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/0.2.0 The feature or bug should be implemented/fixed in the 0.2.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants