Help us shape the future of Go! Take the 2026 Go Developer Survey

message

package
v0.1.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ElicitationMessagePathURI = "/v1/api/agently/message/elicitation/elicitation/{convId}/{elicId}"
View Source
var MessagePathURI = "/v1/api/agently/message/{id}"
View Source
var MessageRowsPathURI = "/v1/api/agently/message/list/list"

Functions

This section is empty.

Types

type ElicitationMessageInput

type ElicitationMessageInput struct {
	ConversationId string
	ElicitationId  string
	Has            *ElicitationMessageInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type ElicitationMessageInputHas

type ElicitationMessageInputHas struct {
	ConversationId bool
	ElicitationId  bool
}

type ElicitationMessageOutput

type ElicitationMessageOutput struct {
	response.Status `json:",omitempty"`
	Data            []*ElicitationMessageView
	Metrics         response.Metrics
}

type ElicitationMessageView

type ElicitationMessageView struct {
	Id                   string     `sqlx:"id"`
	ConversationId       string     `sqlx:"conversation_id"`
	TurnId               *string    `sqlx:"turn_id"`
	Archived             *int       `sqlx:"archived"`
	Sequence             *int       `sqlx:"sequence"`
	CreatedAt            time.Time  `sqlx:"created_at"`
	UpdatedAt            *time.Time `sqlx:"updated_at"`
	CreatedByUserId      *string    `sqlx:"created_by_user_id"`
	Status               *string    `sqlx:"status"`
	Mode                 *string    `sqlx:"mode"`
	Role                 string     `sqlx:"role"`
	Type                 string     `sqlx:"type"`
	Content              *string    `sqlx:"content"`
	RawContent           *string    `sqlx:"raw_content"`
	Summary              *string    `sqlx:"summary"`
	ContextSummary       *string    `sqlx:"context_summary"`
	Tags                 *string    `sqlx:"tags"`
	Interim              int        `sqlx:"interim"`
	ElicitationId        *string    `sqlx:"elicitation_id"`
	ParentMessageId      *string    `sqlx:"parent_message_id"`
	SupersededBy         *string    `sqlx:"superseded_by"`
	LinkedConversationId *string    `sqlx:"linked_conversation_id"`
	AttachmentPayloadId  *string    `sqlx:"attachment_payload_id"`
	ElicitationPayloadId *string    `sqlx:"elicitation_payload_id"`
	ToolName             *string    `sqlx:"tool_name"`
	EmbeddingIndex       *string    `sqlx:"embedding_index"`
	Preamble             *string    `sqlx:"preamble"`
	Iteration            *int       `sqlx:"iteration"`
	Phase                *string    `sqlx:"phase"`
}

type Message

type Message struct {
	Id              string     `sqlx:"id,primaryKey" validate:"required"`
	Archived        *int       `sqlx:"archived" json:",omitempty"`
	ConversationID  string     `sqlx:"conversation_id" validate:"required"`
	TurnID          *string    `sqlx:"turn_id" json:",omitempty"`
	Sequence        *int       `sqlx:"sequence" json:",omitempty"`
	CreatedAt       *time.Time `sqlx:"created_at" json:",omitempty"`
	UpdatedAt       *time.Time `sqlx:"updated_at" json:",omitempty"`
	CreatedByUserID *string    `sqlx:"created_by_user_id" json:",omitempty"`
	Mode            *string    `sqlx:"mode" json:",omitempty"`
	Role            string     `sqlx:"role" validate:"required"`
	Status          *string    `sqlx:"status"`
	Type            string     `sqlx:"type" validate:"required"`
	Content         *string    `sqlx:"content"`
	RawContent      *string    `sqlx:"raw_content" json:",omitempty"`
	// Summary holds a compact retained summary for this message.
	Summary        *string `sqlx:"summary" json:",omitempty"`
	ContextSummary *string `sqlx:"context_summary" json:",omitempty"`
	// EmbeddingIndex stores a serialized vector index used for semantic match.
	EmbeddingIndex       *[]byte `sqlx:"embedding_index" json:",omitempty"`
	Tags                 *string `sqlx:"tags" json:",omitempty"`
	Interim              *int    `sqlx:"interim" json:",omitempty"`
	ElicitationID        *string `sqlx:"elicitation_id" json:",omitempty"`
	ParentMessageID      *string `sqlx:"parent_message_id" json:",omitempty"`
	SupersededBy         *string `sqlx:"superseded_by" json:",omitempty"`
	LinkedConversationID *string `sqlx:"linked_conversation_id" json:",omitempty"`
	ToolName             *string `sqlx:"tool_name" json:",omitempty"`
	Narration            *string `sqlx:"preamble" json:",omitempty"`
	Iteration            *int    `sqlx:"iteration" json:",omitempty"`
	Phase                *string `sqlx:"phase" json:",omitempty"`
	// AttachmentPayloadID links a message to an uploaded/staged attachment payload.
	AttachmentPayloadID *string `sqlx:"attachment_payload_id" json:",omitempty"`
	// ElicitationPayloadID links a message to an elicitation response payload.
	ElicitationPayloadID *string     `sqlx:"elicitation_payload_id" json:",omitempty"`
	Has                  *MessageHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*Message) SetArchived

func (m *Message) SetArchived(v int)

func (*Message) SetAttachmentPayloadID

func (m *Message) SetAttachmentPayloadID(v string)

func (*Message) SetContent

func (m *Message) SetContent(v string)

func (*Message) SetConversationID

func (m *Message) SetConversationID(v string)

func (*Message) SetCreatedAt

func (m *Message) SetCreatedAt(v time.Time)

func (*Message) SetCreatedByUserID

func (m *Message) SetCreatedByUserID(v string)

func (*Message) SetElicitationID

func (m *Message) SetElicitationID(id string)

func (*Message) SetElicitationPayloadID

func (m *Message) SetElicitationPayloadID(v string)

func (*Message) SetEmbeddingIndex

func (m *Message) SetEmbeddingIndex(v []byte)

func (*Message) SetId

func (m *Message) SetId(v string)

func (*Message) SetInterim

func (m *Message) SetInterim(v int)

func (*Message) SetIteration

func (m *Message) SetIteration(v int)

func (*Message) SetLinkedConversationID

func (m *Message) SetLinkedConversationID(v string)

func (*Message) SetMode

func (m *Message) SetMode(v string)

func (*Message) SetNarration

func (m *Message) SetNarration(v string)

func (*Message) SetParentMessageID

func (m *Message) SetParentMessageID(v string)

func (*Message) SetPhase

func (m *Message) SetPhase(v string)

func (*Message) SetRawContent

func (m *Message) SetRawContent(v string)

func (*Message) SetRole

func (m *Message) SetRole(v string)

func (*Message) SetSequence

func (m *Message) SetSequence(v int)

func (*Message) SetStatus

func (m *Message) SetStatus(v string)

func (*Message) SetSummary

func (m *Message) SetSummary(v string)

func (*Message) SetTags

func (m *Message) SetTags(v string)

func (*Message) SetToolName

func (m *Message) SetToolName(v string)

func (*Message) SetTurnID

func (m *Message) SetTurnID(v string)

func (*Message) SetType

func (m *Message) SetType(v string)

func (*Message) SetUpdatedAt

func (m *Message) SetUpdatedAt(v time.Time)

type MessageHas

type MessageHas struct {
	Id                   bool
	Archived             bool
	ConversationID       bool
	TurnID               bool
	Sequence             bool
	CreatedAt            bool
	UpdatedAt            bool
	CreatedByUserID      bool
	Mode                 bool
	Role                 bool
	Status               bool
	Type                 bool
	Content              bool
	RawContent           bool
	Summary              bool
	ContextSummary       bool
	EmbeddingIndex       bool
	Tags                 bool
	Interim              bool
	ElicitationID        bool
	ParentMessageID      bool
	SupersededBy         bool
	LinkedConversationID bool
	ToolName             bool
	Narration            bool
	Iteration            bool
	Phase                bool
	AttachmentPayloadID  bool
	ElicitationPayloadID bool
}

type MessageInput

type MessageInput = read.MessageRequest

Public names alias the contracts authored by the v1 message DQL.

type MessageInputHas

type MessageInputHas = read.MessageRequestHas

Public names alias the contracts authored by the v1 message DQL.

type MessageOutput

type MessageOutput = read.MessagesOutput

Public names alias the contracts authored by the v1 message DQL.

type MessageRowsInput

type MessageRowsInput struct {
	ConversationId  string
	TurnId          string
	Id              string
	Roles           []string
	Types           []string
	Interim         int
	Phase           string
	Iteration       int
	CreatedSince    time.Time
	CreatedBefore   time.Time
	CursorBefore    string
	CursorAfter     string
	TurnTask        bool
	AssistantFinal  bool
	AssistantStatus bool
	IncludeModelCal bool
	IncludeToolCall bool
	Has             *MessageRowsInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type MessageRowsInputHas

type MessageRowsInputHas struct {
	ConversationId  bool
	TurnId          bool
	Id              bool
	Roles           bool
	Types           bool
	Interim         bool
	Phase           bool
	Iteration       bool
	CreatedSince    bool
	CreatedBefore   bool
	CursorBefore    bool
	CursorAfter     bool
	TurnTask        bool
	AssistantFinal  bool
	AssistantStatus bool
	IncludeModelCal bool
	IncludeToolCall bool
}

type MessageRowsOutput

type MessageRowsOutput struct {
	response.Status `json:",omitempty"`
	Data            []*MessageRowsView
	Metrics         response.Metrics
}

type MessageRowsView

type MessageRowsView = base.MessageBaseView

type MessageView

type MessageView = read.MessageView

Public names alias the contracts authored by the v1 message DQL.

type MutableMessageView

type MutableMessageView = Message

func NewMutableMessageView

func NewMutableMessageView(opts ...MutableMessageViewOption) *MutableMessageView

type MutableMessageViewOption

type MutableMessageViewOption func(*MutableMessageView)

func WithMessageContent

func WithMessageContent(v string) MutableMessageViewOption

func WithMessageConversationID

func WithMessageConversationID(v string) MutableMessageViewOption

func WithMessageID

func WithMessageID(v string) MutableMessageViewOption

func WithMessageIteration

func WithMessageIteration(v int) MutableMessageViewOption

func WithMessageParentID

func WithMessageParentID(v string) MutableMessageViewOption

func WithMessagePhase

func WithMessagePhase(v string) MutableMessageViewOption

func WithMessagePreamble

func WithMessagePreamble(v string) MutableMessageViewOption

func WithMessageRole

func WithMessageRole(v string) MutableMessageViewOption

func WithMessageTurnID

func WithMessageTurnID(v string) MutableMessageViewOption

func WithMessageType

func WithMessageType(v string) MutableMessageViewOption

type MutableMessageViews

type MutableMessageViews struct {
	Messages []*MutableMessageView
}

func NewMutableMessageViews

func NewMutableMessageViews(rows ...*MutableMessageView) *MutableMessageViews

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL