hostedagent

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (adkagent.Agent, error)

func NewAIStudioModel

func NewAIStudioModel(ctx context.Context, apiKey, modelName string) (model.LLM, error)

Types

type Config

type Config struct {
	Name              string
	Description       string
	Instruction       string
	GlobalInstruction string
	Model             model.LLM
}

type OpenAIModel

type OpenAIModel struct {
	// contains filtered or unexported fields
}

func NewOpenAIModel

func NewOpenAIModel(apiKey, modelName string) (*OpenAIModel, error)

func (*OpenAIModel) GenerateContent

func (m *OpenAIModel) GenerateContent(ctx context.Context, req *model.LLMRequest, _ bool) iter.Seq2[*model.LLMResponse, error]

func (*OpenAIModel) Name

func (m *OpenAIModel) Name() string

Jump to

Keyboard shortcuts

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