run

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunStepsFS embed.FS
View Source
var RunStepsPathURI = "/v1/api/agently/run/steps/steps"

Functions

func DefineRunStepsComponent

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

Types

type RunStepsInput

type RunStepsInput struct {
	RunID        string            `parameter:",kind=query,in=runId" predicate:"equal,group=0,m,run_id" predicate:"equal,group=1,t,run_id"`
	Iteration    int               `parameter:",kind=query,in=iteration" predicate:"equal,group=0,m,iteration" predicate:"equal,group=1,t,iteration"`
	StepTypes    []string          `parameter:",kind=query,in=stepTypes" predicate:"literal_in,group=0,model_call" predicate:"literal_in,group=1,tool_call"`
	CursorBefore string            `parameter:",kind=query,in=cursorBefore" predicate:"expr,group=0,m.message_id < ?" predicate:"expr,group=1,t.message_id < ?"`
	CursorAfter  string            `parameter:",kind=query,in=cursorAfter" predicate:"expr,group=0,m.message_id > ?" predicate:"expr,group=1,t.message_id > ?"`
	Has          *RunStepsInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*RunStepsInput) EmbedFS

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

type RunStepsInputHas

type RunStepsInputHas struct {
	RunID        bool
	Iteration    bool
	StepTypes    bool
	CursorBefore bool
	CursorAfter  bool
}

type RunStepsOutput

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

type RunStepsView

type RunStepsView struct {
	StepType       string     `sqlx:"step_type"`
	RunId          *string    `sqlx:"run_id"`
	ConversationId *string    `sqlx:"conversation_id"`
	Iteration      *int       `sqlx:"iteration"`
	MessageId      string     `sqlx:"message_id"`
	Name           string     `sqlx:"name" source:"model"`
	Status         string     `sqlx:"status"`
	StartedAt      *time.Time `sqlx:"started_at"`
	CompletedAt    *time.Time `sqlx:"completed_at"`
	LatencyMs      *int       `sqlx:"latency_ms"`
	ErrorMessage   *string    `sqlx:"error_message"`
}

Jump to

Keyboard shortcuts

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