ferrin-message 0.2.0

Ferrin application-level messages, conversion to provider prompts, and message pruning.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ferrin-message

Application-level messages for Ferrin: `Message` (system/user/assistant/tool
with string-or-parts content), user/assistant/tool parts, `FileSource`
(bytes, base64, URL, provider reference, inline text, local path), RFC 2397
`data:` URL parsing and `prune` for trimming reasoning, tool calls and empty
messages from a history.

Conversion to provider prompts lives in `ferrin-core`.

Part of the [Ferrin](https://github.com/f4tumnigrum/ferrin) workspace. Design:
`docs/01-architecture/03-core-data-model.md` ยง7,
`docs/01-architecture/05-prompt-conversion.md`.

## License

Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). Portions of this crate are derived from the Vercel AI SDK (Apache-2.0); the crate and module documentation carry the attribution.