Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OmniLLMAdapter ¶
type OmniLLMAdapter struct {
// contains filtered or unexported fields
}
OmniLLMAdapter adapts OmniLLM ChatClient to ADK's LLM interface
func NewOmniLLMAdapter ¶
func NewOmniLLMAdapter(providerName, apiKey, modelName string) (*OmniLLMAdapter, error)
NewOmniLLMAdapter creates a new OmniLLM adapter
func NewOmniLLMAdapterWithConfig ¶
func NewOmniLLMAdapterWithConfig(cfg OmniLLMAdapterConfig) (*OmniLLMAdapter, error)
NewOmniLLMAdapterWithConfig creates a new OmniLLM adapter with full configuration
func (*OmniLLMAdapter) GenerateContent ¶
func (m *OmniLLMAdapter) GenerateContent(ctx context.Context, req *model.LLMRequest, stream bool) iter.Seq2[*model.LLMResponse, error]
GenerateContent implements the LLM interface
type OmniLLMAdapterConfig ¶
type OmniLLMAdapterConfig struct {
ProviderName string
APIKey string
ModelName string
Timeout time.Duration // HTTP timeout for API calls (0 = provider default)
ObservabilityHook omnillm.ObservabilityHook
}
OmniLLMAdapterConfig holds configuration for creating a OmniLLM adapter
Click to show internal directories.
Click to hide internal directories.