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

conversation

package
v0.1.57 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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StageWaiting   = "waiting"
	StageThinking  = "thinking"
	StageExecuting = "executing"
	StageEliciting = "elicitation"
	StageCanceled  = "canceled"
	StageDone      = "done"
	StageError     = "error"

	StatusSucceeded      = "succeeded"
	StatusRunning        = "running"
	StatusWaitingForUser = "waiting_for_user"
	StatusFailed         = "failed"
	StatusCanceled       = "canceled"
)
View Source
const (
	VisibilityPrivate = "private"
	VisibilityPublic  = "public"
)

Variables

View Source
var ConversationRowsPathURI = "/v1/api/agently/conversation/list/list"

Functions

This section is empty.

Types

type AttachmentView

type AttachmentView = read.AttachmentView

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

type Conversation

type Conversation = MutableConversationView

Compatibility aliases.

type ConversationHas

type ConversationHas struct {
	Id                       bool
	Summary                  bool
	LastActivity             bool
	UsageInputTokens         bool
	UsageOutputTokens        bool
	UsageEmbeddingTokens     bool
	CreatedAt                bool
	UpdatedAt                bool
	CreatedByUserID          bool
	AgentId                  bool
	DefaultModelProvider     bool
	DefaultModel             bool
	DefaultModelParams       bool
	Title                    bool
	ConversationParentId     bool
	ConversationParentTurnId bool
	Metadata                 bool
	Visibility               bool
	Shareable                bool
	Status                   bool
	Scheduled                bool
	ScheduleId               bool
	ScheduleRunId            bool
	ScheduleKind             bool
	ScheduleTimezone         bool
	ScheduleCronExpr         bool
	ExternalTaskRef          bool
}

type ConversationInput

type ConversationInput = read.ConversationRequest

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

type ConversationInputHas

type ConversationInputHas = read.ConversationRequestHas

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

type ConversationOutput

type ConversationOutput = read.ConversationOutput

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

type ConversationRowsInput

type ConversationRowsInput = read.ConversationRequest

type ConversationRowsInputHas

type ConversationRowsInputHas = read.ConversationRequestHas

type ConversationRowsOutput

type ConversationRowsOutput = read.ConversationOutput

type ConversationRowsView

type ConversationRowsView = read.ConversationView

type ConversationView

type ConversationView = read.ConversationView

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

type Conversations

type Conversations = MutableConversationViews

type Elicitation

type Elicitation = codec.JSON

Elicitation is the logical payload codec used by the v1 reader DQL.

type LinkedConversationView

type LinkedConversationView = read.LinkedConversationView

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

type MessageToolCallView

type MessageToolCallView = read.MessageToolCallView

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

type MessageView

type MessageView = read.MessageView

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

type ModelCallStreamPayloadView

type ModelCallStreamPayloadView = read.ModelCallStreamPayloadView

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

type ModelCallView

type ModelCallView = read.ModelCallView

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

type ModelView

type ModelView = read.ModelView

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

type MutableConversationView

