fatalerror

package
v0.0.0-...-6be47e1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorType

type ErrorType string

ErrorType is returned to slicer inside DONE

const (
	// Extension errors
	AgentInitError   ErrorType = "Extension.InitError"   // agent exited after calling /extension/init/error
	AgentExitError   ErrorType = "Extension.ExitError"   // agent exited after calling /extension/exit/error
	AgentCrash       ErrorType = "Extension.Crash"       // agent crashed unexpectedly
	AgentLaunchError ErrorType = "Extension.LaunchError" // agent could not be launched

	// Runtime errors
	RuntimeExit                      ErrorType = "Runtime.ExitError"
	InvalidEntrypoint                ErrorType = "Runtime.InvalidEntrypoint"
	InvalidWorkingDir                ErrorType = "Runtime.InvalidWorkingDir"
	InvalidTaskConfig                ErrorType = "Runtime.InvalidTaskConfig"
	TruncatedResponse                ErrorType = "Runtime.TruncatedResponse"
	RuntimeInvalidResponseModeHeader ErrorType = "Runtime.InvalidResponseModeHeader"
	RuntimeUnknown                   ErrorType = "Runtime.Unknown"

	// Function errors
	FunctionOversizedResponse ErrorType = "Function.ResponseSizeTooLarge"
	FunctionUnknown           ErrorType = "Function.Unknown"

	// Sandbox errors
	SandboxFailure ErrorType = "Sandbox.Failure"
	SandboxTimeout ErrorType = "Sandbox.Timeout"
)

TODO: Find another name than "fatalerror" TODO: Rename all const so that they always begin with Agent/Runtime/Sandbox/Function TODO: Add filtering for extensions as well

func GetValidRuntimeOrFunctionErrorType

func GetValidRuntimeOrFunctionErrorType(errorType string) ErrorType

Jump to

Keyboard shortcuts

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