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 CodeChunk ¶
type CodeChunk struct {
Content string `json:"content"`
LineStart int `json:"lineStart"`
LineEnd int `json:"lineEnd"`
Type string `json:"type"`
Identifier string `json:"identifier"`
Annotations map[string]string `json:"annotations"`
TokenCount int `json:"tokenCount"`
EnrichedContent string `json:"enrichedContent"`
ParentContext string `json:"parentContext"`
ContextLevel int `json:"contextLevel"`
}
type CodeChunkingOptions ¶
type CodeEntityDefinition ¶
type CodeSymbol ¶
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 `json:"file_path"`
Language string `json:"language"`
PackageName string `json:"package_name"`
Imports []string `json:"imports"`
Definitions []CodeEntityDefinition `json:"definitions"`
Symbols []CodeSymbol `json:"symbols"`
Properties map[string]string `json:"properties"`
}
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.