Documentation
¶
Index ¶
- type AiStudio
- func (p *AiStudio) ChatCompletion(ctx context.Context, llm internal.Adapter, requester llmberjack.Requester) (*llmberjack.InnerResponse, error)
- func (p *AiStudio) CloseThread(threadId *llmberjack.ThreadId)
- func (p *AiStudio) CopyThread(threadId *llmberjack.ThreadId) *llmberjack.ThreadId
- func (p *AiStudio) Init(adapter internal.Adapter) error
- func (*AiStudio) RequestOptionsType() reflect.Type
- func (p *AiStudio) ResetThread(threadId *llmberjack.ThreadId)
- type Opt
- type RequestOptions
- type ThinkingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AiStudio ¶
type AiStudio struct {
// contains filtered or unexported fields
}
func (*AiStudio) ChatCompletion ¶
func (p *AiStudio) ChatCompletion(ctx context.Context, llm internal.Adapter, requester llmberjack.Requester) (*llmberjack.InnerResponse, error)
func (*AiStudio) CloseThread ¶
func (p *AiStudio) CloseThread(threadId *llmberjack.ThreadId)
func (*AiStudio) CopyThread ¶
func (p *AiStudio) CopyThread(threadId *llmberjack.ThreadId) *llmberjack.ThreadId
func (*AiStudio) RequestOptionsType ¶
func (*AiStudio) ResetThread ¶
func (p *AiStudio) ResetThread(threadId *llmberjack.ThreadId)
type Opt ¶
type Opt func(*AiStudio)
func WithApiKey ¶
func WithBackend ¶
WithBackend represents which Google GenAI backend to use (VertexAI or Gemini).
It only accepts values of `genai.GeminiAPI` or `genai.VertexAI`.
func WithDefaultModel ¶
func WithLocation ¶
WithLocation defines the Google Cloud Platform region to use to connect to VertexAI.
It is only taken into account when using the VertexAI backend.
func WithProject ¶
WithProject defines the Google Cloud Platform project to use to connect to VertexAI.
It is only taken into account when using the VertexAI backend.
type RequestOptions ¶
type RequestOptions struct {
GoogleSearch *bool
TopK *float64
Thinking *ThinkingConfig
}
func (RequestOptions) ProviderRequestOptions ¶
func (RequestOptions) ProviderRequestOptions()
type ThinkingConfig ¶
Click to show internal directories.
Click to hide internal directories.