toolspb

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: AGPL-3.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ToolsPlugin_ListTools_FullMethodName = "/omniview.sdk.tools.v2.ToolsPlugin/ListTools"
	ToolsPlugin_CallTool_FullMethodName  = "/omniview.sdk.tools.v2.ToolsPlugin/CallTool"
)

Variables

View Source
var (
	ToolScope_name = map[int32]string{
		0: "TOOL_SCOPE_UNSPECIFIED",
		1: "TOOL_SCOPE_PLUGIN",
		2: "TOOL_SCOPE_CONNECTION",
	}
	ToolScope_value = map[string]int32{
		"TOOL_SCOPE_UNSPECIFIED": 0,
		"TOOL_SCOPE_PLUGIN":      1,
		"TOOL_SCOPE_CONNECTION":  2,
	}
)

Enum value maps for ToolScope.

View Source
var File_proto_v1_tools_tools_proto protoreflect.FileDescriptor
View Source
var ToolsPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "omniview.sdk.tools.v2.ToolsPlugin",
	HandlerType: (*ToolsPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTools",
			Handler:    _ToolsPlugin_ListTools_Handler,
		},
		{
			MethodName: "CallTool",
			Handler:    _ToolsPlugin_CallTool_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/v1/tools/tools.proto",
}

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

Functions

func RegisterToolsPluginServer

func RegisterToolsPluginServer(s grpc.ServiceRegistrar, srv ToolsPluginServer)

Types

type CallToolRequest

type CallToolRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Tool arguments serialized as a JSON object.
	Arguments       []byte          `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
	Route           *v2.AccessRoute `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"`
	ContractVersion uint32          `protobuf:"varint,4,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	DelegationToken []byte          `protobuf:"bytes,5,opt,name=delegation_token,json=delegationToken,proto3" json:"delegation_token,omitempty"`
	// contains filtered or unexported fields
}

func (*CallToolRequest) Descriptor deprecated

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

Deprecated: Use CallToolRequest.ProtoReflect.Descriptor instead.

func (*CallToolRequest) GetArguments

func (x *CallToolRequest) GetArguments() []byte

func (*CallToolRequest) GetContractVersion added in v0.9.0

func (x *CallToolRequest) GetContractVersion() uint32

func (*CallToolRequest) GetDelegationToken added in v0.13.0

func (x *CallToolRequest) GetDelegationToken() []byte

func (*CallToolRequest) GetName

func (x *CallToolRequest) GetName() string

func (*CallToolRequest) GetRoute added in v0.9.0

func (x *CallToolRequest) GetRoute() *v2.AccessRoute

func (*CallToolRequest) ProtoMessage

func (*CallToolRequest) ProtoMessage()

func (*CallToolRequest) ProtoReflect

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

func (*CallToolRequest) Reset

func (x *CallToolRequest) Reset()

func (*CallToolRequest) String

func (x *CallToolRequest) String() string

type CallToolResponse

type CallToolResponse struct {
	Content []*ToolContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
	// Optional structured result serialized as JSON.
	StructuredContent []byte `protobuf:"bytes,2,opt,name=structured_content,json=structuredContent,proto3" json:"structured_content,omitempty"`
	IsError           bool   `protobuf:"varint,3,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"`
	ErrorCode         string `protobuf:"bytes,4,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// contains filtered or unexported fields
}

func (*CallToolResponse) Descriptor deprecated

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

Deprecated: Use CallToolResponse.ProtoReflect.Descriptor instead.

func (*CallToolResponse) GetContent

func (x *CallToolResponse) GetContent() []*ToolContent

func (*CallToolResponse) GetErrorCode added in v0.9.0

func (x *CallToolResponse) GetErrorCode() string

func (*CallToolResponse) GetIsError

func (x *CallToolResponse) GetIsError() bool

func (*CallToolResponse) GetStructuredContent

func (x *CallToolResponse) GetStructuredContent() []byte

func (*CallToolResponse) ProtoMessage

func (*CallToolResponse) ProtoMessage()

func (*CallToolResponse) ProtoReflect

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

func (*CallToolResponse) Reset

func (x *CallToolResponse) Reset()

func (*CallToolResponse) String

func (x *CallToolResponse) String() string

type ListToolsRequest added in v0.9.0

