run

package
v0.0.0-...-e06565c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPlugin

func RunPlugin(payload RunPluginPayload)

Types

type GenericResponse

type GenericResponse struct {
	InvokeID string              `json:"invoke_id"`
	Type     GenericResponseType `json:"type"`

	Response map[string]any `json:"response"`
}

type GenericResponseType

type GenericResponseType = string
const (
	GENERIC_RESPONSE_TYPE_INFO              GenericResponseType = "info"
	GENERIC_RESPONSE_TYPE_PLUGIN_READY      GenericResponseType = "plugin_ready"
	GENERIC_RESPONSE_TYPE_ERROR             GenericResponseType = "error"
	GENERIC_RESPONSE_TYPE_PLUGIN_RESPONSE   GenericResponseType = "plugin_response"
	GENERIC_RESPONSE_TYPE_PLUGIN_INVOKE_END GenericResponseType = "plugin_invoke_end"
)

type InvokePluginPayload

type InvokePluginPayload struct {
	InvokeID string                          `json:"invoke_id"`
	Type     access_types.PluginAccessType   `json:"type"`
	Action   access_types.PluginAccessAction `json:"action"`

	Request map[string]any `json:"request"`
}

type RunMode

type RunMode = string
const (
	RUN_MODE_STDIO RunMode = "stdio"
	RUN_MODE_TCP   RunMode = "tcp"
)

type RunPluginPayload

type RunPluginPayload struct {
	PluginPath string
	RunMode    RunMode
	EnableLogs bool

	TcpServerPort int
	TcpServerHost string

	ResponseFormat string
}

Jump to

Keyboard shortcuts

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