message

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessageFS embed.FS
View Source
var MessagePathURI = "/v1/api/agently/message/{id}"

Functions

func DefineMessageComponent

func DefineMessageComponent(ctx context.Context, srv *datly.Service) error

Types

type MessageInput

type MessageInput struct {
	Id              string           `parameter:",kind=path,in=id" predicate:"equal,group=4,m,id"`
	IncludeModelCal bool             `parameter:",kind=query,in=includeModelCall" predicate:"expr,group=2,?" value:"false"`
	IncludeToolCall bool             `parameter:",kind=query,in=includeToolCall" predicate:"expr,group=3,?" value:"false"`
	Has             *MessageInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*MessageInput) EmbedFS

func (i *MessageInput) EmbedFS() *embed.FS

type MessageInputHas

type MessageInputHas struct {
	Id              bool
	IncludeModelCal bool
	IncludeToolCall bool
}

type MessageOutput

type MessageOutput struct {
	response.Status `parameter:",kind=output,in=status" json:",omitempty"`
	Data            []*MessageView   `parameter:",kind=output,in=view" view:"message,batch=10000,relationalConcurrency=1" sql:"uri=message/message.sql"`
	Metrics         response.Metrics `parameter:",kind=output,in=metrics"`
}

type MessageView

type MessageView 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"`
	ElicitationBody        []byte                 `sqlx:"elicitation_body"`
	ElicitationCompression string                 `sqlx:"elicitation_compression"`
	Elicitation            map[string]interface{} `sqlx:"-"`
}

func (*MessageView) OnFetch added in v0.1.6

func (m *MessageView) OnFetch(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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