Documentation
¶
Overview ¶
Package claude defines constants for claude.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantGenTextExtension ¶
type AssistantGenTextExtension struct {
Citations []*TextCitation `json:"citations,omitempty"`
}
func ConcatAssistantGenTextExtensions ¶
func ConcatAssistantGenTextExtensions(chunks []*AssistantGenTextExtension) (*AssistantGenTextExtension, error)
ConcatAssistantGenTextExtensions concatenates multiple AssistantGenTextExtension chunks into a single one.
type CitationCharLocation ¶
type CitationContentBlockLocation ¶
type CitationContentBlockLocation struct {
CitedText string `json:"cited_text,omitempty"`
DocumentTitle string `json:"document_title,omitempty"`
DocumentIndex int `json:"document_index,omitempty"`
StartBlockIndex int `json:"start_block_index,omitempty"`
EndBlockIndex int `json:"end_block_index,omitempty"`
}
type CitationPageLocation ¶
type CitationPageLocation struct {
CitedText string `json:"cited_text,omitempty"`
DocumentTitle string `json:"document_title,omitempty"`
DocumentIndex int `json:"document_index,omitempty"`
StartPageNumber int `json:"start_page_number,omitempty"`
EndPageNumber int `json:"end_page_number,omitempty"`
}
type ResponseMetaExtension ¶
type ResponseMetaExtension struct {
ID string `json:"id,omitempty"`
StopReason string `json:"stop_reason,omitempty"`
}
func ConcatResponseMetaExtensions ¶
func ConcatResponseMetaExtensions(chunks []*ResponseMetaExtension) (*ResponseMetaExtension, error)
ConcatResponseMetaExtensions concatenates multiple ResponseMetaExtension chunks into a single one.
type TextCitation ¶
type TextCitation struct {
Type TextCitationType `json:"type,omitempty"`
CharLocation *CitationCharLocation `json:"char_location,omitempty"`
PageLocation *CitationPageLocation `json:"page_location,omitempty"`
ContentBlockLocation *CitationContentBlockLocation `json:"content_block_location,omitempty"`
WebSearchResultLocation *CitationWebSearchResultLocation `json:"web_search_result_location,omitempty"`
}
type TextCitationType ¶
type TextCitationType string
const ( TextCitationTypeCharLocation TextCitationType = "char_location" TextCitationTypePageLocation TextCitationType = "page_location" TextCitationTypeContentBlockLocation TextCitationType = "content_block_location" TextCitationTypeWebSearchResultLocation TextCitationType = "web_search_result_location" )
Click to show internal directories.
Click to hide internal directories.