proto

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAgentServiceServer

func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)

RegisterAgentServiceServer registers the agent service with gRPC

Types

type AgentServiceClient

type AgentServiceClient interface {
	Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
	Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
}

AgentServiceClient is the client interface for the agent service

func NewAgentServiceClient

func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient

NewAgentServiceClient creates a new AgentServiceClient

type AgentServiceServer

type AgentServiceServer interface {
	Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
	Send(context.Context, *SendRequest) (*SendResponse, error)
}

AgentServiceServer is the server interface for the agent service

type ExecuteRequest

type ExecuteRequest struct {
	AgentName string
	Input     *Message
}

ExecuteRequest represents a request to execute an agent

type ExecuteResponse

type ExecuteResponse struct {
	Output *Message
}

ExecuteResponse represents the response from agent execution

type Message

type Message struct {
	Id        string
	Type      string
	Payload   string
	Timestamp string
	Metadata  map[string]interface{}
}

Message represents a message in the agent system

type SendRequest

type SendRequest struct {
	Target  string
	Message *Message
}

SendRequest represents a request to send a message to an agent

type SendResponse

type SendResponse struct {
	Success bool
}

SendResponse represents the response from sending a message

type UnimplementedAgentServiceServer

type UnimplementedAgentServiceServer struct{}

UnimplementedAgentServiceServer provides default implementations

func (UnimplementedAgentServiceServer) Execute

func (UnimplementedAgentServiceServer) Send

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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