workflows

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_dapr_proto_workflows_v1_mcp_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MCPAfterCallToolHookInput

type MCPAfterCallToolHookInput struct {

	// name is the name of the MCPServer resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// tool_name is the name of the tool that was called.
	ToolName string `protobuf:"bytes,2,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	// arguments is the tool arguments that were sent.
	Arguments *structpb.Struct `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
	// result is the JSON-encoded MCP CallToolResult.
	// Spec: https://modelcontextprotocol.io/specification/2024-11-05/server/tools#tool-result
	Result []byte `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

MCPAfterCallToolHookInput is received by afterCallTool middleware hooks. When the hook has mutate=true, its return value (CallToolResult shape) replaces the result returned to the caller. Errors returned by after-hooks fail the workflow.

func (*MCPAfterCallToolHookInput) Descriptor deprecated

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

Deprecated: Use MCPAfterCallToolHookInput.ProtoReflect.Descriptor instead.

func (*MCPAfterCallToolHookInput) GetArguments

func (x *MCPAfterCallToolHookInput) GetArguments() *structpb.Struct

func (*MCPAfterCallToolHookInput) GetName

func (x *MCPAfterCallToolHookInput) GetName() string

func (*MCPAfterCallToolHookInput) GetResult

func (x *MCPAfterCallToolHookInput) GetResult() []byte

func (*MCPAfterCallToolHookInput) GetToolName

func (x *MCPAfterCallToolHookInput) GetToolName() string

func (*MCPAfterCallToolHookInput) ProtoMessage

func (*MCPAfterCallToolHookInput) ProtoMessage()

func (*MCPAfterCallToolHookInput) ProtoReflect

func (*MCPAfterCallToolHookInput) Reset

func (x *MCPAfterCallToolHookInput) Reset()

func (*MCPAfterCallToolHookInput) String

func (x *MCPAfterCallToolHookInput) String() string

type MCPAfterListToolsHookInput

type MCPAfterListToolsHookInput struct {

	// name is the name of the MCPServer resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// result is the JSON-encoded MCP ListToolsResult.
	// Spec: https://modelcontextprotocol.io/specification/2024-11-05/server/tools#listing-tools
	Result []byte `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

MCPAfterListToolsHookInput is received by afterListTools middleware hooks. When the hook has mutate=true, its return value (ListToolsResult shape) replaces the result returned to the caller.

func (*MCPAfterListToolsHookInput) Descriptor deprecated

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

Deprecated: Use MCPAfterListToolsHookInput.ProtoReflect.Descriptor instead.

func (*MCPAfterListToolsHookInput) GetName

func (x *MCPAfterListToolsHookInput) GetName() string

func (*MCPAfterListToolsHookInput) GetResult

func (x *MCPAfterListToolsHookInput) GetResult() []byte

func (*MCPAfterListToolsHookInput) ProtoMessage

func (*MCPAfterListToolsHookInput) ProtoMessage()

func (*MCPAfterListToolsHookInput) ProtoReflect

func (*MCPAfterListToolsHookInput) Reset

func (x *MCPAfterListToolsHookInput) Reset()

func (*MCPAfterListToolsHookInput) String

func (x *MCPAfterListToolsHookInput) String() string

type MCPBeforeCallToolHookInput

type MCPBeforeCallToolHookInput struct {

	// name is the name of the MCPServer resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// tool_name is the name of the tool being called.
	ToolName string `protobuf:"bytes,2,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	// arguments is the tool arguments as a JSON object.
	Arguments *structpb.Struct `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

MCPBeforeCallToolHookInput is received by beforeCallTool middleware hooks. When the hook has mutate=true, its return value (same shape) replaces the arguments flowing to the tool call.

func (*MCPBeforeCallToolHookInput) Descriptor deprecated

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

Deprecated: Use MCPBeforeCallToolHookInput.ProtoReflect.Descriptor instead.

func (*MCPBeforeCallToolHookInput) GetArguments

func (x *MCPBeforeCallToolHookInput) GetArguments() *structpb.Struct

func (*MCPBeforeCallToolHookInput) GetName

func (x *MCPBeforeCallToolHookInput) GetName() string

func (*MCPBeforeCallToolHookInput) GetToolName

func (x *MCPBeforeCallToolHookInput) GetToolName() string

func (*MCPBeforeCallToolHookInput) ProtoMessage

func (*MCPBeforeCallToolHookInput) ProtoMessage()

func (*MCPBeforeCallToolHookInput) ProtoReflect

func (*MCPBeforeCallToolHookInput) Reset

func (x *MCPBeforeCallToolHookInput) Reset()

func (*MCPBeforeCallToolHookInput) String

func (x *MCPBeforeCallToolHookInput) String() string

type MCPBeforeListToolsHookInput

type MCPBeforeListToolsHookInput struct {

	// name is the name of the MCPServer resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

MCPBeforeListToolsHookInput is received by beforeListTools middleware hooks.

func (*MCPBeforeListToolsHookInput) Descriptor deprecated

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

Deprecated: Use MCPBeforeListToolsHookInput.ProtoReflect.Descriptor instead.

func (*MCPBeforeListToolsHookInput) GetName

func (x *MCPBeforeListToolsHookInput) GetName() string

func (*MCPBeforeListToolsHookInput) ProtoMessage

func (*MCPBeforeListToolsHookInput) ProtoMessage()

func (*MCPBeforeListToolsHookInput) ProtoReflect

func (*MCPBeforeListToolsHookInput) Reset

func (x *MCPBeforeListToolsHookInput) Reset()

func (*MCPBeforeListToolsHookInput) String

func (x *MCPBeforeListToolsHookInput) String() string

Jump to

Keyboard shortcuts

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