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

generatedfile

package
v0.1.58 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 URI = "/v2/api/agently/generated-file"

Functions

This section is empty.

Types

type GeneratedFile

type GeneratedFile struct {
	ID             string            `sqlx:"id,primaryKey" validate:"required"`
	ConversationID string            `sqlx:"conversation_id" validate:"required"`
	TurnID         *string           `sqlx:"turn_id" json:",omitempty"`
	MessageID      *string           `sqlx:"message_id" json:",omitempty"`
	Provider       string            `sqlx:"provider" validate:"required"`
	Mode           string            `sqlx:"mode" validate:"required"`
	CopyMode       string            `sqlx:"copy_mode" validate:"required"`
	Status         string            `sqlx:"status" validate:"required"`
	PayloadID      *string           `sqlx:"payload_id" json:",omitempty"`
	ContainerID    *string           `sqlx:"container_id" json:",omitempty"`
	ProviderFileID *string           `sqlx:"provider_file_id" json:",omitempty"`
	Filename       *string           `sqlx:"filename" json:",omitempty"`
	MimeType       *string           `sqlx:"mime_type" json:",omitempty"`
	SizeBytes      *int              `sqlx:"size_bytes" json:",omitempty"`
	Checksum       *string           `sqlx:"checksum" json:",omitempty"`
	ErrorMessage   *string           `sqlx:"error_message" json:",omitempty"`
	ExpiresAt      *time.Time        `sqlx:"expires_at" json:",omitempty"`
	CreatedAt      *time.Time        `sqlx:"created_at" json:",omitempty"`
	UpdatedAt      *time.Time        `sqlx:"updated_at" json:",omitempty"`
	Has            *GeneratedFileHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

func (*GeneratedFile) SetChecksum

func (p *GeneratedFile) SetChecksum(v string)

func (*GeneratedFile) SetContainerID

func (p *GeneratedFile) SetContainerID(v string)

func (*GeneratedFile) SetConversationID

func (p *GeneratedFile) SetConversationID(v string)

func (*GeneratedFile) SetCopyMode

func (p *GeneratedFile) SetCopyMode(v string)

func (*GeneratedFile) SetCreatedAt

func (p *GeneratedFile) SetCreatedAt(v time.Time)

func (*GeneratedFile) SetErrorMessage

func (p *GeneratedFile) SetErrorMessage(v string)

func (*GeneratedFile) SetExpiresAt

func (p *GeneratedFile) SetExpiresAt(v time.Time)

func (*GeneratedFile) SetFilename

func (p *GeneratedFile) SetFilename(v string)

func (*GeneratedFile) SetID

func (p *GeneratedFile) SetID(v string)

func (*GeneratedFile) SetMessageID

func (p *GeneratedFile) SetMessageID(v string)

func (*GeneratedFile) SetMimeType

func (p *GeneratedFile) SetMimeType(v string)

func (*GeneratedFile) SetMode

func (p *GeneratedFile) SetMode(v string)

func (*GeneratedFile) SetPayloadID

func (p *GeneratedFile) SetPayloadID(v string)

func (*GeneratedFile) SetProvider

func (p *GeneratedFile) SetProvider(v string)

func (*GeneratedFile) SetProviderFileID

func (p *GeneratedFile) SetProviderFileID(v string)

func (*GeneratedFile) SetSizeBytes

func (p *GeneratedFile) SetSizeBytes(v int)

func (*GeneratedFile) SetStatus

func (p *GeneratedFile) SetStatus(v string)

func (*GeneratedFile) SetTurnID

func (p *GeneratedFile) SetTurnID(v string)

func (*GeneratedFile) SetUpdatedAt

func (p *GeneratedFile) SetUpdatedAt(v time.Time)

type GeneratedFileHas

type GeneratedFileHas struct {
	ID             bool
	ConversationID bool
	TurnID         bool
	MessageID      bool
	Provider       bool
	Mode           bool
	CopyMode       bool
	Status         bool
	PayloadID      bool
	ContainerID    bool
	ProviderFileID bool
	Filename       bool
	MimeType       bool
	SizeBytes      bool
	Checksum       bool
	ErrorMessage   bool
	ExpiresAt      bool
	CreatedAt      bool
	UpdatedAt      bool
}

type GeneratedFileView

type GeneratedFileView = read.GeneratedFileView

type Has

type Has struct {
	ConversationID bool
	TurnID         bool
	MessageID      bool
	ID             bool
	Provider       bool
	Status         bool
	Since          bool
}

type Input

type Input struct {
	ConversationID string
	TurnID         string
	MessageID      string
	ID             string
	Provider       string
	Status         string
	Since          *time.Time
	Has            *Has `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type InputOption

type InputOption func(*Input)

func WithConversationID

func WithConversationID(id string) InputOption

func WithID

func WithID(id string) InputOption

func WithMessageID

func WithMessageID(id string) InputOption

func WithProvider

func WithProvider(provider string) InputOption

func WithSince

func WithSince(ts time.Time) InputOption

func WithStatus

func WithStatus(status string) InputOption

func WithTurnID

func WithTurnID(id string) InputOption

type Output

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

Jump to

Keyboard shortcuts

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