agents

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package agents is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Agents_ListAgentChats_FullMethodName        = "/Superplane.Agents.Agents/ListAgentChats"
	Agents_CreateAgentChat_FullMethodName       = "/Superplane.Agents.Agents/CreateAgentChat"
	Agents_DescribeAgentChat_FullMethodName     = "/Superplane.Agents.Agents/DescribeAgentChat"
	Agents_ListAgentChatMessages_FullMethodName = "/Superplane.Agents.Agents/ListAgentChatMessages"
	Agents_ResumeAgentChat_FullMethodName       = "/Superplane.Agents.Agents/ResumeAgentChat"
)

Variables

View Source
var Agents_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Superplane.Agents.Agents",
	HandlerType: (*AgentsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAgentChats",
			Handler:    _Agents_ListAgentChats_Handler,
		},
		{
			MethodName: "CreateAgentChat",
			Handler:    _Agents_CreateAgentChat_Handler,
		},
		{
			MethodName: "DescribeAgentChat",
			Handler:    _Agents_DescribeAgentChat_Handler,
		},
		{
			MethodName: "ListAgentChatMessages",
			Handler:    _Agents_ListAgentChatMessages_Handler,
		},
		{
			MethodName: "ResumeAgentChat",
			Handler:    _Agents_ResumeAgentChat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "agents.proto",
}

Agents_ServiceDesc is the grpc.ServiceDesc for Agents service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_agents_proto protoreflect.FileDescriptor

Functions

func RegisterAgentsHandler

func RegisterAgentsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAgentsHandler registers the http handlers for service Agents to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAgentsHandlerClient

func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentsClient) error

RegisterAgentsHandlerClient registers the http handlers for service Agents to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AgentsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AgentsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AgentsClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterAgentsHandlerFromEndpoint

func RegisterAgentsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAgentsHandlerFromEndpoint is same as RegisterAgentsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAgentsHandlerServer

func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AgentsServer) error

RegisterAgentsHandlerServer registers the http handlers for service Agents to "mux". UnaryRPC :call AgentsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentsHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterAgentsServer

func RegisterAgentsServer(s grpc.ServiceRegistrar, srv AgentsServer)

Types

type AgentChatInfo

type AgentChatInfo struct {
	Id             string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	InitialMessage string               `protobuf:"bytes,2,opt,name=initial_message,json=initialMessage,proto3" json:"initial_message,omitempty"`
	CreatedAt      *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentChatInfo) Descriptor deprecated

func (*AgentChatInfo) Descriptor() ([]byte, []int)

Deprecated: Use AgentChatInfo.ProtoReflect.Descriptor instead.

func (*AgentChatInfo) GetCreatedAt

func (x *AgentChatInfo) GetCreatedAt() *timestamp.Timestamp

func (*AgentChatInfo) GetId

func (x *AgentChatInfo) GetId() string

func (*AgentChatInfo) GetInitialMessage

func (x *AgentChatInfo) GetInitialMessage() string

func (*AgentChatInfo) ProtoMessage

func (*AgentChatInfo) ProtoMessage()

func (*AgentChatInfo) ProtoReflect

func (x *AgentChatInfo) ProtoReflect() protoreflect.Message

func (*AgentChatInfo) Reset

func (x *AgentChatInfo) Reset()

func (*AgentChatInfo) String

func (x *AgentChatInfo) String() string

type AgentChatMessage

type AgentChatMessage struct {
	Id         string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Role       string               `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	Content    string               `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	ToolCallId string               `protobuf:"bytes,4,opt,name=tool_call_id,json=toolCallId,proto3" json:"tool_call_id,omitempty"`
	ToolStatus string               `protobuf:"bytes,5,opt,name=tool_status,json=toolStatus,proto3" json:"tool_status,omitempty"`
	CreatedAt  *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentChatMessage) Descriptor deprecated

func (*AgentChatMessage) Descriptor() ([]byte, []int)

Deprecated: Use AgentChatMessage.ProtoReflect.Descriptor instead.

func (*AgentChatMessage) GetContent

func (x *AgentChatMessage) GetContent() string

