GenAI.Provider.Ollama.EncoderProtocol protocol (Noizu Labs, GenAI Wrapper v0.2.4)
Encoders use their module's EncoderProtocol to prep messages and tool definitions To make future extensibility for third parties straight forward. If a new message type, or tool type is added one simply needs to implement a EncoderProtocol for it and most cases you can simply cast it to generic known type and then invoke the protocol again.
Ollama uses a similar format to OpenAI but with some differences.
Link to this section Summary
Link to this section Types
@type t() :: term()
All the types that implement this protocol.
Link to this section Functions
Link to this function