Help us shape the future of Go! Take the 2026 Go Developer Survey

claude

package
v0.9.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

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 merges multiple AssistantGenTextExtension chunks into one.

type CitationCharLocation

type CitationCharLocation struct {
	CitedText string `json:"cited_text,omitempty"`

	DocumentTitle string `json:"document_title,omitempty"`
	DocumentIndex int    `json:"document_index,omitempty"`

	StartCharIndex int `json:"start_char_index,omitempty"`
	EndCharIndex   int `json:"end_char_index,omitempty"`
}

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 CitationWebSearchResultLocation

type CitationWebSearchResultLocation struct {
	CitedText string `json:"cited_text,omitempty"`

	Title string `json:"title,omitempty"`
	URL   string `json:"url,omitempty"`

	EncryptedIndex string `json:"encrypted_index,omitempty"`
}

type ResponseMetaExtension

type ResponseMetaExtension struct {
	ID           string       `json:"id,omitempty"`
	StopReason   string       `json:"stop_reason,omitempty"`
	StopSequence string       `json:"stop_sequence,omitempty"`
	StopDetails  *StopDetails `json:"stop_details,omitempty"`
}

func ConcatResponseMetaExtensions

func ConcatResponseMetaExtensions(chunks []*ResponseMetaExtension) (*ResponseMetaExtension, error)

ConcatResponseMetaExtensions merges multiple ResponseMetaExtension chunks into one.

type StopDetails

type StopDetails struct {
	Category    string `json:"category,omitempty"`
	Explanation string `json:"explanation,omitempty"`
}

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL