Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessageType ¶
type ChatMessageType string
const ( ChatMessageTypeSystem ChatMessageType = "system" ChatMessageTypeHuman ChatMessageType = "human" ChatMessageTypeAI ChatMessageType = "ai" ChatMessageTypeGeneric ChatMessageType = "generic" )
type CodeChunkingOptions ¶
type CodeEntityDefinition ¶
type CodeSymbol ¶
type CollectionInfo ¶
type ContentChoice ¶ added in v0.2.0
type ContentPart ¶
type ContentPart interface {
String() string
// contains filtered or unexported methods
}
type ContentResponse ¶ added in v0.2.0
type ContentResponse struct {
Choices []*ContentChoice
}
type FileMetadata ¶
type FileMetadata struct {
FilePath string
Language string
Imports []string
Definitions []CodeEntityDefinition
Symbols []CodeSymbol
Properties map[string]string
}
type MessageContent ¶
type MessageContent struct {
Role ChatMessageType
Parts []ContentPart
}
func NewAIMessage ¶
func NewAIMessage(text string) MessageContent
func NewHumanMessage ¶
func NewHumanMessage(text string) MessageContent
func NewSystemMessage ¶
func NewSystemMessage(text string) MessageContent
func NewTextMessage ¶
func NewTextMessage(role ChatMessageType, text string) MessageContent
func (MessageContent) GetTextContent ¶
func (mc MessageContent) GetTextContent() string
func (MessageContent) String ¶
func (mc MessageContent) String() string
type ModelDetails ¶
func (ModelDetails) String ¶
func (md ModelDetails) String() string
type ParserPlugin ¶
type TextContent ¶
type TextContent struct {
Text string
}
func (TextContent) String ¶
func (tc TextContent) String() string
Click to show internal directories.
Click to hide internal directories.