Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUTCPServiceServer(s grpc.ServiceRegistrar, srv UTCPServiceServer)
- type Empty
- type Manual
- type Tool
- type ToolCallRequest
- func (*ToolCallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ToolCallRequest) GetArgsJson() string
- func (x *ToolCallRequest) GetTool() string
- func (*ToolCallRequest) ProtoMessage()
- func (x *ToolCallRequest) ProtoReflect() protoreflect.Message
- func (x *ToolCallRequest) Reset()
- func (x *ToolCallRequest) String() string
- type ToolCallResponse
- type UTCPServiceClient
- type UTCPServiceServer
- type UTCPService_CallToolStreamClient
- type UTCPService_CallToolStreamServer
- type UnimplementedUTCPServiceServer
- func (UnimplementedUTCPServiceServer) CallTool(context.Context, *ToolCallRequest) (*ToolCallResponse, error)
- func (UnimplementedUTCPServiceServer) CallToolStream(*ToolCallRequest, grpc.ServerStreamingServer[ToolCallResponse]) error
- func (UnimplementedUTCPServiceServer) GetManual(context.Context, *Empty) (*Manual, error)
- type UnsafeUTCPServiceServer
Constants ¶
const ( UTCPService_GetManual_FullMethodName = "/grpcpb.UTCPService/GetManual" UTCPService_CallTool_FullMethodName = "/grpcpb.UTCPService/CallTool" UTCPService_CallToolStream_FullMethodName = "/grpcpb.UTCPService/CallToolStream" )
Variables ¶
var File_src_grpcpb_utcp_proto protoreflect.FileDescriptor
var UTCPService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpcpb.UTCPService", HandlerType: (*UTCPServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetManual", Handler: _UTCPService_GetManual_Handler, }, { MethodName: "CallTool", Handler: _UTCPService_CallTool_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "CallToolStream", Handler: _UTCPService_CallToolStream_Handler, ServerStreams: true, }, }, Metadata: "src/grpcpb/utcp.proto", }
UTCPService_ServiceDesc is the grpc.ServiceDesc for UTCPService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUTCPServiceServer ¶
func RegisterUTCPServiceServer(s grpc.ServiceRegistrar, srv UTCPServiceServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Manual ¶
type Manual struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Tools []*Tool `protobuf:"bytes,2,rep,name=tools,proto3" json:"tools,omitempty"`
// contains filtered or unexported fields
}
func (*Manual) Descriptor
deprecated
func (*Manual) GetVersion ¶
func (*Manual) ProtoMessage ¶
func (*Manual) ProtoMessage()
func (*Manual) ProtoReflect ¶
func (x *Manual) ProtoReflect() protoreflect.Message
type Tool ¶
type Tool struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
func (*Tool) Descriptor
deprecated
func (*Tool) GetDescription ¶
func (*Tool) ProtoMessage ¶
func (*Tool) ProtoMessage()
func (*Tool) ProtoReflect ¶
func (x *Tool) ProtoReflect() protoreflect.Message
type ToolCallRequest ¶
type ToolCallRequest struct {
Tool string `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
ArgsJson string `protobuf:"bytes,2,opt,name=args_json,json=argsJson,proto3" json:"args_json,omitempty"`
// contains filtered or unexported fields
}
func (*ToolCallRequest) Descriptor
deprecated
func (*ToolCallRequest) Descriptor() ([]byte, []int)
Deprecated: Use ToolCallRequest.ProtoReflect.Descriptor instead.
func (*ToolCallRequest) GetArgsJson ¶
func (x *ToolCallRequest) GetArgsJson() string
func (*ToolCallRequest) GetTool ¶
func (x *ToolCallRequest) GetTool() string
func (*ToolCallRequest) ProtoMessage ¶
func (*ToolCallRequest) ProtoMessage()
func (*ToolCallRequest) ProtoReflect ¶
func (x *ToolCallRequest) ProtoReflect() protoreflect.Message
func (*ToolCallRequest) Reset ¶
func (x *ToolCallRequest) Reset()
func (*ToolCallRequest) String ¶
func (x *ToolCallRequest) String() string
type ToolCallResponse ¶
type ToolCallResponse struct {
ResultJson string `protobuf:"bytes,1,opt,name=result_json,json=resultJson,proto3" json:"result_json,omitempty"`
// contains filtered or unexported fields
}
func (*ToolCallResponse) Descriptor
deprecated
func (*ToolCallResponse) Descriptor() ([]byte, []int)
Deprecated: Use ToolCallResponse.ProtoReflect.Descriptor instead.
func (*ToolCallResponse) GetResultJson ¶
func (x *ToolCallResponse) GetResultJson() string
func (*ToolCallResponse) ProtoMessage ¶
func (*ToolCallResponse) ProtoMessage()
func (*ToolCallResponse) ProtoReflect ¶
func (x *ToolCallResponse) ProtoReflect() protoreflect.Message
func (*ToolCallResponse) Reset ¶
func (x *ToolCallResponse) Reset()
func (*ToolCallResponse) String ¶
func (x *ToolCallResponse) String() string
type UTCPServiceClient ¶
type UTCPServiceClient interface {
GetManual(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Manual, error)
CallTool(ctx context.Context, in *ToolCallRequest, opts ...grpc.CallOption) (*ToolCallResponse, error)
CallToolStream(ctx context.Context, in *ToolCallRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ToolCallResponse], error)
}
UTCPServiceClient is the client API for UTCPService 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 NewUTCPServiceClient ¶
func NewUTCPServiceClient(cc grpc.ClientConnInterface) UTCPServiceClient
type UTCPServiceServer ¶
type UTCPServiceServer interface {
GetManual(context.Context, *Empty) (*Manual, error)
CallTool(context.Context, *ToolCallRequest) (*ToolCallResponse, error)
CallToolStream(*ToolCallRequest, grpc.ServerStreamingServer[ToolCallResponse]) error
// contains filtered or unexported methods
}
UTCPServiceServer is the server API for UTCPService service. All implementations must embed UnimplementedUTCPServiceServer for forward compatibility.
type UTCPService_CallToolStreamClient ¶ added in v1.6.8
type UTCPService_CallToolStreamClient = grpc.ServerStreamingClient[ToolCallResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UTCPService_CallToolStreamServer ¶ added in v1.6.8
type UTCPService_CallToolStreamServer = grpc.ServerStreamingServer[ToolCallResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedUTCPServiceServer ¶
type UnimplementedUTCPServiceServer struct{}
UnimplementedUTCPServiceServer must 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 (UnimplementedUTCPServiceServer) CallTool ¶
func (UnimplementedUTCPServiceServer) CallTool(context.Context, *ToolCallRequest) (*ToolCallResponse, error)
func (UnimplementedUTCPServiceServer) CallToolStream ¶ added in v1.6.8
func (UnimplementedUTCPServiceServer) CallToolStream(*ToolCallRequest, grpc.ServerStreamingServer[ToolCallResponse]) error
type UnsafeUTCPServiceServer ¶
type UnsafeUTCPServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUTCPServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UTCPServiceServer will result in compilation errors.