customllm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APITypeAnthropic        = "anthropic"
	APITypeOpenAI           = "openai"
	APITypeOpenAICompatible = "openai-compatible"
)
View Source
const IntegrationName = "customLlm"

Variables

This section is empty.

Functions

func NormalizeAPIType

func NormalizeAPIType(value string) (string, error)

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

func (c *Client) ListModels() ([]Model, error)

type Configuration

type Configuration struct {
	APIKey  string `json:"apiKey"`
	BaseURL string `json:"baseURL"`
	APIType string `json:"apiType"`
}

type CustomLLM

type CustomLLM struct{}

func (*CustomLLM) Actions

func (c *CustomLLM) Actions() []core.Action

func (*CustomLLM) Cleanup

func (*CustomLLM) Configuration

func (c *CustomLLM) Configuration() []configuration.Field

func (*CustomLLM) Description

func (c *CustomLLM) Description() string

func (*CustomLLM) HandleHook

func (c *CustomLLM) HandleHook(ctx core.IntegrationHookContext) error

func (*CustomLLM) HandleRequest

func (c *CustomLLM) HandleRequest(ctx core.HTTPRequestContext)

func (*CustomLLM) Hooks

func (c *CustomLLM) Hooks() []core.Hook

func (*CustomLLM) Icon

func (c *CustomLLM) Icon() string

func (*CustomLLM) Instructions

func (c *CustomLLM) Instructions() string

func (*CustomLLM) Label

func (c *CustomLLM) Label() string

func (*CustomLLM) ListResources

func (c *CustomLLM) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)

func (*CustomLLM) Name

func (c *CustomLLM) Name() string

func (*CustomLLM) ResolveSecrets

func (*CustomLLM) Sync

func (c *CustomLLM) Sync(ctx core.SyncContext) error

func (*CustomLLM) Triggers

func (c *CustomLLM) Triggers() []core.Trigger

type Model

type Model struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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