pepperoni21 / ollama-rs

A Rust library allowing to interact with the Ollama API.
MIT License
482 stars 73 forks source link

Can the Tool role be in the MessageRole enum? #74

Closed SergioKingOne closed 1 week ago

SergioKingOne commented 2 weeks ago

Ollama supports 4 roles:

Currently there are only three of them available (system, user, assistant) in the type MessageRole.

Would be nice if it can be added so we can use it when sending messages.