debugv1connect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugServiceGetDashboardProcedure is the fully-qualified name of the DebugService's GetDashboard
	// RPC.
	DebugServiceGetDashboardProcedure = "/mind.debug.v1.DebugService/GetDashboard"
	// DebugServiceGetContextProcedure is the fully-qualified name of the DebugService's GetContext RPC.
	DebugServiceGetContextProcedure = "/mind.debug.v1.DebugService/GetContext"
	// DebugServiceGetMemoryProcedure is the fully-qualified name of the DebugService's GetMemory RPC.
	DebugServiceGetMemoryProcedure = "/mind.debug.v1.DebugService/GetMemory"
	// DebugServiceGetSessionProcedure is the fully-qualified name of the DebugService's GetSession RPC.
	DebugServiceGetSessionProcedure = "/mind.debug.v1.DebugService/GetSession"
	// DebugServiceGetObjectiveGraphProcedure is the fully-qualified name of the DebugService's
	// GetObjectiveGraph RPC.
	DebugServiceGetObjectiveGraphProcedure = "/mind.debug.v1.DebugService/GetObjectiveGraph"
	// DebugServiceGetTraceProcedure is the fully-qualified name of the DebugService's GetTrace RPC.
	DebugServiceGetTraceProcedure = "/mind.debug.v1.DebugService/GetTrace"
	// DebugServiceGetMetricsProcedure is the fully-qualified name of the DebugService's GetMetrics RPC.
	DebugServiceGetMetricsProcedure = "/mind.debug.v1.DebugService/GetMetrics"
	// DebugServiceGetCostBreakdownProcedure is the fully-qualified name of the DebugService's
	// GetCostBreakdown RPC.
	DebugServiceGetCostBreakdownProcedure = "/mind.debug.v1.DebugService/GetCostBreakdown"
	// DebugServiceGetSymbolMapProcedure is the fully-qualified name of the DebugService's GetSymbolMap
	// RPC.
	DebugServiceGetSymbolMapProcedure = "/mind.debug.v1.DebugService/GetSymbolMap"
	// DebugServiceGetFileChangesProcedure is the fully-qualified name of the DebugService's
	// GetFileChanges RPC.
	DebugServiceGetFileChangesProcedure = "/mind.debug.v1.DebugService/GetFileChanges"
	// DebugServiceGetLastSummaryProcedure is the fully-qualified name of the DebugService's
	// GetLastSummary RPC.
	DebugServiceGetLastSummaryProcedure = "/mind.debug.v1.DebugService/GetLastSummary"
	// DebugServiceGetRulesProcedure is the fully-qualified name of the DebugService's GetRules RPC.
	DebugServiceGetRulesProcedure = "/mind.debug.v1.DebugService/GetRules"
	// DebugServiceGetLLMCallsProcedure is the fully-qualified name of the DebugService's GetLLMCalls
	// RPC.
	DebugServiceGetLLMCallsProcedure = "/mind.debug.v1.DebugService/GetLLMCalls"
	// DebugServiceGetMiddlewareStateProcedure is the fully-qualified name of the DebugService's
	// GetMiddlewareState RPC.
	DebugServiceGetMiddlewareStateProcedure = "/mind.debug.v1.DebugService/GetMiddlewareState"
	// DebugServiceStreamEventsProcedure is the fully-qualified name of the DebugService's StreamEvents
	// RPC.
	DebugServiceStreamEventsProcedure = "/mind.debug.v1.DebugService/StreamEvents"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// DebugServiceName is the fully-qualified name of the DebugService service.
	DebugServiceName = "mind.debug.v1.DebugService"
)

Variables

This section is empty.

Functions

func NewDebugServiceHandler

