model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ID        string       `json:"id"`
	Title     string       `json:"title"`
	Type      ArtifactType `json:"type"`
	Status    string       `json:"status"`
	Content   string       `json:"content,omitempty"`
	AudioURL  string       `json:"audio_url,omitempty"`
	CreatedAt time.Time    `json:"created_at"`
}

type ArtifactType

type ArtifactType int

ArtifactType represents the type of an artifact (maps to ArtifactTypeCode).

const (
	ArtifactTypeUnknown     ArtifactType = 0
	ArtifactTypeAudio       ArtifactType = 1
	ArtifactTypeReport      ArtifactType = 2
	ArtifactTypeVideo       ArtifactType = 3
	ArtifactTypeQuiz        ArtifactType = 4
	ArtifactTypeMindMap     ArtifactType = 5
	ArtifactTypeInfographic ArtifactType = 7
	ArtifactTypeSlideDeck   ArtifactType = 8
	ArtifactTypeDataTable   ArtifactType = 9
)

func (ArtifactType) String

func (a ArtifactType) String() string

type AskResult

type AskResult struct {
	Answer    string       `json:"answer"`
	Sources   []CitedChunk `json:"sources,omitempty"`
	FollowUps []string     `json:"follow_ups,omitempty"`
}

type ChatEntry

type ChatEntry struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type CitedChunk

type CitedChunk struct {
	SourceID   string `json:"source_id"`
	SourceName string `json:"source_name"`
	Text       string `json:"text"`
}

type Note

type Note struct {
	ID        string    `json:"id"`
	Title     string    `json:"title"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Notebook

type Notebook struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Description string    `json:"description,omitempty"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
	SourceCount int       `json:"source_count,omitempty"`
}

type SharePermission

type SharePermission int

SharePermission represents sharing permission levels.

const (
	SharePermissionNone   SharePermission = 0
	SharePermissionViewer SharePermission = 3
	SharePermissionEditor SharePermission = 2
	SharePermissionOwner  SharePermission = 1
)

func (SharePermission) String

func (s SharePermission) String() string

type Source

type Source struct {
	ID        string     `json:"id"`
	Title     string     `json:"title"`
	Type      SourceType `json:"type"`
	URL       string     `json:"url,omitempty"`
	Status    string     `json:"status"`
	CreatedAt time.Time  `json:"created_at"`
}

type SourceType

type SourceType int

SourceType represents the type of a source (from API type codes).

const (
	SourceTypeUnknown      SourceType = 0
	SourceTypeGoogleDocs   SourceType = 1
	SourceTypeGoogleSlides SourceType = 2
	SourceTypePDF          SourceType = 3
	SourceTypePastedText   SourceType = 4
	SourceTypeWebPage      SourceType = 5
	SourceTypeMarkdown     SourceType = 8
	SourceTypeYouTube      SourceType = 9
	SourceTypeMedia        SourceType = 10
	SourceTypeDocx         SourceType = 11
	SourceTypeImage        SourceType = 13
	SourceTypeGoogleSheets SourceType = 14
	SourceTypeCSV          SourceType = 16
)

func (SourceType) String

func (s SourceType) String() string

Jump to

Keyboard shortcuts

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