exec

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "llm/exec"

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	ConversationID       string `json:"conversationId,omitempty"`
	ParentConversationID string `json:"parentConversationId,omitempty"`
	MessageID            string `json:"messageId,omitempty"`

	AgentID   string                 `json:"agentId"`
	Objective string                 `json:"objective"`
	Context   map[string]interface{} `json:"context,omitempty"`
}

Input defines the run_agent request payload.

type Output

type Output struct {
	Answer string `json:"answer"`
}

Output defines the run_agent response payload.

type Service

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

Service exposes an agent runner facade as a tool service. Deprecated: prefer llm/agents:run (and llm/agents:list) for unified internal/external agent execution and directory. This service remains for backward compatibility and may be removed in a future release.

func New

func New(agent *agentsvc.Service) *Service

New creates a Service bound to the agent runtime.

func (*Service) Method

func (s *Service) Method(name string) (svc.Executable, error)

Method resolves a method by name.

func (*Service) Methods

func (s *Service) Methods() svc.Signatures

Methods returns the available run methods.

func (*Service) Name

func (s *Service) Name() string

Name returns the service name.

func (*Service) ToolTimeout added in v0.2.10

func (s *Service) ToolTimeout() time.Duration

ToolTimeout suggests a larger timeout for llm/exec service calls which may involve long-running agent turns.

Jump to

Keyboard shortcuts

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