Documentation
¶
Index ¶
- Variables
- func DefineComponent(ctx context.Context, srv *datly.Service) (*repository.Component, error)
- func DefineDeleteComponent(ctx context.Context, srv *datly.Service) (*repository.Component, error)
- type DeleteHandler
- type DeleteInput
- type DeleteOutput
- type Goal
- func (g *Goal) SetAutonomousTurnsUsed(v int64)
- func (g *Goal) SetConsecutiveNoProgress(v int64)
- func (g *Goal) SetControllerSpec(v string)
- func (g *Goal) SetConversationID(v string)
- func (g *Goal) SetCreatedAt(v time.Time)
- func (g *Goal) SetId(v string)
- func (g *Goal) SetLastContinuationFingerprint(v string)
- func (g *Goal) SetObjective(v string)
- func (g *Goal) SetPauseReason(v string)
- func (g *Goal) SetStatus(v string)
- func (g *Goal) SetStatusReason(v string)
- func (g *Goal) SetTimeUsedSeconds(v int64)
- func (g *Goal) SetTokenBudget(v int64)
- func (g *Goal) SetTokensUsed(v int64)
- func (g *Goal) SetUpdatedAt(v time.Time)
- type GoalHas
- type GoalSlice
- type Handler
- type IndexedGoal
- type Input
- type MutableGoalView
- type MutableGoalViewOption
- func WithGoalAutonomousTurnsUsed(v int64) MutableGoalViewOption
- func WithGoalConsecutiveNoProgress(v int64) MutableGoalViewOption
- func WithGoalControllerSpec(v string) MutableGoalViewOption
- func WithGoalConversationID(v string) MutableGoalViewOption
- func WithGoalID(v string) MutableGoalViewOption
- func WithGoalLastContinuationFingerprint(v string) MutableGoalViewOption
- func WithGoalObjective(v string) MutableGoalViewOption
- func WithGoalPauseReason(v string) MutableGoalViewOption
- func WithGoalStatus(v string) MutableGoalViewOption
- func WithGoalStatusReason(v string) MutableGoalViewOption
- func WithGoalTimeUsedSeconds(v int64) MutableGoalViewOption
- func WithGoalTokenBudget(v int64) MutableGoalViewOption
- func WithGoalTokensUsed(v int64) MutableGoalViewOption
- type MutableGoalViews
- type Output
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
View Source
var PackageName = "goal/write"
View Source
var PathURI = "/v1/api/agently/goal"
Functions ¶
func DefineComponent ¶
func DefineDeleteComponent ¶
Types ¶
type DeleteHandler ¶
type DeleteHandler struct{}
type DeleteInput ¶
type DeleteInput struct {
Rows []*MutableGoalView `parameter:",kind=body,in=data"`
}
type DeleteOutput ¶
type Goal ¶
type Goal struct {
Id string `sqlx:"id,primaryKey" validate:"required"`
ConversationID *string `sqlx:"conversation_id" json:",omitempty"`
Objective *string `sqlx:"objective" json:",omitempty"`
Status *string `sqlx:"status" json:",omitempty"`
StatusReason *string `sqlx:"status_reason" json:",omitempty"`
PauseReason *string `sqlx:"pause_reason" json:",omitempty"`
ControllerSpec *string `sqlx:"controller_spec" json:",omitempty"`
TokenBudget *int64 `sqlx:"token_budget" json:",omitempty"`
TokensUsed *int64 `sqlx:"tokens_used" json:",omitempty"`
TimeUsedSeconds *int64 `sqlx:"time_used_seconds" json:",omitempty"`
AutonomousTurnsUsed *int64 `sqlx:"autonomous_turns_used" json:",omitempty"`
ConsecutiveNoProgress *int64 `sqlx:"consecutive_no_progress" json:",omitempty"`
LastContinuationFingerprint *string `sqlx:"last_continuation_fingerprint" json:",omitempty"`
CreatedAt *time.Time `sqlx:"created_at" json:",omitempty"`
UpdatedAt *time.Time `sqlx:"updated_at" json:",omitempty"`
Has *GoalHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}
func (*Goal) SetAutonomousTurnsUsed ¶
func (*Goal) SetConsecutiveNoProgress ¶
func (*Goal) SetControllerSpec ¶
func (*Goal) SetConversationID ¶
func (*Goal) SetCreatedAt ¶
func (*Goal) SetLastContinuationFingerprint ¶
func (*Goal) SetObjective ¶
func (*Goal) SetPauseReason ¶
func (*Goal) SetStatusReason ¶
func (*Goal) SetTimeUsedSeconds ¶
func (*Goal) SetTokenBudget ¶
func (*Goal) SetTokensUsed ¶
func (*Goal) SetUpdatedAt ¶
type GoalHas ¶
type GoalHas struct {
Id bool
ConversationID bool
Objective bool
Status bool
StatusReason bool
PauseReason bool
ControllerSpec bool
TokenBudget bool
TokensUsed bool
TimeUsedSeconds bool
AutonomousTurnsUsed bool
ConsecutiveNoProgress bool
LastContinuationFingerprint bool
CreatedAt bool
UpdatedAt bool
}
type GoalSlice ¶
type GoalSlice []*Goal
func (GoalSlice) IndexById ¶
func (s GoalSlice) IndexById() IndexedGoal
type IndexedGoal ¶
type Input ¶
type Input struct {
Goals []*Goal `parameter:",kind=body,in=data"`
CurGoalIDs *struct{ Values []string } `parameter:",kind=param,in=Goals,dataType=goal/write.MutableGoalViews" codec:"structql,uri=sql/cur_ids.sql"`
CurGoals []*Goal `parameter:",kind=view,in=CurGoals" view:"CurGoals" sql:"uri=sql/cur_goal.sql"`
CurGoalById IndexedGoal
}
type MutableGoalView ¶
type MutableGoalView = Goal
func NewMutableGoalView ¶
func NewMutableGoalView(opts ...MutableGoalViewOption) *MutableGoalView
type MutableGoalViewOption ¶
type MutableGoalViewOption func(*MutableGoalView)
func WithGoalAutonomousTurnsUsed ¶
func WithGoalAutonomousTurnsUsed(v int64) MutableGoalViewOption
func WithGoalConsecutiveNoProgress ¶
func WithGoalConsecutiveNoProgress(v int64) MutableGoalViewOption
func WithGoalControllerSpec ¶
func WithGoalControllerSpec(v string) MutableGoalViewOption
func WithGoalConversationID ¶
func WithGoalConversationID(v string) MutableGoalViewOption
func WithGoalID ¶
func WithGoalID(v string) MutableGoalViewOption
func WithGoalLastContinuationFingerprint ¶
func WithGoalLastContinuationFingerprint(v string) MutableGoalViewOption
func WithGoalObjective ¶
func WithGoalObjective(v string) MutableGoalViewOption
func WithGoalPauseReason ¶
func WithGoalPauseReason(v string) MutableGoalViewOption
func WithGoalStatus ¶
func WithGoalStatus(v string) MutableGoalViewOption
func WithGoalStatusReason ¶
func WithGoalStatusReason(v string) MutableGoalViewOption
func WithGoalTimeUsedSeconds ¶
func WithGoalTimeUsedSeconds(v int64) MutableGoalViewOption
func WithGoalTokenBudget ¶
func WithGoalTokenBudget(v int64) MutableGoalViewOption
func WithGoalTokensUsed ¶
func WithGoalTokensUsed(v int64) MutableGoalViewOption
type MutableGoalViews ¶
type MutableGoalViews struct {
Goals []*MutableGoalView
}
func NewMutableGoalViews ¶
func NewMutableGoalViews(rows ...*MutableGoalView) *MutableGoalViews
Click to show internal directories.
Click to hide internal directories.