type ListToolsRequest struct {
	ContractVersion uint32 `protobuf:"varint,1,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	// contains filtered or unexported fields
}

func (*ListToolsRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use ListToolsRequest.ProtoReflect.Descriptor instead.

func (*ListToolsRequest) GetContractVersion added in v0.9.0

func (x *ListToolsRequest) GetContractVersion() uint32

func (*ListToolsRequest) ProtoMessage added in v0.9.0

func (*ListToolsRequest) ProtoMessage()

func (*ListToolsRequest) ProtoReflect added in v0.9.0

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

func (*ListToolsRequest) Reset added in v0.9.0

func (x *ListToolsRequest) Reset()

func (*ListToolsRequest) String added in v0.9.0

func (x *ListToolsRequest) String() string

type ListToolsResponse

type ListToolsResponse struct {
	Tools           []*ToolDescriptor `protobuf:"bytes,1,rep,name=tools,proto3" json:"tools,omitempty"`
	ContractVersion uint32            `protobuf:"varint,2,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	// contains filtered or unexported fields
}

func (*ListToolsResponse) Descriptor deprecated

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

Deprecated: Use ListToolsResponse.ProtoReflect.Descriptor instead.

func (*ListToolsResponse) GetContractVersion added in v0.9.0

func (x *ListToolsResponse) GetContractVersion() uint32

func (*ListToolsResponse) GetTools

func (x *ListToolsResponse) GetTools() []*ToolDescriptor

func (*ListToolsResponse) ProtoMessage

func (*ListToolsResponse) ProtoMessage()

func (*ListToolsResponse) ProtoReflect

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

func (*ListToolsResponse) Reset

func (x *ListToolsResponse) Reset()

func (*ListToolsResponse) String

func (x *ListToolsResponse) String() string

type ToolAnnotations

type ToolAnnotations struct {
	ReadOnly    *bool `protobuf:"varint,1,opt,name=read_only,json=readOnly,proto3,oneof" json:"read_only,omitempty"`
	Destructive *bool `protobuf:"varint,2,opt,name=destructive,proto3,oneof" json:"destructive,omitempty"`
	Idempotent  *bool `protobuf:"varint,3,opt,name=idempotent,proto3,oneof" json:"idempotent,omitempty"`
	OpenWorld   *bool `protobuf:"varint,4,opt,name=open_world,json=openWorld,proto3,oneof" json:"open_world,omitempty"`
	// contains filtered or unexported fields
}

ToolAnnotations mirror the MCP tool annotation hints.

func (*ToolAnnotations) Descriptor deprecated

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

Deprecated: Use ToolAnnotations.ProtoReflect.Descriptor instead.

func (*ToolAnnotations) GetDestructive

func (x *ToolAnnotations) GetDestructive() bool

func (*ToolAnnotations) GetIdempotent

func (x *ToolAnnotations) GetIdempotent() bool

func (*ToolAnnotations) GetOpenWorld

func (x *ToolAnnotations) GetOpenWorld() bool

func (*ToolAnnotations) GetReadOnly

func (x *ToolAnnotations) GetReadOnly() bool

func (*ToolAnnotations) ProtoMessage

func (*ToolAnnotations) ProtoMessage()

func (*ToolAnnotations) ProtoReflect

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

func (*ToolAnnotations) Reset

func (x *ToolAnnotations) Reset()

func (*ToolAnnotations) String

func (x *ToolAnnotations) String() string

type ToolContent

type ToolContent struct {

	// Types that are valid to be assigned to Kind:
	//
	//	*ToolContent_Text
	Kind isToolContent_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*ToolContent) Descriptor deprecated

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

Deprecated: Use ToolContent.ProtoReflect.Descriptor instead.

func (*ToolContent) GetKind

func (x *ToolContent) GetKind() isToolContent_Kind

func (*ToolContent) GetText

func (x *ToolContent) GetText() string

func (*ToolContent) ProtoMessage

func (*ToolContent) ProtoMessage()

func (*ToolContent) ProtoReflect

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

func (*ToolContent) Reset

func (x *ToolContent) Reset()

func (*ToolContent) String

func (x *ToolContent) String() string

type ToolContent_Text

type ToolContent_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type ToolDescriptor

