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

turn

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

This section is empty.

Variables

View Source
var ActiveTurnsPathURI = "/v1/api/agently/turn/active/active"
View Source
var QueuedTotalPathURI = "/v1/api/agently/turn/queuedCount/queuedCount"
View Source
var QueuedTurnPathURI = "/v1/api/agently/turn/nextQueued/nextQueued"
View Source
var QueuedTurnsPathURI = "/v1/api/agently/turn/queuedList/queuedList"
View Source
var TurnLookupPathURI = "/v1/api/agently/turn/byId/byId"
View Source
var TurnRowsPathURI = "/v1/api/agently/turn/list/list"

Functions

This section is empty.

Types

type ActiveTurnsInput

type ActiveTurnsInput struct {
	ConversationID string
	Has            *ActiveTurnsInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type ActiveTurnsInputHas

type ActiveTurnsInputHas struct {
	ConversationID bool
}

type ActiveTurnsOutput

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

type ActiveTurnsView

type ActiveTurnsView = read.TurnRowsView

ActiveTurnsView uses the canonical DQL reader shape.

type IndexedTurn

type IndexedTurn map[string]*Turn

type MutableTurnView

type MutableTurnView = Turn

func NewMutableTurnView

func NewMutableTurnView(opts ...MutableTurnViewOption) *MutableTurnView

type MutableTurnViewOption

type MutableTurnViewOption func(*MutableTurnView)

func WithTurnConversationID

func WithTurnConversationID(v string) MutableTurnViewOption

func WithTurnGoalID

func WithTurnGoalID(v string) MutableTurnViewOption

func WithTurnID

func WithTurnID(v string) MutableTurnViewOption

func WithTurnOrigin

func WithTurnOrigin(v string) MutableTurnViewOption

func WithTurnRunID

func WithTurnRunID(v string) MutableTurnViewOption

func WithTurnStatus

func WithTurnStatus(v string) MutableTurnViewOption

func WithTurnStatusReason

func WithTurnStatusReason(v string) MutableTurnViewOption

type MutableTurnViews

type MutableTurnViews struct {
	Turns []*MutableTurnView
}

func NewMutableTurnViews

func NewMutableTurnViews(rows ...*MutableTurnView) *MutableTurnViews

type QueuedTotalInput

type QueuedTotalInput struct {
	ConversationID string
	Has            *QueuedTotalInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type QueuedTotalInputHas

type QueuedTotalInputHas struct {
	ConversationID bool
}

type QueuedTotalOutput

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

type QueuedTotalView

type QueuedTotalView struct {
	QueuedCount int `sqlx:"queued_count"`
}

type QueuedTurnInput

type QueuedTurnInput struct {
	ConversationID string
	Has            *QueuedTurnInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type QueuedTurnInputHas

type QueuedTurnInputHas struct {
	ConversationID bool
}

type QueuedTurnOutput

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

type QueuedTurnView

type QueuedTurnView = read.TurnRowsView

QueuedTurnView uses the canonical DQL reader shape.

type QueuedTurnsInput

type QueuedTurnsInput struct {
	ConversationID string
	Has            *QueuedTurnsInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type QueuedTurnsInputHas

type QueuedTurnsInputHas struct {
	ConversationID bool
}

type QueuedTurnsOutput

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

type QueuedTurnsView

type QueuedTurnsView struct {
	Id       string `sqlx:"id"`
	QueueSeq *int   `sqlx:"queue_seq"`
}

type Turn

type Turn struct {
	Id                    string     `sqlx:"id,primaryKey" validate:"required"`
	ConversationID        string     `sqlx:"conversation_id" validate:"required"`
	CreatedAt             *time.Time `sqlx:"created_at" json:",omitempty"`
	QueueSeq              *int64     `sqlx:"queue_seq" json:",omitempty"`
	Origin                *string    `sqlx:"origin" json:",omitempty"`
	GoalID                *string    `sqlx:"goal_id" json:",omitempty"`
	StatusReason          *string    `sqlx:"status_reason" json:",omitempty"`
	Status                string     `sqlx:"status" validate:"required"`
	StartedByMessageID    *string    `sqlx:"started_by_message_id" json:",omitempty"`
	RetryOf               *string    `sqlx:"retry_of" json:",omitempty"`
	AgentIDUsed           *string    `sqlx:"agent_id_used" json:",omitempty"`
	AgentConfigUsedID     *string    `sqlx:"agent_config_used_id" json:",omitempty"`
	ModelOverrideProvider *string    `sqlx:"model_override_provider" json:",omitempty"`
	ModelOverride         *string    `sqlx:"model_override" json:",omitempty"`
	ModelParamsOverride   *string    `sqlx:"model_params_override" json:",omitempty"`
	RunID                 *string    `sqlx:"run_id" json:",omitempty"`
	ErrorMessage          *string    `sqlx:"error_message" json:",omitempty"`
	Has                   *TurnHas   `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

Turn mirrors the turn table for upsert operations.

func (*Turn) SetAgentConfigUsedID

func (t *Turn) SetAgentConfigUsedID(v string)

func (*Turn) SetAgentIDUsed

func (t *Turn) SetAgentIDUsed(v string)

func (*Turn) SetConversationID

func (t *Turn) SetConversationID(v string)

func (*Turn) SetCreatedAt

func (t *Turn) SetCreatedAt(v time.Time)

func (*Turn) SetErrorMessage

func (t *Turn) SetErrorMessage(v string)

func (*Turn) SetGoalID

func (t *Turn) SetGoalID(v string)

func (*Turn) SetId

func (t *Turn) SetId(v string)

func (*Turn) SetModelOverride

func (t *Turn) SetModelOverride(v string)

func (*Turn) SetModelOverrideProvider

func (t *Turn) SetModelOverrideProvider(v string)

func (*Turn) SetModelParamsOverride

func (t *Turn) SetModelParamsOverride(v string)

func (*Turn) SetOrigin

func (t *Turn) SetOrigin(v string)

func (*Turn) SetQueueSeq

func (t *Turn) SetQueueSeq(v int64)

func (*Turn) SetRetryOf

func (t *Turn) SetRetryOf(v string)

func (*Turn) SetRunID

func (t *Turn) SetRunID(v string)

func (*Turn) SetStartedByMessageID

func (t *Turn) SetStartedByMessageID(v string)

func (*Turn) SetStatus

func (t *Turn) SetStatus(v string)

func (*Turn) SetStatusReason

func (t *Turn) SetStatusReason(v string)

type TurnHas

type TurnHas struct {
	Id                    bool
	ConversationID        bool
	CreatedAt             bool
	QueueSeq              bool
	Origin                bool
	GoalID                bool
	StatusReason          bool
	Status                bool
	StartedByMessageID    bool
	RetryOf               bool
	AgentIDUsed           bool
	AgentConfigUsedID     bool
	ModelOverrideProvider bool
	ModelOverride         bool
	ModelParamsOverride   bool
	RunID                 bool
	ErrorMessage          bool
}

type TurnLookupInput

type TurnLookupInput struct {
	ID             string
	ConversationID string
	Has            *TurnLookupInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type TurnLookupInputHas

type TurnLookupInputHas struct {
	ID             bool
	ConversationID bool
}

type TurnLookupOutput

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

type TurnLookupView

type TurnLookupView = read.TurnRowsView

TurnLookupView uses the canonical DQL reader shape.

type TurnRowsInput

type TurnRowsInput struct {
	ConversationID string
	TurnId         string
	Statuses       []string
	CreatedSince   time.Time
	CreatedBefore  time.Time
	CursorBefore   string
	CursorAfter    string
	Has            *TurnRowsInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type TurnRowsInputHas

type TurnRowsInputHas struct {
	ConversationID bool
	TurnId         bool
	Statuses       bool
	CreatedSince   bool
	CreatedBefore  bool
	CursorBefore   bool
	CursorAfter    bool
}

type TurnRowsOutput

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

type TurnRowsView

type TurnRowsView = read.TurnRowsView

TurnRowsView uses the canonical DQL reader shape.

type TurnSlice

type TurnSlice []*Turn

func (TurnSlice) IndexById

func (s TurnSlice) IndexById() IndexedTurn

Jump to

Keyboard shortcuts

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