runtime

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Roots                         []mcp.Root
	Profiles                      []string
	MaxConcurrency                int
	CallbackHandler               mcp.CallbackHandler
	TokenStorage                  mcp.TokenStorage
	OAuthRedirectURL              string
	DSN                           string
	Store                         *session.Store
	TokenExchangeEndpoint         string
	TokenExchangeClientID         string
	TokenExchangeClientSecret     string
	OAuthClientIDMetadataDocument string
	AuditLogCollector             auditlogs.Collector
	DefaultModel                  string
	ConfigDir                     string
	LoopbackURL                   string
	BlockLoopback                 bool
	BlockPrivateIP                bool
	BlockLinkLocal                bool
	AllowedHosts                  []string
}

func (Options) Merge added in v0.0.79

func (o Options) Merge(other Options) (result Options)

type Runtime

type Runtime struct {
	*tools.Service
	// contains filtered or unexported fields
}

func NewRuntime

func NewRuntime(ctx context.Context, cfg llm.Config, opts ...Options) (*Runtime, error)

func (*Runtime) CallFromCLI

func (r *Runtime) CallFromCLI(ctx context.Context, serverRef string, args ...string) (*mcp.CallToolResult, error)

func (*Runtime) WithTempSession

func (r *Runtime) WithTempSession(ctx context.Context, config *types.Config) context.Context

Jump to

Keyboard shortcuts

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