Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Models = []VertexModel{ Claude3Dot5SonnetV2, Claude3Dot5Haiku, Claude3Dot5Sonnet, Claude3Opus, Claude3Sonnet, Claude3Haiku, }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Message ¶
func (c *Client) Message(ctx context.Context, req *claude.MessageRequest, options ...clientiface.Option) (claude.MessageResponse, error)
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCredentials ¶
func WithCredentials(creds *google.Credentials) Option
WithCredentials allows the user to pass in their own credentials
func WithDebugLogger ¶
func WithRoundTripper ¶
func WithRoundTripper(r http.RoundTripper) Option
Set a custom RoundTripper. This is useful if you wish to customize the http request before sending it.
type VertexModel ¶
type VertexModel string
const ( Claude3Dot5SonnetV2 VertexModel = "claude-3-5-sonnet-v2@20241022" Claude3Dot5Haiku VertexModel = "claude-3-5-haiku@20241022" Claude3Opus VertexModel = "claude-3-opus@20240229" Claude3Dot5Sonnet VertexModel = "claude-3-5-sonnet@20240620" Claude3Sonnet VertexModel = "claude-3-sonnet@20240229" Claude3Haiku VertexModel = "claude-3-haiku@20240307" )
func ModelToVertexModel ¶
func ModelToVertexModel(m string) (VertexModel, error)
func (VertexModel) PrettyName ¶
func (m VertexModel) PrettyName() string
Click to show internal directories.
Click to hide internal directories.