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 ¶
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 ¶
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) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
func (UnimplementedAgentServiceServer) Send ¶
func (UnimplementedAgentServiceServer) Send(context.Context, *SendRequest) (*SendResponse, error)
Click to show internal directories.
Click to hide internal directories.