Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 CitedChunk ¶
type SharePermission ¶
type SharePermission int
SharePermission represents sharing permission levels.
const ( )
func (SharePermission) String ¶
func (s SharePermission) String() string
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
Click to show internal directories.
Click to hide internal directories.