picoclaw/pkg/providers/protocoltypes
maxiaoyang 72005ae06c feat(protocol): add Name field to providers.Message
Adds an optional Name field on providers.Message so per-message sender
attribution can be carried through the persistence layer and onto the
wire. The field is JSON-tagged `name,omitempty`, so:

- the OpenAI Chat Completions wire format will be able to emit the
  native `name` field that disambiguates participants in multi-user
  conversations;
- session stores that round-trip messages via json.Marshal preserve
  the field with no extra plumbing;
- existing session files load cleanly with Name = "".

This is the schema-only change. Adapters and the agent pipeline are
updated in subsequent commits.

Refs #2702.
2026-04-29 20:54:11 +08:00
..
types.go feat(protocol): add Name field to providers.Message 2026-04-29 20:54:11 +08:00
types_test.go feat(protocol): add Name field to providers.Message 2026-04-29 20:54:11 +08:00