func (*AgentChatMessage) GetCreatedAt

func (x *AgentChatMessage) GetCreatedAt() *timestamp.Timestamp

func (*AgentChatMessage) GetId

func (x *AgentChatMessage) GetId() string

func (*AgentChatMessage) GetRole

func (x *AgentChatMessage) GetRole() string

func (*AgentChatMessage) GetToolCallId

func (x *AgentChatMessage) GetToolCallId() string

func (*AgentChatMessage) GetToolStatus

func (x *AgentChatMessage) GetToolStatus() string

func (*AgentChatMessage) ProtoMessage

func (*AgentChatMessage) ProtoMessage()

func (*AgentChatMessage) ProtoReflect

func (x *AgentChatMessage) ProtoReflect() protoreflect.Message

func (*AgentChatMessage) Reset

func (x *AgentChatMessage) Reset()

func (*AgentChatMessage) String

func (x *AgentChatMessage) String() string

type AgentsClient

type AgentsClient interface {
	ListAgentChats(ctx context.Context, in *ListAgentChatsRequest, opts ...grpc.CallOption) (*ListAgentChatsResponse, error)
	CreateAgentChat(ctx context.Context, in *CreateAgentChatRequest, opts ...grpc.CallOption) (*CreateAgentChatResponse, error)
	DescribeAgentChat(ctx context.Context, in *DescribeAgentChatRequest, opts ...grpc.CallOption) (*DescribeAgentChatResponse, error)
	ListAgentChatMessages(ctx context.Context, in *ListAgentChatMessagesRequest, opts ...grpc.CallOption) (*ListAgentChatMessagesResponse, error)
	ResumeAgentChat(ctx context.Context, in *ResumeAgentChatRequest, opts ...grpc.CallOption) (*ResumeAgentChatResponse, error)
}

AgentsClient is the client API for Agents service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAgentsClient

func NewAgentsClient(cc grpc.ClientConnInterface) AgentsClient

type AgentsServer

AgentsServer is the server API for Agents service. All implementations should embed UnimplementedAgentsServer for forward compatibility.

type CreateAgentChatRequest

type CreateAgentChatRequest struct {
	CanvasId string `protobuf:"bytes,1,opt,name=canvas_id,json=canvasId,proto3" json:"canvas_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAgentChatRequest) Descriptor deprecated

func (*CreateAgentChatRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAgentChatRequest.ProtoReflect.Descriptor instead.

func (*CreateAgentChatRequest) GetCanvasId

func (x *CreateAgentChatRequest) GetCanvasId() string

func (*CreateAgentChatRequest) ProtoMessage

func (*CreateAgentChatRequest) ProtoMessage()

func (*CreateAgentChatRequest) ProtoReflect

func (x *CreateAgentChatRequest) ProtoReflect() protoreflect.Message

func (*CreateAgentChatRequest) Reset

func (x *CreateAgentChatRequest) Reset()

func (*CreateAgentChatRequest) String

func (x *CreateAgentChatRequest) String() string

type CreateAgentChatResponse

type CreateAgentChatResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Url   string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAgentChatResponse) Descriptor deprecated

func (*CreateAgentChatResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAgentChatResponse.ProtoReflect.Descriptor instead.

func (*CreateAgentChatResponse) GetToken

func (x *CreateAgentChatResponse) GetToken() string

func (*CreateAgentChatResponse) GetUrl

func (x *CreateAgentChatResponse) GetUrl() string

func (*CreateAgentChatResponse) ProtoMessage

func (*CreateAgentChatResponse) ProtoMessage()

func (*CreateAgentChatResponse) ProtoReflect

func (x *CreateAgentChatResponse) ProtoReflect() protoreflect.Message

func (*CreateAgentChatResponse) Reset

func (x *CreateAgentChatResponse) Reset()

func (*CreateAgentChatResponse) String

func (x *CreateAgentChatResponse) String() string

type DescribeAgentChatRequest

type DescribeAgentChatRequest struct {
	CanvasId string `protobuf:"bytes,1,opt,name=canvas_id,json=canvasId,proto3" json:"canvas_id,omitempty"`
	ChatId   string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeAgentChatRequest) Descriptor deprecated

func (*DescribeAgentChatRequest) Descriptor() ([]byte, []int)

Deprecated: Use DescribeAgentChatRequest.ProtoReflect.Descriptor instead.

func (*DescribeAgentChatRequest) GetCanvasId

func (x *DescribeAgentChatRequest) GetCanvasId() string

func (*DescribeAgentChatRequest) GetChatId

func (x *DescribeAgentChatRequest) GetChatId() string

func (*DescribeAgentChatRequest) ProtoMessage

func (*DescribeAgentChatRequest) ProtoMessage()

func (*DescribeAgentChatRequest) ProtoReflect

func (x *DescribeAgentChatRequest) ProtoReflect() protoreflect.Message

func (*DescribeAgentChatRequest) Reset

func (x *DescribeAgentChatRequest) Reset()

func (*DescribeAgentChatRequest) String

func (x *DescribeAgentChatRequest) String() string

type DescribeAgentChatResponse

type DescribeAgentChatResponse struct {
	Chat *AgentChatInfo `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeAgentChatResponse) Descriptor deprecated

