Documentation
¶
Index ¶
- func ChatMessageToString(msg ChatMessage) string
- type AIChatMessage
- type ChatMessage
- type ChatMessageType
- type CodeChunk
- type CodeChunkingOptions
- type CodeEntityDefinition
- type CodeSymbol
- type CollectionInfo
- type ContentPart
- type Document
- type FileMetadata
- type HumanChatMessage
- type MessageContent
- type ModelDetails
- type ParserPlugin
- type Retriever
- type SystemChatMessage
- type TextContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatMessageToString ¶
func ChatMessageToString(msg ChatMessage) string
Types ¶
type AIChatMessage ¶
type AIChatMessage struct {
Content string
}
func NewAIChatMessage ¶
func NewAIChatMessage(content string) AIChatMessage
func (AIChatMessage) GetContent ¶
func (m AIChatMessage) GetContent() string
func (AIChatMessage) GetType ¶
func (m AIChatMessage) GetType() ChatMessageType
type ChatMessage ¶
type ChatMessage interface {
GetType() ChatMessageType
GetContent() string
}
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 CollectionInfo struct {
Name string `json:"name"` // Name of the collection.
PointsCount uint64 `json:"points_count"` // Number of points (vectors) in the collection.
VectorSize uint64 `json:"vector_size"` // Dimensionality of the vectors in this collection.
VectorDistance string `json:"vector_distance"` // Distance metric used by the collection (e.g., "Cosine").
}
type ContentPart ¶
type ContentPart interface {
String() string
// contains filtered or unexported methods
}
type FileMetadata ¶
type FileMetadata struct {
FilePath string
Language string
Imports []string
Definitions []CodeEntityDefinition
Symbols []CodeSymbol
Properties map[string]string
}
type HumanChatMessage ¶
type HumanChatMessage struct {
Content string
}
func NewHumanChatMessage ¶
func NewHumanChatMessage(content string) HumanChatMessage
func (HumanChatMessage) GetContent ¶
func (m HumanChatMessage) GetContent() string
func (HumanChatMessage) GetType ¶
func (m HumanChatMessage) GetType() ChatMessageType
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 SystemChatMessage ¶
type SystemChatMessage struct {
Content string
}
func NewSystemChatMessage ¶
func NewSystemChatMessage(content string) SystemChatMessage
Convenience constructors
func (SystemChatMessage) GetContent ¶
func (m SystemChatMessage) GetContent() string
func (SystemChatMessage) GetType ¶
func (m SystemChatMessage) GetType() ChatMessageType
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.