mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
No proper support for Tool Messages? #234
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sadaisystems on GitHub (Mar 4, 2025).
According to example and definition of Message model, it seems like there is no way to actually represent executed tool message as a Message model, only using dictionary?
I'm arriving at this conclusion because Message model doesn't have a filed called "name" which is required for executed tool message as per the example.
Why is this the case? Any plans on unifying message abstraction in the future?
@ParthSareen commented on GitHub (Jul 1, 2025):
This should help: https://github.com/ollama/ollama-python/blob/main/ollama/_types.py#L287-L309