func (*DescribeAgentChatResponse) Descriptor() ([]byte, []int)

Deprecated: Use DescribeAgentChatResponse.ProtoReflect.Descriptor instead.

func (*DescribeAgentChatResponse) GetChat

func (*DescribeAgentChatResponse) ProtoMessage

func (*DescribeAgentChatResponse) ProtoMessage()

func (*DescribeAgentChatResponse) ProtoReflect

func (*DescribeAgentChatResponse) Reset

func (x *DescribeAgentChatResponse) Reset()

func (*DescribeAgentChatResponse) String

func (x *DescribeAgentChatResponse) String() string

type ListAgentChatMessagesRequest

type ListAgentChatMessagesRequest struct {
	CanvasId string `protobuf:"bytes,1,opt,name=canvas_id,json=canvasId,proto3" json:"canvas_id,omitempty"`
	ChatId   string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentChatMessagesRequest) Descriptor deprecated

func (*ListAgentChatMessagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAgentChatMessagesRequest.ProtoReflect.Descriptor instead.

func (*ListAgentChatMessagesRequest) GetCanvasId

func (x *ListAgentChatMessagesRequest) GetCanvasId() string

func (*ListAgentChatMessagesRequest) GetChatId

func (x *ListAgentChatMessagesRequest) GetChatId() string

func (*ListAgentChatMessagesRequest) ProtoMessage

func (*ListAgentChatMessagesRequest) ProtoMessage()

func (*ListAgentChatMessagesRequest) ProtoReflect

func (*ListAgentChatMessagesRequest) Reset

func (x *ListAgentChatMessagesRequest) Reset()

func (*ListAgentChatMessagesRequest) String

type ListAgentChatMessagesResponse

type ListAgentChatMessagesResponse struct {
	Messages []*AgentChatMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentChatMessagesResponse) Descriptor deprecated

func (*ListAgentChatMessagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAgentChatMessagesResponse.ProtoReflect.Descriptor instead.

func (*ListAgentChatMessagesResponse) GetMessages

func (x *ListAgentChatMessagesResponse) GetMessages() []*AgentChatMessage

func (*ListAgentChatMessagesResponse) ProtoMessage

func (*ListAgentChatMessagesResponse) ProtoMessage()

func (*ListAgentChatMessagesResponse) ProtoReflect

func (*ListAgentChatMessagesResponse) Reset

func (x *ListAgentChatMessagesResponse) Reset()

func (*ListAgentChatMessagesResponse) String

type ListAgentChatsRequest

type ListAgentChatsRequest struct {
	CanvasId string `protobuf:"bytes,1,opt,name=canvas_id,json=canvasId,proto3" json:"canvas_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentChatsRequest) Descriptor deprecated

func (*ListAgentChatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAgentChatsRequest.ProtoReflect.Descriptor instead.

func (*ListAgentChatsRequest) GetCanvasId

func (x *ListAgentChatsRequest) GetCanvasId() string

func (*ListAgentChatsRequest) ProtoMessage

func (*ListAgentChatsRequest) ProtoMessage()

func (*ListAgentChatsRequest) ProtoReflect

func (x *ListAgentChatsRequest) ProtoReflect() protoreflect.Message

func (*ListAgentChatsRequest) Reset

func (x *ListAgentChatsRequest) Reset()

func (*ListAgentChatsRequest) String

func (x *ListAgentChatsRequest) String() string

type ListAgentChatsResponse

type ListAgentChatsResponse struct {
	Chats []*AgentChatInfo `protobuf:"bytes,1,rep,name=chats,proto3" json:"chats,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentChatsResponse) Descriptor deprecated

func (*ListAgentChatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAgentChatsResponse.ProtoReflect.Descriptor instead.

func (*ListAgentChatsResponse) GetChats

func (x *ListAgentChatsResponse) GetChats() []*AgentChatInfo

func (*ListAgentChatsResponse) ProtoMessage

func (*ListAgentChatsResponse) ProtoMessage()

func (*ListAgentChatsResponse) ProtoReflect

func (x *ListAgentChatsResponse) ProtoReflect() protoreflect.Message

func (*ListAgentChatsResponse) Reset

func (x *ListAgentChatsResponse) Reset()

func (*ListAgentChatsResponse) String

func (x *ListAgentChatsResponse) String() string

type ResumeAgentChatRequest

type ResumeAgentChatRequest struct {
	CanvasId string `protobuf:"bytes,1,opt,name=canvas_id,json=canvasId,proto3" json:"canvas_id,omitempty"`
	ChatId   string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ResumeAgentChatRequest) Descriptor deprecated

func (*ResumeAgentChatRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResumeAgentChatRequest.ProtoReflect.Descriptor instead.

func (*ResumeAgentChatRequest) GetCanvasId

func (x *ResumeAgentChatRequest) GetCanvasId() string

func (*ResumeAgentChatRequest) GetChatId

func (x *ResumeAgentChatRequest) GetChatId() string

func (*ResumeAgentChatRequest) ProtoMessage

func (*ResumeAgentChatRequest) ProtoMessage()

func (*ResumeAgentChatRequest) ProtoReflect

func (x *ResumeAgentChatRequest) ProtoReflect() protoreflect.Message

func (*ResumeAgentChatRequest) Reset

func (x *ResumeAgentChatRequest) Reset()

func (*ResumeAgentChatRequest) String

func (x *ResumeAgentChatRequest) String() string

type ResumeAgentChatResponse

type ResumeAgentChatResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Url   string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*ResumeAgentChatResponse) Descriptor deprecated

func (*ResumeAgentChatResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResumeAgentChatResponse.ProtoReflect.Descriptor instead.

func (*ResumeAgentChatResponse) GetToken

func (x *ResumeAgentChatResponse) GetToken() string

func (*ResumeAgentChatResponse) GetUrl

func (x *ResumeAgentChatResponse) GetUrl() string

func (*ResumeAgentChatResponse) ProtoMessage

func (*ResumeAgentChatResponse) ProtoMessage()

func (*ResumeAgentChatResponse) ProtoReflect

func (x *ResumeAgentChatResponse) ProtoReflect() protoreflect.Message

func (*ResumeAgentChatResponse) Reset

func (x *ResumeAgentChatResponse) Reset()

func (*ResumeAgentChatResponse) String

func (x *ResumeAgentChatResponse) String() string

type UnimplementedAgentsServer

type UnimplementedAgentsServer struct{}

UnimplementedAgentsServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAgentsServer) CreateAgentChat

func (UnimplementedAgentsServer) ListAgentChats

func (UnimplementedAgentsServer) ResumeAgentChat

type UnsafeAgentsServer

type UnsafeAgentsServer interface {
	// contains filtered or unexported methods
}

UnsafeAgentsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentsServer will result in compilation errors.

Jump to

Keyboard shortcuts

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