type MutableConversationView struct {
	Id                       string           `sqlx:"id,primaryKey" validate:"required"`
	Summary                  *string          `sqlx:"summary" json:",omitempty"`
	LastActivity             *time.Time       `sqlx:"last_activity" json:",omitempty"`
	UsageInputTokens         *int             `sqlx:"usage_input_tokens" json:",omitempty"`
	UsageOutputTokens        *int             `sqlx:"usage_output_tokens" json:",omitempty"`
	UsageEmbeddingTokens     *int             `sqlx:"usage_embedding_tokens" 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"`
	AgentId                  *string          `sqlx:"agent_id" json:",omitempty"`
	DefaultModelProvider     *string          `sqlx:"default_model_provider" json:",omitempty"`
	DefaultModel             *string          `sqlx:"default_model" json:",omitempty"`
	DefaultModelParams       *string          `sqlx:"default_model_params" json:",omitempty"`
	Title                    *string          `sqlx:"title" json:",omitempty"`
	ConversationParentId     *string          `sqlx:"conversation_parent_id" json:",omitempty"`
	ConversationParentTurnId *string          `sqlx:"conversation_parent_turn_id" json:",omitempty"`
	Metadata                 *string          `sqlx:"metadata" json:",omitempty"`
	Visibility               *string          `sqlx:"visibility" json:",omitempty"`
	Shareable                int              `sqlx:"shareable" json:",omitempty"`
	Status                   *string          `sqlx:"status" json:",omitempty"`
	Scheduled                *int             `sqlx:"scheduled" json:",omitempty"`
	ScheduleId               *string          `sqlx:"schedule_id" json:",omitempty"`
	ScheduleRunId            *string          `sqlx:"schedule_run_id" json:",omitempty"`
	ScheduleKind             *string          `sqlx:"schedule_kind" json:",omitempty"`
	ScheduleTimezone         *string          `sqlx:"schedule_timezone" json:",omitempty"`
	ScheduleCronExpr         *string          `sqlx:"schedule_cron_expr" json:",omitempty"`
	ExternalTaskRef          *string          `sqlx:"external_task_ref" json:",omitempty"`
	Has                      *ConversationHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func NewConversationStatus

func NewConversationStatus(id, status string) *MutableConversationView

func (*MutableConversationView) SetAgentId

func (c *MutableConversationView) SetAgentId(value string)

func (*MutableConversationView) SetConversationParentId

func (c *MutableConversationView) SetConversationParentId(value string)

func (*MutableConversationView) SetConversationParentTurnId

func (c *MutableConversationView) SetConversationParentTurnId(value string)

func (*MutableConversationView) SetCreatedAt

func (c *MutableConversationView) SetCreatedAt(value time.Time)

func (*MutableConversationView) SetCreatedByUserID

func (c *MutableConversationView) SetCreatedByUserID(value string)

func (*MutableConversationView) SetDefaultModel

func (c *MutableConversationView) SetDefaultModel(value string)

func (*MutableConversationView) SetDefaultModelParams

func (c *MutableConversationView) SetDefaultModelParams(value string)

func (*MutableConversationView) SetDefaultModelProvider

func (c *MutableConversationView) SetDefaultModelProvider(value string)

func (*MutableConversationView) SetExternalTaskRef

func (c *MutableConversationView) SetExternalTaskRef(value string)

func (*MutableConversationView) SetId

func (c *MutableConversationView) SetId(value string)

func (*MutableConversationView) SetLastActivity

func (c *MutableConversationView) SetLastActivity(value time.Time)

func (*MutableConversationView) SetMetadata

func (c *MutableConversationView) SetMetadata(value string)

func (*MutableConversationView) SetScheduleCronExpr

func (c *MutableConversationView) SetScheduleCronExpr(value string)

func (*MutableConversationView) SetScheduleId

func (c *MutableConversationView) SetScheduleId(value string)

func (*MutableConversationView) SetScheduleKind

func (c *MutableConversationView) SetScheduleKind(value string)

func (*MutableConversationView) SetScheduleRunId

func (c *MutableConversationView) SetScheduleRunId(value string)

func (*MutableConversationView) SetScheduleTimezone

func (c *MutableConversationView) SetScheduleTimezone(value string)

func (*MutableConversationView) SetScheduled

func (c *MutableConversationView) SetScheduled(value int)

func (*MutableConversationView) SetShareable

func (c *MutableConversationView) SetShareable(value int)

func (*MutableConversationView) SetStatus

func (c *MutableConversationView) SetStatus(value string)

func (*MutableConversationView) SetSummary

func (c *MutableConversationView) SetSummary(value string)

func (*MutableConversationView) SetTitle

func (c *MutableConversationView) SetTitle(value string)

func (*MutableConversationView) SetUpdatedAt

func (c *MutableConversationView) SetUpdatedAt(value time.Time)

func (*MutableConversationView) SetUsageEmbeddingTokens

func (c *MutableConversationView) SetUsageEmbeddingTokens(value int)

func (*MutableConversationView) SetUsageInputTokens

func (c *MutableConversationView) SetUsageInputTokens(value int)

func (*MutableConversationView) SetUsageOutputTokens

func (c *MutableConversationView) SetUsageOutputTokens(value int)

func (*MutableConversationView) SetVisibility

func (c *MutableConversationView) SetVisibility(value string)

type MutableConversationViewOption

type MutableConversationViewOption func(*MutableConversationView)

func WithConversationID

func WithConversationID(v string) MutableConversationViewOption

func WithConversationShareable

func WithConversationShareable(v int) MutableConversationViewOption

func WithConversationStatus

func WithConversationStatus(v string) MutableConversationViewOption

func WithConversationSummary

func WithConversationSummary(v string) MutableConversationViewOption

func WithConversationVisibility

func WithConversationVisibility(v string) MutableConversationViewOption

type MutableConversationViews

type MutableConversationViews struct {
	Conversations []*MutableConversationView
}

func NewMutableConversationViews

func NewMutableConversationViews(rows ...*MutableConversationView) *MutableConversationViews

type ToolCallLinksView

type ToolCallLinksView = read.ToolCallLinksView

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

type ToolCallView

type ToolCallView = read.ToolCallView

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

type ToolMessageView

type ToolMessageView = read.ToolMessageView

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

type TranscriptView

type TranscriptView = read.TranscriptView

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

type UsageView

type UsageView = read.UsageView

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

type UserElicitationDataView

type UserElicitationDataView = read.UserElicitationDataView

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

Jump to

Keyboard shortcuts

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