evalmatlabcode

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(configFactory ConfigFactory, usecase Usecase, matlabManager entities.MATLABManager) basetool.HandlerWithUnstructuredContentOutput[Args]

Types

type Args

type Args struct {
	SessionID   int    `json:"session_id"   jsonschema:"The ID of the MATLAB session in which to evaluate the code."`
	ProjectPath string `` /* 216-byte string literal not displayed */
	Code        string `json:"code"         jsonschema:"The MATLAB code to evaluate."`
}

type ConfigFactory added in v0.5.0

type ConfigFactory interface {
	Config() (config.Config, messages.Error)
}

type Tool

func New

func New(
	loggerFactory basetool.LoggerFactory,
	configFactory ConfigFactory,
	usecase Usecase,
	matlabManager entities.MATLABManager,
) *Tool

type Usecase

type Usecase interface {
	Execute(ctx context.Context, sessionLogger entities.Logger, client entities.MATLABSessionClient, request evalmatlabcode.Args) (entities.EvalResponse, error)
}

Jump to

Keyboard shortcuts

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