type ToolDescriptor struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// JSON Schema (object) for the tool arguments, serialized as JSON.
	InputSchema []byte `protobuf:"bytes,4,opt,name=input_schema,json=inputSchema,proto3" json:"input_schema,omitempty"`
	// Optional JSON Schema for the structured result, serialized as JSON.
	OutputSchema    []byte           `protobuf:"bytes,5,opt,name=output_schema,json=outputSchema,proto3" json:"output_schema,omitempty"`
	Scope           ToolScope        `protobuf:"varint,6,opt,name=scope,proto3,enum=omniview.sdk.tools.v2.ToolScope" json:"scope,omitempty"`
	Annotations     *ToolAnnotations `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"`
	ConnectionOwner string           `protobuf:"bytes,8,opt,name=connection_owner,json=connectionOwner,proto3" json:"connection_owner,omitempty"`
	// contains filtered or unexported fields
}

func (*ToolDescriptor) Descriptor deprecated

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

Deprecated: Use ToolDescriptor.ProtoReflect.Descriptor instead.

func (*ToolDescriptor) GetAnnotations

func (x *ToolDescriptor) GetAnnotations() *ToolAnnotations

func (*ToolDescriptor) GetConnectionOwner added in v0.13.0

func (x *ToolDescriptor) GetConnectionOwner() string

func (*ToolDescriptor) GetDescription

func (x *ToolDescriptor) GetDescription() string

func (*ToolDescriptor) GetInputSchema

func (x *ToolDescriptor) GetInputSchema() []byte

func (*ToolDescriptor) GetName

func (x *ToolDescriptor) GetName() string

func (*ToolDescriptor) GetOutputSchema

func (x *ToolDescriptor) GetOutputSchema() []byte

func (*ToolDescriptor) GetScope

func (x *ToolDescriptor) GetScope() ToolScope

func (*ToolDescriptor) GetTitle

func (x *ToolDescriptor) GetTitle() string

func (*ToolDescriptor) ProtoMessage

func (*ToolDescriptor) ProtoMessage()

func (*ToolDescriptor) ProtoReflect

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

func (*ToolDescriptor) Reset

func (x *ToolDescriptor) Reset()

func (*ToolDescriptor) String

func (x *ToolDescriptor) String() string

type ToolScope

type ToolScope int32
const (
	ToolScope_TOOL_SCOPE_UNSPECIFIED ToolScope = 0
	// The tool acts on the plugin itself and needs no connection.
	ToolScope_TOOL_SCOPE_PLUGIN ToolScope = 1
	// The tool acts on one plugin connection; the host supplies it.
	ToolScope_TOOL_SCOPE_CONNECTION ToolScope = 2
)

func (ToolScope) Descriptor

func (ToolScope) Descriptor() protoreflect.EnumDescriptor

func (ToolScope) Enum

func (x ToolScope) Enum() *ToolScope

func (ToolScope) EnumDescriptor deprecated

func (ToolScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use ToolScope.Descriptor instead.

func (ToolScope) Number

func (x ToolScope) Number() protoreflect.EnumNumber

func (ToolScope) String

func (x ToolScope) String() string

func (ToolScope) Type

type ToolsPluginClient

type ToolsPluginClient interface {
	ListTools(ctx context.Context, in *ListToolsRequest, opts ...grpc.CallOption) (*ListToolsResponse, error)
	CallTool(ctx context.Context, in *CallToolRequest, opts ...grpc.CallOption) (*CallToolResponse, error)
}

ToolsPluginClient is the client API for ToolsPlugin 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.

type ToolsPluginServer

type ToolsPluginServer interface {
	ListTools(context.Context, *ListToolsRequest) (*ListToolsResponse, error)
	CallTool(context.Context, *CallToolRequest) (*CallToolResponse, error)
}

ToolsPluginServer is the server API for ToolsPlugin service. All implementations should embed UnimplementedToolsPluginServer for forward compatibility

type UnimplementedToolsPluginServer

type UnimplementedToolsPluginServer struct {
}

UnimplementedToolsPluginServer should be embedded to have forward compatible implementations.

func (UnimplementedToolsPluginServer) CallTool

func (UnimplementedToolsPluginServer) ListTools

type UnsafeToolsPluginServer

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

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

Jump to

Keyboard shortcuts

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