Documentation
¶
Index ¶
- Constants
- func NormalizeAPIType(value string) (string, error)
- type Client
- type Configuration
- type CustomLLM
- func (c *CustomLLM) Actions() []core.Action
- func (c *CustomLLM) Cleanup(ctx core.IntegrationCleanupContext) error
- func (c *CustomLLM) Configuration() []configuration.Field
- func (c *CustomLLM) Description() string
- func (c *CustomLLM) HandleHook(ctx core.IntegrationHookContext) error
- func (c *CustomLLM) HandleRequest(ctx core.HTTPRequestContext)
- func (c *CustomLLM) Hooks() []core.Hook
- func (c *CustomLLM) Icon() string
- func (c *CustomLLM) Instructions() string
- func (c *CustomLLM) Label() string
- func (c *CustomLLM) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (c *CustomLLM) Name() string
- func (c *CustomLLM) ResolveSecrets(ctx core.IntegrationSecretContext) (core.IntegrationSecrets, error)
- func (c *CustomLLM) Sync(ctx core.SyncContext) error
- func (c *CustomLLM) Triggers() []core.Trigger
- type Model
Constants ¶
View Source
const ( APITypeAnthropic = "anthropic" APITypeOpenAI = "openai" APITypeOpenAICompatible = "openai-compatible" )
View Source
const IntegrationName = "customLlm"
Variables ¶
This section is empty.
Functions ¶
func NormalizeAPIType ¶
Types ¶
type Client ¶
type Client struct {
APIKey string
BaseURL string
APIType string
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpClient core.HTTPContext, ctx core.IntegrationContext) (*Client, error)
func (*Client) ListModels ¶
type Configuration ¶
type CustomLLM ¶
type CustomLLM struct{}
func (*CustomLLM) Configuration ¶
func (c *CustomLLM) Configuration() []configuration.Field
func (*CustomLLM) Description ¶
func (*CustomLLM) HandleHook ¶
func (c *CustomLLM) HandleHook(ctx core.IntegrationHookContext) error
func (*CustomLLM) HandleRequest ¶
func (c *CustomLLM) HandleRequest(ctx core.HTTPRequestContext)
func (*CustomLLM) Instructions ¶
func (*CustomLLM) ListResources ¶
func (c *CustomLLM) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
func (*CustomLLM) ResolveSecrets ¶
func (c *CustomLLM) ResolveSecrets(ctx core.IntegrationSecretContext) (core.IntegrationSecrets, error)
Click to show internal directories.
Click to hide internal directories.