func NewDebugServiceHandler(svc DebugServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewDebugServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type DebugServiceClient

type DebugServiceClient interface {
	// Dashboard returns an overview KPI snapshot.
	GetDashboard(context.Context, *connect.Request[v1.GetDashboardRequest]) (*connect.Response[v1.GetDashboardResponse], error)
	// Context returns the 3-layer prompt state (System / State / Turn).
	GetContext(context.Context, *connect.Request[v1.GetContextRequest]) (*connect.Response[v1.GetContextResponse], error)
	// Memory returns the current working memory state.
	GetMemory(context.Context, *connect.Request[v1.GetMemoryRequest]) (*connect.Response[v1.GetMemoryResponse], error)
	// Session returns session timeline and events.
	GetSession(context.Context, *connect.Request[v1.GetSessionRequest]) (*connect.Response[v1.GetSessionResponse], error)
	// ObjectiveGraph returns the objective DAG.
	GetObjectiveGraph(context.Context, *connect.Request[v1.GetObjectiveGraphRequest]) (*connect.Response[v1.GetObjectiveGraphResponse], error)
	// Trace returns the agent execution trace tree.
	GetTrace(context.Context, *connect.Request[v1.GetTraceRequest]) (*connect.Response[v1.GetTraceResponse], error)
	// Metrics returns token and cost metrics.
	GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.GetMetricsResponse], error)
	// CostBreakdown returns hierarchical cost attribution.
	GetCostBreakdown(context.Context, *connect.Request[v1.GetCostBreakdownRequest]) (*connect.Response[v1.GetCostBreakdownResponse], error)
	// SymbolMap returns the code symbol graph.
	GetSymbolMap(context.Context, *connect.Request[v1.GetSymbolMapRequest]) (*connect.Response[v1.GetSymbolMapResponse], error)
	// FileChanges returns file operations and diffs from the current run.
	GetFileChanges(context.Context, *connect.Request[v1.GetFileChangesRequest]) (*connect.Response[v1.GetFileChangesResponse], error)
	// LastSummary returns the post-run summary.
	GetLastSummary(context.Context, *connect.Request[v1.GetLastSummaryRequest]) (*connect.Response[v1.GetLastSummaryResponse], error)
	// Rules returns loaded rules with scope and match info.
	GetRules(context.Context, *connect.Request[v1.GetRulesRequest]) (*connect.Response[v1.GetRulesResponse], error)
	// LLMCalls returns the full call log.
	GetLLMCalls(context.Context, *connect.Request[v1.GetLLMCallsRequest]) (*connect.Response[v1.GetLLMCallsResponse], error)
	// MiddlewareState returns the middleware pipeline status.
	GetMiddlewareState(context.Context, *connect.Request[v1.GetMiddlewareStateRequest]) (*connect.Response[v1.GetMiddlewareStateResponse], error)
	// StreamEvents pushes real-time events to the client.
	StreamEvents(context.Context, *connect.Request[v1.StreamEventsRequest]) (*connect.ServerStreamForClient[v1.DebugEvent], error)
}

DebugServiceClient is a client for the mind.debug.v1.DebugService service.

func NewDebugServiceClient

func NewDebugServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DebugServiceClient

NewDebugServiceClient constructs a client for the mind.debug.v1.DebugService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type DebugServiceHandler

type DebugServiceHandler interface {
	// Dashboard returns an overview KPI snapshot.
	GetDashboard(context.Context, *connect.Request[v1.GetDashboardRequest]) (*connect.Response[v1.GetDashboardResponse], error)
	// Context returns the 3-layer prompt state (System / State / Turn).
	GetContext(context.Context, *connect.Request[v1.GetContextRequest]) (*connect.Response[v1.GetContextResponse], error)
	// Memory returns the current working memory state.
	GetMemory(context.Context, *connect.Request[v1.GetMemoryRequest]) (*connect.Response[v1.GetMemoryResponse], error)
	// Session returns session timeline and events.
	GetSession(context.Context, *connect.Request[v1.GetSessionRequest]) (*connect.Response[v1.GetSessionResponse], error)
	// ObjectiveGraph returns the objective DAG.
	GetObjectiveGraph(context.Context, *connect.Request[v1.GetObjectiveGraphRequest]) (*connect.Response[v1.GetObjectiveGraphResponse], error)
	// Trace returns the agent execution trace tree.
	GetTrace(context.Context, *connect.Request[v1.GetTraceRequest]) (*connect.Response[v1.GetTraceResponse], error)
	// Metrics returns token and cost metrics.
	GetMetrics(context.Context, *connect.Request[v1.GetMetricsRequest]) (*connect.Response[v1.GetMetricsResponse], error)
	// CostBreakdown returns hierarchical cost attribution.
	GetCostBreakdown(context.Context, *connect.Request[v1.GetCostBreakdownRequest]) (*connect.Response[v1.GetCostBreakdownResponse], error)
	// SymbolMap returns the code symbol graph.
	GetSymbolMap(context.Context, *connect.Request[v1.GetSymbolMapRequest]) (*connect.Response[v1.GetSymbolMapResponse], error)
	// FileChanges returns file operations and diffs from the current run.
	GetFileChanges(context.Context, *connect.Request[v1.GetFileChangesRequest]) (*connect.Response[v1.GetFileChangesResponse], error)
	// LastSummary returns the post-run summary.
	GetLastSummary(context.Context, *connect.Request[v1.GetLastSummaryRequest]) (*connect.Response[v1.GetLastSummaryResponse], error)
	// Rules returns loaded rules with scope and match info.
	GetRules(context.Context, *connect.Request[v1.GetRulesRequest]) (*connect.Response[v1.GetRulesResponse], error)
	// LLMCalls returns the full call log.
	GetLLMCalls(context.Context, *connect.Request[v1.GetLLMCallsRequest]) (*connect.Response[v1.GetLLMCallsResponse], error)
	// MiddlewareState returns the middleware pipeline status.
	GetMiddlewareState(context.Context, *connect.Request[v1.GetMiddlewareStateRequest]) (*connect.Response[v1.GetMiddlewareStateResponse], error)
	// StreamEvents pushes real-time events to the client.
	StreamEvents(context.Context, *connect.Request[v1.StreamEventsRequest], *connect.ServerStream[v1.DebugEvent]) error
}

DebugServiceHandler is an implementation of the mind.debug.v1.DebugService service.

type UnimplementedDebugServiceHandler

type UnimplementedDebugServiceHandler struct{}

UnimplementedDebugServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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