seshat

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeshatService_HealthCheck_FullMethodName     = "/seshat.SeshatService/HealthCheck"
	SeshatService_GetServerInfo_FullMethodName   = "/seshat.SeshatService/GetServerInfo"
	SeshatService_GetModels_FullMethodName       = "/seshat.SeshatService/GetModels"
	SeshatService_ListSkills_FullMethodName      = "/seshat.SeshatService/ListSkills"
	SeshatService_GetSkillDetails_FullMethodName = "/seshat.SeshatService/GetSkillDetails"
	SeshatService_ListMCP_FullMethodName         = "/seshat.SeshatService/ListMCP"
	SeshatService_ConnectMCP_FullMethodName      = "/seshat.SeshatService/ConnectMCP"
	SeshatService_DisconnectMCP_FullMethodName   = "/seshat.SeshatService/DisconnectMCP"
	SeshatService_ReconnectMCP_FullMethodName    = "/seshat.SeshatService/ReconnectMCP"
	SeshatService_CreateSession_FullMethodName   = "/seshat.SeshatService/CreateSession"
	SeshatService_ListSessions_FullMethodName    = "/seshat.SeshatService/ListSessions"
	SeshatService_GetSession_FullMethodName      = "/seshat.SeshatService/GetSession"
	SeshatService_SearchSessions_FullMethodName  = "/seshat.SeshatService/SearchSessions"
	SeshatService_DeleteSession_FullMethodName   = "/seshat.SeshatService/DeleteSession"
	SeshatService_Query_FullMethodName           = "/seshat.SeshatService/Query"
	SeshatService_QueryStream_FullMethodName     = "/seshat.SeshatService/QueryStream"
)
View Source
const (
	SessionService_SubmitMessage_FullMethodName       = "/seshat.SessionService/SubmitMessage"
	SessionService_SubmitMessageStream_FullMethodName = "/seshat.SessionService/SubmitMessageStream"
	SessionService_Subscribe_FullMethodName           = "/seshat.SessionService/Subscribe"
	SessionService_GetMessages_FullMethodName         = "/seshat.SessionService/GetMessages"
	SessionService_GetHistory_FullMethodName          = "/seshat.SessionService/GetHistory"
	SessionService_GetState_FullMethodName            = "/seshat.SessionService/GetState"
	SessionService_Interrupt_FullMethodName           = "/seshat.SessionService/Interrupt"
	SessionService_Compact_FullMethodName             = "/seshat.SessionService/Compact"
	SessionService_Close_FullMethodName               = "/seshat.SessionService/Close"
	SessionService_SetPermissionMode_FullMethodName   = "/seshat.SessionService/SetPermissionMode"
	SessionService_SetWorkingDirectory_FullMethodName = "/seshat.SessionService/SetWorkingDirectory"
	SessionService_SetSystemPrompt_FullMethodName     = "/seshat.SessionService/SetSystemPrompt"
	SessionService_SetPlanMode_FullMethodName         = "/seshat.SessionService/SetPlanMode"
	SessionService_ApprovePlan_FullMethodName         = "/seshat.SessionService/ApprovePlan"
	SessionService_ListTools_FullMethodName           = "/seshat.SessionService/ListTools"
	SessionService_SetTools_FullMethodName            = "/seshat.SessionService/SetTools"
	SessionService_RespondPermission_FullMethodName   = "/seshat.SessionService/RespondPermission"
	SessionService_RespondPrompt_FullMethodName       = "/seshat.SessionService/RespondPrompt"
)
View Source
const (
	MemoryService_UpsertEntities_FullMethodName  = "/seshat.MemoryService/UpsertEntities"
	MemoryService_AddObservations_FullMethodName = "/seshat.MemoryService/AddObservations"
	MemoryService_SearchMemory_FullMethodName    = "/seshat.MemoryService/SearchMemory"
	MemoryService_OpenEntities_FullMethodName    = "/seshat.MemoryService/OpenEntities"
	MemoryService_RetrieveContext_FullMethodName = "/seshat.MemoryService/RetrieveContext"
)
View Source
const (
	WorkflowService_ValidateWorkflow_FullMethodName = "/seshat.WorkflowService/ValidateWorkflow"
	WorkflowService_DraftWorkflow_FullMethodName    = "/seshat.WorkflowService/DraftWorkflow"
	WorkflowService_RunWorkflow_FullMethodName      = "/seshat.WorkflowService/RunWorkflow"
)

Variables

View Source
var File_seshat_proto protoreflect.FileDescriptor
View Source
var MemoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seshat.MemoryService",
	HandlerType: (*MemoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpsertEntities",
			Handler:    _MemoryService_UpsertEntities_Handler,
		},
		{
			MethodName: "AddObservations",
			Handler:    _MemoryService_AddObservations_Handler,
		},
		{
			MethodName: "SearchMemory",
			Handler:    _MemoryService_SearchMemory_Handler,
		},
		{
			MethodName: "OpenEntities",
			Handler:    _MemoryService_OpenEntities_Handler,
		},
		{
			MethodName: "RetrieveContext",
			Handler:    _MemoryService_RetrieveContext_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "seshat.proto",
}

MemoryService_ServiceDesc is the grpc.ServiceDesc for MemoryService 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 SeshatService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seshat.SeshatService",
	HandlerType: (*SeshatServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HealthCheck",
			Handler:    _SeshatService_HealthCheck_Handler,
		},
		{
			MethodName: "GetServerInfo",
			Handler:    _SeshatService_GetServerInfo_Handler,
		},
		{
			MethodName: "GetModels",
			Handler:    _SeshatService_GetModels_Handler,
		},
		{
			MethodName: "ListSkills",
			Handler:    _SeshatService_ListSkills_Handler,
		},
		{
			MethodName: "GetSkillDetails",
			Handler:    _SeshatService_GetSkillDetails_Handler,
		},
		{
			MethodName: "ListMCP",
			Handler:    _SeshatService_ListMCP_Handler,
		},
		{
			MethodName: "ConnectMCP",
			Handler:    _SeshatService_ConnectMCP_Handler,
		},
		{
			MethodName: "DisconnectMCP",
			Handler:    _SeshatService_DisconnectMCP_Handler,
		},
		{
			MethodName: "ReconnectMCP",
			Handler:    _SeshatService_ReconnectMCP_Handler,
		},
		{
			MethodName: "CreateSession",
			Handler:    _SeshatService_CreateSession_Handler,
		},
		{
			MethodName: "ListSessions",
			Handler:    _SeshatService_ListSessions_Handler,
		},
		{
			MethodName: "GetSession",
			Handler:    _SeshatService_GetSession_Handler,
		},
		{
			MethodName: "SearchSessions",
			Handler:    _SeshatService_SearchSessions_Handler,
		},
		{
			MethodName: "DeleteSession",
			Handler:    _SeshatService_DeleteSession_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _SeshatService_Query_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "QueryStream",
			Handler:       _SeshatService_QueryStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "seshat.proto",
}

SeshatService_ServiceDesc is the grpc.ServiceDesc for SeshatService 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 SessionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seshat.SessionService",
	HandlerType: (*SessionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitMessage",
			Handler:    _SessionService_SubmitMessage_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _SessionService_GetMessages_Handler,
		},
		{
			MethodName: "GetHistory",
			Handler:    _SessionService_GetHistory_Handler,
		},
		{
			MethodName: "GetState",
			Handler:    _SessionService_GetState_Handler,
		},
		{
			MethodName: "Interrupt",
			Handler:    _SessionService_Interrupt_Handler,
		},
		{
			MethodName: "Compact",
			Handler:    _SessionService_Compact_Handler,
		},
		{
			MethodName: "Close",
			Handler:    _SessionService_Close_Handler,
		},
		{
			MethodName: "SetPermissionMode",
			Handler:    _SessionService_SetPermissionMode_Handler,
		},
		{
			MethodName: "SetWorkingDirectory",
			Handler:    _SessionService_SetWorkingDirectory_Handler,
		},
		{
			MethodName: "SetSystemPrompt",
			Handler:    _SessionService_SetSystemPrompt_Handler,
		},
		{
			MethodName: "SetPlanMode",
			Handler:    _SessionService_SetPlanMode_Handler,
		},
		{
			MethodName: "ApprovePlan",
			Handler:    _SessionService_ApprovePlan_Handler,
		},
		{
			MethodName: "ListTools",
			Handler:    _SessionService_ListTools_Handler,
		},
		{
			MethodName: "SetTools",
			Handler:    _SessionService_SetTools_Handler,
		},
		{
			MethodName: "RespondPermission",
			Handler:    _SessionService_RespondPermission_Handler,
		},
		{
			MethodName: "RespondPrompt",
			Handler:    _SessionService_RespondPrompt_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubmitMessageStream",
			Handler:       _SessionService_SubmitMessageStream_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Subscribe",
			Handler:       _SessionService_Subscribe_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "seshat.proto",
}

SessionService_ServiceDesc is the grpc.ServiceDesc for SessionService 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 WorkflowService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seshat.WorkflowService",
	HandlerType: (*WorkflowServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ValidateWorkflow",
			Handler:    _WorkflowService_ValidateWorkflow_Handler,
		},
		{
			MethodName: "DraftWorkflow",
			Handler:    _WorkflowService_DraftWorkflow_Handler,
		},
		{
			MethodName: "RunWorkflow",
			Handler:    _WorkflowService_RunWorkflow_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "seshat.proto",
}

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

Functions

func RegisterMemoryServiceServer added in v1.16.0

func RegisterMemoryServiceServer(s grpc.ServiceRegistrar, srv MemoryServiceServer)

func RegisterSeshatServiceServer

func RegisterSeshatServiceServer(s grpc.ServiceRegistrar, srv SeshatServiceServer)

func RegisterSessionServiceServer added in v1.16.0

func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)

func RegisterWorkflowServiceServer added in v1.16.0

func RegisterWorkflowServiceServer(s grpc.ServiceRegistrar, srv WorkflowServiceServer)

Types

type Ack added in v1.16.0

type Ack struct {
	// contains filtered or unexported fields
}

Ack is the empty success of a command that has nothing to return.

func (*Ack) Descriptor deprecated added in v1.16.0

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

Deprecated: Use Ack.ProtoReflect.Descriptor instead.

func (*Ack) ProtoMessage added in v1.16.0

func (*Ack) ProtoMessage()

func (*Ack) ProtoReflect added in v1.16.0

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

func (*Ack) Reset added in v1.16.0

func (x *Ack) Reset()

func (*Ack) String added in v1.16.0

func (x *Ack) String() string

type AddObservationsRequest added in v1.16.0

type AddObservationsRequest struct {
	UserId       string              `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Observations []*ObservationInput `protobuf:"bytes,2,rep,name=observations,proto3" json:"observations,omitempty"`
	// contains filtered or unexported fields
}

func (*AddObservationsRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use AddObservationsRequest.ProtoReflect.Descriptor instead.

func (*AddObservationsRequest) GetObservations added in v1.16.0

func (x *AddObservationsRequest) GetObservations() []*ObservationInput

func (*AddObservationsRequest) GetUserId added in v1.16.0

func (x *AddObservationsRequest) GetUserId() string

func (*AddObservationsRequest) ProtoMessage added in v1.16.0

func (*AddObservationsRequest) ProtoMessage()

func (*AddObservationsRequest) ProtoReflect added in v1.16.0

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

func (*AddObservationsRequest) Reset added in v1.16.0

func (x *AddObservationsRequest) Reset()

func (*AddObservationsRequest) String added in v1.16.0

func (x *AddObservationsRequest) String() string

type AddObservationsResponse added in v1.16.0

type AddObservationsResponse struct {
	Results []*ObservationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*AddObservationsResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use AddObservationsResponse.ProtoReflect.Descriptor instead.

func (*AddObservationsResponse) GetResults added in v1.16.0

func (x *AddObservationsResponse) GetResults() []*ObservationResult

func (*AddObservationsResponse) ProtoMessage added in v1.16.0

func (*AddObservationsResponse) ProtoMessage()

func (*AddObservationsResponse) ProtoReflect added in v1.16.0

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

func (*AddObservationsResponse) Reset added in v1.16.0

func (x *AddObservationsResponse) Reset()

func (*AddObservationsResponse) String added in v1.16.0

func (x *AddObservationsResponse) String() string

type AgentEvent added in v1.16.0

type AgentEvent struct {
	EventType     string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	CallId        string `protobuf:"bytes,2,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	AgentId       string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	AgentNickname string `protobuf:"bytes,4,opt,name=agent_nickname,json=agentNickname,proto3" json:"agent_nickname,omitempty"`
	AgentRole     string `protobuf:"bytes,5,opt,name=agent_role,json=agentRole,proto3" json:"agent_role,omitempty"`
	Prompt        string `protobuf:"bytes,6,opt,name=prompt,proto3" json:"prompt,omitempty"`
	Status        string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	Message       string `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`
	StartedAtMs   int64  `protobuf:"varint,9,opt,name=started_at_ms,json=startedAtMs,proto3" json:"started_at_ms,omitempty"`
	CompletedAtMs int64  `protobuf:"varint,10,opt,name=completed_at_ms,json=completedAtMs,proto3" json:"completed_at_ms,omitempty"`
	// contains filtered or unexported fields
}

AgentEvent is a multi-agent collaboration event (a sub-agent spawning, waiting, exchanging a message or closing).

func (*AgentEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use AgentEvent.ProtoReflect.Descriptor instead.

func (*AgentEvent) GetAgentId added in v1.16.0

func (x *AgentEvent) GetAgentId() string

func (*AgentEvent) GetAgentNickname added in v1.16.0

func (x *AgentEvent) GetAgentNickname() string

func (*AgentEvent) GetAgentRole added in v1.16.0

func (x *AgentEvent) GetAgentRole() string

func (*AgentEvent) GetCallId added in v1.16.0

func (x *AgentEvent) GetCallId() string

func (*AgentEvent) GetCompletedAtMs added in v1.16.0

func (x *AgentEvent) GetCompletedAtMs() int64

func (*AgentEvent) GetEventType added in v1.16.0

func (x *AgentEvent) GetEventType() string

func (*AgentEvent) GetMessage added in v1.16.0

func (x *AgentEvent) GetMessage() string

func (*AgentEvent) GetPrompt added in v1.16.0

func (x *AgentEvent) GetPrompt() string

func (*AgentEvent) GetStartedAtMs added in v1.16.0

func (x *AgentEvent) GetStartedAtMs() int64

func (*AgentEvent) GetStatus added in v1.16.0

func (x *AgentEvent) GetStatus() string

func (*AgentEvent) ProtoMessage added in v1.16.0

func (*AgentEvent) ProtoMessage()

func (*AgentEvent) ProtoReflect added in v1.16.0

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

func (*AgentEvent) Reset added in v1.16.0

func (x *AgentEvent) Reset()

func (*AgentEvent) String added in v1.16.0

func (x *AgentEvent) String() string

type ApprovePlanRequest added in v1.16.0

type ApprovePlanRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ApprovePlanRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ApprovePlanRequest.ProtoReflect.Descriptor instead.

func (*ApprovePlanRequest) GetSessionId added in v1.16.0

func (x *ApprovePlanRequest) GetSessionId() string

func (*ApprovePlanRequest) ProtoMessage added in v1.16.0

func (*ApprovePlanRequest) ProtoMessage()

func (*ApprovePlanRequest) ProtoReflect added in v1.16.0

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

func (*ApprovePlanRequest) Reset added in v1.16.0

func (x *ApprovePlanRequest) Reset()

func (*ApprovePlanRequest) String added in v1.16.0

func (x *ApprovePlanRequest) String() string

type BrowserEvent added in v1.16.0

type BrowserEvent struct {
	Action        string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	PageId        string `protobuf:"bytes,2,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"`
	Url           string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	Title         string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	ActivePageId  string `protobuf:"bytes,5,opt,name=active_page_id,json=activePageId,proto3" json:"active_page_id,omitempty"`
	PageCount     int32  `protobuf:"varint,6,opt,name=page_count,json=pageCount,proto3" json:"page_count,omitempty"`
	ActionCount   int32  `protobuf:"varint,7,opt,name=action_count,json=actionCount,proto3" json:"action_count,omitempty"`
	ElementCount  int32  `protobuf:"varint,8,opt,name=element_count,json=elementCount,proto3" json:"element_count,omitempty"`
	HeadingCount  int32  `protobuf:"varint,9,opt,name=heading_count,json=headingCount,proto3" json:"heading_count,omitempty"`
	TextLength    int32  `protobuf:"varint,10,opt,name=text_length,json=textLength,proto3" json:"text_length,omitempty"`
	Bytes         int64  `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"`
	PersistedPath string `protobuf:"bytes,12,opt,name=persisted_path,json=persistedPath,proto3" json:"persisted_path,omitempty"`
	PersistedSize int64  `protobuf:"varint,13,opt,name=persisted_size,json=persistedSize,proto3" json:"persisted_size,omitempty"`
	FullPage      bool   `protobuf:"varint,14,opt,name=full_page,json=fullPage,proto3" json:"full_page,omitempty"`
	// contains filtered or unexported fields
}

BrowserEvent is browser activity (a session opening, a page, a screenshot).

func (*BrowserEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use BrowserEvent.ProtoReflect.Descriptor instead.

func (*BrowserEvent) GetAction added in v1.16.0

func (x *BrowserEvent) GetAction() string

func (*BrowserEvent) GetActionCount added in v1.16.0

func (x *BrowserEvent) GetActionCount() int32

func (*BrowserEvent) GetActivePageId added in v1.16.0

func (x *BrowserEvent) GetActivePageId() string

func (*BrowserEvent) GetBytes added in v1.16.0

func (x *BrowserEvent) GetBytes() int64

func (*BrowserEvent) GetElementCount added in v1.16.0

func (x *BrowserEvent) GetElementCount() int32

func (*BrowserEvent) GetFullPage added in v1.16.0

func (x *BrowserEvent) GetFullPage() bool

func (*BrowserEvent) GetHeadingCount added in v1.16.0

func (x *BrowserEvent) GetHeadingCount() int32

func (*BrowserEvent) GetPageCount added in v1.16.0

func (x *BrowserEvent) GetPageCount() int32

func (*BrowserEvent) GetPageId added in v1.16.0

func (x *BrowserEvent) GetPageId() string

func (*BrowserEvent) GetPersistedPath added in v1.16.0

func (x *BrowserEvent) GetPersistedPath() string

func (*BrowserEvent) GetPersistedSize added in v1.16.0

func (x *BrowserEvent) GetPersistedSize() int64

func (*BrowserEvent) GetTextLength added in v1.16.0

func (x *BrowserEvent) GetTextLength() int32

func (*BrowserEvent) GetTitle added in v1.16.0

func (x *BrowserEvent) GetTitle() string

func (*BrowserEvent) GetUrl added in v1.16.0

func (x *BrowserEvent) GetUrl() string

func (*BrowserEvent) ProtoMessage added in v1.16.0

func (*BrowserEvent) ProtoMessage()

func (*BrowserEvent) ProtoReflect added in v1.16.0

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

func (*BrowserEvent) Reset added in v1.16.0

func (x *BrowserEvent) Reset()

func (*BrowserEvent) String added in v1.16.0

func (x *BrowserEvent) String() string

type ChunkDelta

type ChunkDelta struct {

	// "content_block_start", "content_block_delta", "content_block_stop",
	// "message_delta", "message_stop" or "error".
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Provider delta variant, e.g. "text_delta", "thinking_delta",
	// "input_json_delta".
	DeltaType string `protobuf:"bytes,2,opt,name=delta_type,json=deltaType,proto3" json:"delta_type,omitempty"`
	// Text of the delta, when it carries text.
	Delta string `protobuf:"bytes,3,opt,name=delta,proto3" json:"delta,omitempty"`
	// Index of the content block this delta belongs to, when the provider
	// interleaves several.
	Index *int32 `protobuf:"varint,4,opt,name=index,proto3,oneof" json:"index,omitempty"`
	// Incremental JSON of a tool call input.
	PartialJson string `protobuf:"bytes,5,opt,name=partial_json,json=partialJson,proto3" json:"partial_json,omitempty"`
	// The complete block, on a start.
	ContentBlock *ContentBlock `protobuf:"bytes,6,opt,name=content_block,json=contentBlock,proto3" json:"content_block,omitempty"`
	// Why generation stopped, on message_delta.
	StopReason string `protobuf:"bytes,7,opt,name=stop_reason,json=stopReason,proto3" json:"stop_reason,omitempty"`
	// Token usage, when the provider reports it.
	Usage *TokenUsage `protobuf:"bytes,8,opt,name=usage,proto3" json:"usage,omitempty"`
	// contains filtered or unexported fields
}

ChunkDelta is one piece of a model response as it streams in.

func (*ChunkDelta) Descriptor deprecated

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

Deprecated: Use ChunkDelta.ProtoReflect.Descriptor instead.

func (*ChunkDelta) GetContentBlock added in v1.16.0

func (x *ChunkDelta) GetContentBlock() *ContentBlock

func (*ChunkDelta) GetDelta

func (x *ChunkDelta) GetDelta() string

func (*ChunkDelta) GetDeltaType

func (x *ChunkDelta) GetDeltaType() string

func (*ChunkDelta) GetIndex added in v1.16.0

func (x *ChunkDelta) GetIndex() int32

func (*ChunkDelta) GetPartialJson added in v1.16.0

func (x *ChunkDelta) GetPartialJson() string

func (*ChunkDelta) GetStopReason added in v1.16.0

func (x *ChunkDelta) GetStopReason() string

func (*ChunkDelta) GetType

func (x *ChunkDelta) GetType() string

func (*ChunkDelta) GetUsage added in v1.16.0

func (x *ChunkDelta) GetUsage() *TokenUsage

func (*ChunkDelta) ProtoMessage

func (*ChunkDelta) ProtoMessage()

func (*ChunkDelta) ProtoReflect

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

func (*ChunkDelta) Reset

func (x *ChunkDelta) Reset()

func (*ChunkDelta) String

func (x *ChunkDelta) String() string

type CloseSessionRequest added in v1.16.0

type CloseSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CloseSessionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CloseSessionRequest.ProtoReflect.Descriptor instead.

func (*CloseSessionRequest) GetSessionId added in v1.16.0

func (x *CloseSessionRequest) GetSessionId() string

func (*CloseSessionRequest) ProtoMessage added in v1.16.0

func (*CloseSessionRequest) ProtoMessage()

func (*CloseSessionRequest) ProtoReflect added in v1.16.0

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

func (*CloseSessionRequest) Reset added in v1.16.0

func (x *CloseSessionRequest) Reset()

func (*CloseSessionRequest) String added in v1.16.0

func (x *CloseSessionRequest) String() string

type CompactRequest added in v1.16.0

type CompactRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CompactRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CompactRequest.ProtoReflect.Descriptor instead.

func (*CompactRequest) GetSessionId added in v1.16.0

func (x *CompactRequest) GetSessionId() string

func (*CompactRequest) ProtoMessage added in v1.16.0

func (*CompactRequest) ProtoMessage()

func (*CompactRequest) ProtoReflect added in v1.16.0

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

func (*CompactRequest) Reset added in v1.16.0

func (x *CompactRequest) Reset()

func (*CompactRequest) String added in v1.16.0

func (x *CompactRequest) String() string

type CompactResponse added in v1.16.0

type CompactResponse struct {
	PreTokens  int32 `protobuf:"varint,1,opt,name=pre_tokens,json=preTokens,proto3" json:"pre_tokens,omitempty"`
	PostTokens int32 `protobuf:"varint,2,opt,name=post_tokens,json=postTokens,proto3" json:"post_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*CompactResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CompactResponse.ProtoReflect.Descriptor instead.

func (*CompactResponse) GetPostTokens added in v1.16.0

func (x *CompactResponse) GetPostTokens() int32

func (*CompactResponse) GetPreTokens added in v1.16.0

func (x *CompactResponse) GetPreTokens() int32

func (*CompactResponse) ProtoMessage added in v1.16.0

func (*CompactResponse) ProtoMessage()

func (*CompactResponse) ProtoReflect added in v1.16.0

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

func (*CompactResponse) Reset added in v1.16.0

func (x *CompactResponse) Reset()

func (*CompactResponse) String added in v1.16.0

func (x *CompactResponse) String() string

type CompactionEvent added in v1.16.0

type CompactionEvent struct {

	// True when the compaction is starting, false when it is done.
	Started           bool  `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"`
	PreCompactTokens  int32 `protobuf:"varint,2,opt,name=pre_compact_tokens,json=preCompactTokens,proto3" json:"pre_compact_tokens,omitempty"`
	PostCompactTokens int32 `protobuf:"varint,3,opt,name=post_compact_tokens,json=postCompactTokens,proto3" json:"post_compact_tokens,omitempty"`
	// contains filtered or unexported fields
}

CompactionEvent reports a compaction of the conversation.

func (*CompactionEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CompactionEvent.ProtoReflect.Descriptor instead.

func (*CompactionEvent) GetPostCompactTokens added in v1.16.0

func (x *CompactionEvent) GetPostCompactTokens() int32

func (*CompactionEvent) GetPreCompactTokens added in v1.16.0

func (x *CompactionEvent) GetPreCompactTokens() int32

func (*CompactionEvent) GetStarted added in v1.16.0

func (x *CompactionEvent) GetStarted() bool

func (*CompactionEvent) ProtoMessage added in v1.16.0

func (*CompactionEvent) ProtoMessage()

func (*CompactionEvent) ProtoReflect added in v1.16.0

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

func (*CompactionEvent) Reset added in v1.16.0

func (x *CompactionEvent) Reset()

func (*CompactionEvent) String added in v1.16.0

func (x *CompactionEvent) String() string

type ConnectMCPRequest

type ConnectMCPRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// "stdio" (default), "http", "sse", "ws".
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Command of a stdio server.
	Command string   `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"`
	Args    []string `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// URL of an http, sse or ws server.
	Url string            `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	Env map[string]string `` /* 133-byte string literal not displayed */
	// Timeout in seconds.
	Timeout int32 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Keep the server in the user's configuration (default true).
	Persist bool `protobuf:"varint,8,opt,name=persist,proto3" json:"persist,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectMCPRequest) Descriptor deprecated

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

Deprecated: Use ConnectMCPRequest.ProtoReflect.Descriptor instead.

func (*ConnectMCPRequest) GetArgs

func (x *ConnectMCPRequest) GetArgs() []string

func (*ConnectMCPRequest) GetCommand

func (x *ConnectMCPRequest) GetCommand() string

func (*ConnectMCPRequest) GetEnv

func (x *ConnectMCPRequest) GetEnv() map[string]string

func (*ConnectMCPRequest) GetName

func (x *ConnectMCPRequest) GetName() string

func (*ConnectMCPRequest) GetPersist added in v1.16.0

func (x *ConnectMCPRequest) GetPersist() bool

func (*ConnectMCPRequest) GetTimeout

func (x *ConnectMCPRequest) GetTimeout() int32

func (*ConnectMCPRequest) GetType

func (x *ConnectMCPRequest) GetType() string

func (*ConnectMCPRequest) GetUrl

func (x *ConnectMCPRequest) GetUrl() string

func (*ConnectMCPRequest) ProtoMessage

func (*ConnectMCPRequest) ProtoMessage()

func (*ConnectMCPRequest) ProtoReflect

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

func (*ConnectMCPRequest) Reset

func (x *ConnectMCPRequest) Reset()

func (*ConnectMCPRequest) String

func (x *ConnectMCPRequest) String() string

type ConnectMCPResponse

type ConnectMCPResponse struct {
	Success bool       `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string     `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Server  *MCPServer `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectMCPResponse) Descriptor deprecated

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

Deprecated: Use ConnectMCPResponse.ProtoReflect.Descriptor instead.

func (*ConnectMCPResponse) GetError

func (x *ConnectMCPResponse) GetError() string

func (*ConnectMCPResponse) GetServer added in v1.16.0

func (x *ConnectMCPResponse) GetServer() *MCPServer

func (*ConnectMCPResponse) GetSuccess

func (x *ConnectMCPResponse) GetSuccess() bool

func (*ConnectMCPResponse) ProtoMessage

func (*ConnectMCPResponse) ProtoMessage()

func (*ConnectMCPResponse) ProtoReflect

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

func (*ConnectMCPResponse) Reset

func (x *ConnectMCPResponse) Reset()

func (*ConnectMCPResponse) String

func (x *ConnectMCPResponse) String() string

type ContentBlock added in v1.16.0

type ContentBlock struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Types that are valid to be assigned to Block:
	//
	//	*ContentBlock_Text
	//	*ContentBlock_Thinking
	//	*ContentBlock_ToolUse
	//	*ContentBlock_ToolResult
	//	*ContentBlock_Image
	Block isContentBlock_Block `protobuf_oneof:"block"`
	// contains filtered or unexported fields
}

ContentBlock is one block of a message. `type` is always set; the matching field is the one for that type. Types: "text", "thinking", "tool_use", "tool_result", "image".

func (*ContentBlock) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ContentBlock.ProtoReflect.Descriptor instead.

func (*ContentBlock) GetBlock added in v1.16.0

func (x *ContentBlock) GetBlock() isContentBlock_Block

func (*ContentBlock) GetImage added in v1.16.0

func (x *ContentBlock) GetImage() *ImageBlock

func (*ContentBlock) GetText added in v1.16.0

func (x *ContentBlock) GetText() *TextBlock

func (*ContentBlock) GetThinking added in v1.16.0

func (x *ContentBlock) GetThinking() *ThinkingBlock

func (*ContentBlock) GetToolResult added in v1.16.0

func (x *ContentBlock) GetToolResult() *ToolResult

func (*ContentBlock) GetToolUse added in v1.16.0

func (x *ContentBlock) GetToolUse() *ToolUse

func (*ContentBlock) GetType added in v1.16.0

func (x *ContentBlock) GetType() string

func (*ContentBlock) ProtoMessage added in v1.16.0

func (*ContentBlock) ProtoMessage()

func (*ContentBlock) ProtoReflect added in v1.16.0

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

func (*ContentBlock) Reset added in v1.16.0

func (x *ContentBlock) Reset()

func (*ContentBlock) String added in v1.16.0

func (x *ContentBlock) String() string

type ContentBlock_Image added in v1.16.0

type ContentBlock_Image struct {
	Image *ImageBlock `protobuf:"bytes,6,opt,name=image,proto3,oneof"`
}

type ContentBlock_Text added in v1.16.0

type ContentBlock_Text struct {
	Text *TextBlock `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
}

type ContentBlock_Thinking added in v1.16.0

type ContentBlock_Thinking struct {
	Thinking *ThinkingBlock `protobuf:"bytes,3,opt,name=thinking,proto3,oneof"`
}

type ContentBlock_ToolResult added in v1.16.0

type ContentBlock_ToolResult struct {
	ToolResult *ToolResult `protobuf:"bytes,5,opt,name=tool_result,json=toolResult,proto3,oneof"`
}

type ContentBlock_ToolUse added in v1.16.0

type ContentBlock_ToolUse struct {
	ToolUse *ToolUse `protobuf:"bytes,4,opt,name=tool_use,json=toolUse,proto3,oneof"`
}

type ContextUsage added in v1.16.0

type ContextUsage struct {
	UsedTokens          int32 `protobuf:"varint,1,opt,name=used_tokens,json=usedTokens,proto3" json:"used_tokens,omitempty"`
	WindowTokens        int32 `protobuf:"varint,2,opt,name=window_tokens,json=windowTokens,proto3" json:"window_tokens,omitempty"`
	AutoCompactAtTokens int32 `protobuf:"varint,3,opt,name=auto_compact_at_tokens,json=autoCompactAtTokens,proto3" json:"auto_compact_at_tokens,omitempty"`
	BlockingLimitTokens int32 `protobuf:"varint,4,opt,name=blocking_limit_tokens,json=blockingLimitTokens,proto3" json:"blocking_limit_tokens,omitempty"`
	// "estimate" when the runtime counted it, "reported" when it starts from
	// the provider's own figure.
	Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

ContextUsage says how full the model's context window is.

func (*ContextUsage) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ContextUsage.ProtoReflect.Descriptor instead.

func (*ContextUsage) GetAutoCompactAtTokens added in v1.16.0

func (x *ContextUsage) GetAutoCompactAtTokens() int32

func (*ContextUsage) GetBlockingLimitTokens added in v1.16.0

func (x *ContextUsage) GetBlockingLimitTokens() int32

func (*ContextUsage) GetSource added in v1.16.0

func (x *ContextUsage) GetSource() string

func (*ContextUsage) GetUsedTokens added in v1.16.0

func (x *ContextUsage) GetUsedTokens() int32

func (*ContextUsage) GetWindowTokens added in v1.16.0

func (x *ContextUsage) GetWindowTokens() int32

func (*ContextUsage) ProtoMessage added in v1.16.0

func (*ContextUsage) ProtoMessage()

func (*ContextUsage) ProtoReflect added in v1.16.0

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

func (*ContextUsage) Reset added in v1.16.0

func (x *ContextUsage) Reset()

func (*ContextUsage) String added in v1.16.0

func (x *ContextUsage) String() string

type CreateSessionRequest added in v1.16.0

type CreateSessionRequest struct {

	// "provider:model"; empty uses the server's default.
	Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// Maximum output tokens of a turn.
	MaxTokens int32 `protobuf:"varint,2,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// Provider credential for this session only. Empty uses the server's.
	ApiKey string `protobuf:"bytes,3,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	// Working directory of the file and shell tools.
	WorkingDir string `protobuf:"bytes,4,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
	// Permission mode: "bypass", "auto", "acceptEdits", "onRequest" (default),
	// "never" or "granular".
	PermissionMode string `protobuf:"bytes,5,opt,name=permission_mode,json=permissionMode,proto3" json:"permission_mode,omitempty"`
	// Replaces the default system prompt.
	SystemPromptTemplate string `protobuf:"bytes,6,opt,name=system_prompt_template,json=systemPromptTemplate,proto3" json:"system_prompt_template,omitempty"`
	// Appended to the system prompt.
	AppendSystemPrompt string `protobuf:"bytes,7,opt,name=append_system_prompt,json=appendSystemPrompt,proto3" json:"append_system_prompt,omitempty"`
	// Restrict the session to these tools; empty offers every enabled tool.
	Tools []string `protobuf:"bytes,8,rep,name=tools,proto3" json:"tools,omitempty"`
	// How many model calls one turn may make. 0 keeps the server's value.
	MaxIterations int32 `protobuf:"varint,9,opt,name=max_iterations,json=maxIterations,proto3" json:"max_iterations,omitempty"`
	// How many turns a session may run. 0 keeps the server's value.
	MaxTurns int32 `protobuf:"varint,10,opt,name=max_turns,json=maxTurns,proto3" json:"max_turns,omitempty"`
	// Tokens one turn may spend before it is continued or stopped. 0 keeps the
	// server's value.
	TurnTokenBudget int32 `protobuf:"varint,11,opt,name=turn_token_budget,json=turnTokenBudget,proto3" json:"turn_token_budget,omitempty"`
	// Consecutive refusals after which the turn stops asking and ends. 0 keeps
	// the server's value.
	MaxConsecutiveDenials int32 `` /* 128-byte string literal not displayed */
	// Compact the conversation when it nears the context window. Unset keeps
	// the server's value; `false` turns it off for this session.
	AutoCompact *bool `protobuf:"varint,13,opt,name=auto_compact,json=autoCompact,proto3,oneof" json:"auto_compact,omitempty"`
	// Keep deferred tools (MCP tools, skills) behind the tool_search tool, so
	// the model finds them rather than seeing them from the start. Unset keeps
	// the server's value; `true` turns it on for this session.
	EnableToolSearch *bool `protobuf:"varint,14,opt,name=enable_tool_search,json=enableToolSearch,proto3,oneof" json:"enable_tool_search,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSessionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest) GetApiKey added in v1.16.0

func (x *CreateSessionRequest) GetApiKey() string

func (*CreateSessionRequest) GetAppendSystemPrompt added in v1.16.0

func (x *CreateSessionRequest) GetAppendSystemPrompt() string

func (*CreateSessionRequest) GetAutoCompact added in v1.16.0

func (x *CreateSessionRequest) GetAutoCompact() bool

func (*CreateSessionRequest) GetEnableToolSearch added in v1.16.0

func (x *CreateSessionRequest) GetEnableToolSearch() bool

func (*CreateSessionRequest) GetMaxConsecutiveDenials added in v1.16.0

func (x *CreateSessionRequest) GetMaxConsecutiveDenials() int32

func (*CreateSessionRequest) GetMaxIterations added in v1.16.0

func (x *CreateSessionRequest) GetMaxIterations() int32

func (*CreateSessionRequest) GetMaxTokens added in v1.16.0

func (x *CreateSessionRequest) GetMaxTokens() int32

func (*CreateSessionRequest) GetMaxTurns added in v1.16.0

func (x *CreateSessionRequest) GetMaxTurns() int32

func (*CreateSessionRequest) GetModel added in v1.16.0

func (x *CreateSessionRequest) GetModel() string

func (*CreateSessionRequest) GetPermissionMode added in v1.16.0

func (x *CreateSessionRequest) GetPermissionMode() string

func (*CreateSessionRequest) GetSystemPromptTemplate added in v1.16.0

func (x *CreateSessionRequest) GetSystemPromptTemplate() string

func (*CreateSessionRequest) GetTools added in v1.16.0

func (x *CreateSessionRequest) GetTools() []string

func (*CreateSessionRequest) GetTurnTokenBudget added in v1.16.0

func (x *CreateSessionRequest) GetTurnTokenBudget() int32

func (*CreateSessionRequest) GetWorkingDir added in v1.16.0

func (x *CreateSessionRequest) GetWorkingDir() string

func (*CreateSessionRequest) ProtoMessage added in v1.16.0

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) ProtoReflect added in v1.16.0

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

func (*CreateSessionRequest) Reset added in v1.16.0

func (x *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String added in v1.16.0

func (x *CreateSessionRequest) String() string

type DeleteSessionRequest added in v1.16.0

type DeleteSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSessionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSessionRequest) GetSessionId added in v1.16.0

func (x *DeleteSessionRequest) GetSessionId() string

func (*DeleteSessionRequest) ProtoMessage added in v1.16.0

func (*DeleteSessionRequest) ProtoMessage()

func (*DeleteSessionRequest) ProtoReflect added in v1.16.0

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

func (*DeleteSessionRequest) Reset added in v1.16.0

func (x *DeleteSessionRequest) Reset()

func (*DeleteSessionRequest) String added in v1.16.0

func (x *DeleteSessionRequest) String() string

type DeleteSessionResponse added in v1.16.0

type DeleteSessionResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSessionResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use DeleteSessionResponse.ProtoReflect.Descriptor instead.

func (*DeleteSessionResponse) GetSuccess added in v1.16.0

func (x *DeleteSessionResponse) GetSuccess() bool

func (*DeleteSessionResponse) ProtoMessage added in v1.16.0

func (*DeleteSessionResponse) ProtoMessage()

func (*DeleteSessionResponse) ProtoReflect added in v1.16.0

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

func (*DeleteSessionResponse) Reset added in v1.16.0

func (x *DeleteSessionResponse) Reset()

func (*DeleteSessionResponse) String added in v1.16.0

func (x *DeleteSessionResponse) String() string

type DisconnectMCPRequest

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

func (*DisconnectMCPRequest) Descriptor deprecated

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

Deprecated: Use DisconnectMCPRequest.ProtoReflect.Descriptor instead.

func (*DisconnectMCPRequest) GetName

func (x *DisconnectMCPRequest) GetName() string

func (*DisconnectMCPRequest) ProtoMessage

func (*DisconnectMCPRequest) ProtoMessage()

func (*DisconnectMCPRequest) ProtoReflect

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

func (*DisconnectMCPRequest) Reset

func (x *DisconnectMCPRequest) Reset()

func (*DisconnectMCPRequest) String

func (x *DisconnectMCPRequest) String() string

type DisconnectMCPResponse

type DisconnectMCPResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DisconnectMCPResponse) Descriptor deprecated

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

Deprecated: Use DisconnectMCPResponse.ProtoReflect.Descriptor instead.

func (*DisconnectMCPResponse) GetError

func (x *DisconnectMCPResponse) GetError() string

func (*DisconnectMCPResponse) GetSuccess

func (x *DisconnectMCPResponse) GetSuccess() bool

func (*DisconnectMCPResponse) ProtoMessage

func (*DisconnectMCPResponse) ProtoMessage()

func (*DisconnectMCPResponse) ProtoReflect

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

func (*DisconnectMCPResponse) Reset

func (x *DisconnectMCPResponse) Reset()

func (*DisconnectMCPResponse) String

func (x *DisconnectMCPResponse) String() string

type DraftWorkflowRequest added in v1.16.0

type DraftWorkflowRequest struct {
	Definition string `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	// "yaml" (default) or "json".
	Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*DraftWorkflowRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use DraftWorkflowRequest.ProtoReflect.Descriptor instead.

func (*DraftWorkflowRequest) GetDefinition added in v1.16.0

func (x *DraftWorkflowRequest) GetDefinition() string

func (*DraftWorkflowRequest) GetFormat added in v1.16.0

func (x *DraftWorkflowRequest) GetFormat() string

func (*DraftWorkflowRequest) ProtoMessage added in v1.16.0

func (*DraftWorkflowRequest) ProtoMessage()

func (*DraftWorkflowRequest) ProtoReflect added in v1.16.0

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

func (*DraftWorkflowRequest) Reset added in v1.16.0

func (x *DraftWorkflowRequest) Reset()

func (*DraftWorkflowRequest) String added in v1.16.0

func (x *DraftWorkflowRequest) String() string

type DraftWorkflowResponse added in v1.16.0

type DraftWorkflowResponse struct {

	// The normalised definition, rendered in the requested format.
	Rendered    string `protobuf:"bytes,1,opt,name=rendered,proto3" json:"rendered,omitempty"`
	Diagnostics string `protobuf:"bytes,2,opt,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	// contains filtered or unexported fields
}

func (*DraftWorkflowResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use DraftWorkflowResponse.ProtoReflect.Descriptor instead.

func (*DraftWorkflowResponse) GetDiagnostics added in v1.16.0

func (x *DraftWorkflowResponse) GetDiagnostics() string

func (*DraftWorkflowResponse) GetRendered added in v1.16.0

func (x *DraftWorkflowResponse) GetRendered() string

func (*DraftWorkflowResponse) ProtoMessage added in v1.16.0

func (*DraftWorkflowResponse) ProtoMessage()

func (*DraftWorkflowResponse) ProtoReflect added in v1.16.0

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

func (*DraftWorkflowResponse) Reset added in v1.16.0

func (x *DraftWorkflowResponse) Reset()

func (*DraftWorkflowResponse) String added in v1.16.0

func (x *DraftWorkflowResponse) String() string

type EntityInput added in v1.16.0

type EntityInput struct {
	Name         string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	EntityType   string   `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
	Observations []string `protobuf:"bytes,3,rep,name=observations,proto3" json:"observations,omitempty"`
	// contains filtered or unexported fields
}

func (*EntityInput) Descriptor deprecated added in v1.16.0

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

Deprecated: Use EntityInput.ProtoReflect.Descriptor instead.

func (*EntityInput) GetEntityType added in v1.16.0

func (x *EntityInput) GetEntityType() string

func (*EntityInput) GetName added in v1.16.0

func (x *EntityInput) GetName() string

func (*EntityInput) GetObservations added in v1.16.0

func (x *EntityInput) GetObservations() []string

func (*EntityInput) ProtoMessage added in v1.16.0

func (*EntityInput) ProtoMessage()

func (*EntityInput) ProtoReflect added in v1.16.0

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

func (*EntityInput) Reset added in v1.16.0

func (x *EntityInput) Reset()

func (*EntityInput) String added in v1.16.0

func (x *EntityInput) String() string

type GetHistoryRequest added in v1.16.0

type GetHistoryRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHistoryRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetHistoryRequest.ProtoReflect.Descriptor instead.

func (*GetHistoryRequest) GetSessionId added in v1.16.0

func (x *GetHistoryRequest) GetSessionId() string

func (*GetHistoryRequest) ProtoMessage added in v1.16.0

func (*GetHistoryRequest) ProtoMessage()

func (*GetHistoryRequest) ProtoReflect added in v1.16.0

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

func (*GetHistoryRequest) Reset added in v1.16.0

func (x *GetHistoryRequest) Reset()

func (*GetHistoryRequest) String added in v1.16.0

func (x *GetHistoryRequest) String() string

type GetHistoryResponse added in v1.16.0

type GetHistoryResponse struct {

	// Messages a compaction took out of what the model sees, oldest first.
	Archived []*Message `protobuf:"bytes,1,rep,name=archived,proto3" json:"archived,omitempty"`
	// Messages the model sees now.
	Current []*Message `protobuf:"bytes,2,rep,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHistoryResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetHistoryResponse.ProtoReflect.Descriptor instead.

func (*GetHistoryResponse) GetArchived added in v1.16.0

func (x *GetHistoryResponse) GetArchived() []*Message

func (*GetHistoryResponse) GetCurrent added in v1.16.0

func (x *GetHistoryResponse) GetCurrent() []*Message

func (*GetHistoryResponse) ProtoMessage added in v1.16.0

func (*GetHistoryResponse) ProtoMessage()

func (*GetHistoryResponse) ProtoReflect added in v1.16.0

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

func (*GetHistoryResponse) Reset added in v1.16.0

func (x *GetHistoryResponse) Reset()

func (*GetHistoryResponse) String added in v1.16.0

func (x *GetHistoryResponse) String() string

type GetMessagesRequest added in v1.16.0

type GetMessagesRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMessagesRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetMessagesRequest) GetSessionId added in v1.16.0

func (x *GetMessagesRequest) GetSessionId() string

func (*GetMessagesRequest) ProtoMessage added in v1.16.0

func (*GetMessagesRequest) ProtoMessage()

func (*GetMessagesRequest) ProtoReflect added in v1.16.0

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

func (*GetMessagesRequest) Reset added in v1.16.0

func (x *GetMessagesRequest) Reset()

func (*GetMessagesRequest) String added in v1.16.0

func (x *GetMessagesRequest) String() string

type GetMessagesResponse added in v1.16.0

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

func (*GetMessagesResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetMessagesResponse.ProtoReflect.Descriptor instead.

func (*GetMessagesResponse) GetMessages added in v1.16.0

func (x *GetMessagesResponse) GetMessages() []*Message

func (*GetMessagesResponse) ProtoMessage added in v1.16.0

func (*GetMessagesResponse) ProtoMessage()

func (*GetMessagesResponse) ProtoReflect added in v1.16.0

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

func (*GetMessagesResponse) Reset added in v1.16.0

func (x *GetMessagesResponse) Reset()

func (*GetMessagesResponse) String added in v1.16.0

func (x *GetMessagesResponse) String() string

type GetModelsRequest

type GetModelsRequest struct {
	// contains filtered or unexported fields
}

func (*GetModelsRequest) Descriptor deprecated

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

Deprecated: Use GetModelsRequest.ProtoReflect.Descriptor instead.

func (*GetModelsRequest) ProtoMessage

func (*GetModelsRequest) ProtoMessage()

func (*GetModelsRequest) ProtoReflect

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

func (*GetModelsRequest) Reset

func (x *GetModelsRequest) Reset()

func (*GetModelsRequest) String

func (x *GetModelsRequest) String() string

type GetModelsResponse

type GetModelsResponse struct {
	Models    []*ModelInfo    `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
	Providers []*ProviderInfo `protobuf:"bytes,2,rep,name=providers,proto3" json:"providers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetModelsResponse) Descriptor deprecated

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

Deprecated: Use GetModelsResponse.ProtoReflect.Descriptor instead.

func (*GetModelsResponse) GetModels

func (x *GetModelsResponse) GetModels() []*ModelInfo

func (*GetModelsResponse) GetProviders added in v1.16.0

func (x *GetModelsResponse) GetProviders() []*ProviderInfo

func (*GetModelsResponse) ProtoMessage

func (*GetModelsResponse) ProtoMessage()

func (*GetModelsResponse) ProtoReflect

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

func (*GetModelsResponse) Reset

func (x *GetModelsResponse) Reset()

func (*GetModelsResponse) String

func (x *GetModelsResponse) String() string

type GetServerInfoRequest added in v1.16.0

type GetServerInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetServerInfoRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetServerInfoRequest.ProtoReflect.Descriptor instead.

func (*GetServerInfoRequest) ProtoMessage added in v1.16.0

func (*GetServerInfoRequest) ProtoMessage()

func (*GetServerInfoRequest) ProtoReflect added in v1.16.0

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

func (*GetServerInfoRequest) Reset added in v1.16.0

func (x *GetServerInfoRequest) Reset()

func (*GetServerInfoRequest) String added in v1.16.0

func (x *GetServerInfoRequest) String() string

type GetServerInfoResponse added in v1.16.0

type GetServerInfoResponse struct {
	Version       string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	UptimeSeconds int64  `protobuf:"varint,2,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
	// Default model ("provider:model") of this server.
	Model          string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
	WorkingDir     string `protobuf:"bytes,4,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
	PermissionMode string `protobuf:"bytes,5,opt,name=permission_mode,json=permissionMode,proto3" json:"permission_mode,omitempty"`
	// Which bash sandbox the runtime resolved: "local", "sandboxed", "microvm".
	SandboxKind string `protobuf:"bytes,6,opt,name=sandbox_kind,json=sandboxKind,proto3" json:"sandbox_kind,omitempty"`
	// Providers with a configured credential, and every provider known.
	ProvidersConfigured []string `protobuf:"bytes,7,rep,name=providers_configured,json=providersConfigured,proto3" json:"providers_configured,omitempty"`
	ProvidersAvailable  []string `protobuf:"bytes,8,rep,name=providers_available,json=providersAvailable,proto3" json:"providers_available,omitempty"`
	// Feature flags of this build.
	MemoryEnabled             bool `protobuf:"varint,9,opt,name=memory_enabled,json=memoryEnabled,proto3" json:"memory_enabled,omitempty"`
	HooksEnabled              bool `protobuf:"varint,10,opt,name=hooks_enabled,json=hooksEnabled,proto3" json:"hooks_enabled,omitempty"`
	MonitoringEnabled         bool `protobuf:"varint,11,opt,name=monitoring_enabled,json=monitoringEnabled,proto3" json:"monitoring_enabled,omitempty"`
	ToolSearchEnabled         bool `protobuf:"varint,12,opt,name=tool_search_enabled,json=toolSearchEnabled,proto3" json:"tool_search_enabled,omitempty"`
	SessionPersistenceEnabled bool `` /* 140-byte string literal not displayed */
	StdioMcpAllowed           bool `protobuf:"varint,14,opt,name=stdio_mcp_allowed,json=stdioMcpAllowed,proto3" json:"stdio_mcp_allowed,omitempty"`
	// Whether an auth token is required (never the token itself).
	AuthRequired   bool  `protobuf:"varint,15,opt,name=auth_required,json=authRequired,proto3" json:"auth_required,omitempty"`
	TlsEnabled     bool  `protobuf:"varint,16,opt,name=tls_enabled,json=tlsEnabled,proto3" json:"tls_enabled,omitempty"`
	ActiveSessions int32 `protobuf:"varint,17,opt,name=active_sessions,json=activeSessions,proto3" json:"active_sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerInfoResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetServerInfoResponse.ProtoReflect.Descriptor instead.

func (*GetServerInfoResponse) GetActiveSessions added in v1.16.0

func (x *GetServerInfoResponse) GetActiveSessions() int32

func (*GetServerInfoResponse) GetAuthRequired added in v1.16.0

func (x *GetServerInfoResponse) GetAuthRequired() bool

func (*GetServerInfoResponse) GetHooksEnabled added in v1.16.0

func (x *GetServerInfoResponse) GetHooksEnabled() bool

func (*GetServerInfoResponse) GetMemoryEnabled added in v1.16.0

func (x *GetServerInfoResponse) GetMemoryEnabled() bool

func (*GetServerInfoResponse) GetModel added in v1.16.0

func (x *GetServerInfoResponse) GetModel() string

func (*GetServerInfoResponse) GetMonitoringEnabled added in v1.16.0

func (x *GetServerInfoResponse) GetMonitoringEnabled() bool

func (*GetServerInfoResponse) GetPermissionMode added in v1.16.0

func (x *GetServerInfoResponse) GetPermissionMode() string

func (*GetServerInfoResponse) GetProvidersAvailable added in v1.16.0

func (x *GetServerInfoResponse) GetProvidersAvailable() []string

func (*GetServerInfoResponse) GetProvidersConfigured added in v1.16.0

func (x *GetServerInfoResponse) GetProvidersConfigured() []string

func (*GetServerInfoResponse) GetSandboxKind added in v1.16.0

func (x *GetServerInfoResponse) GetSandboxKind() string

func (*GetServerInfoResponse) GetSessionPersistenceEnabled added in v1.16.0

func (x *GetServerInfoResponse) GetSessionPersistenceEnabled() bool

func (*GetServerInfoResponse) GetStdioMcpAllowed added in v1.16.0

func (x *GetServerInfoResponse) GetStdioMcpAllowed() bool

func (*GetServerInfoResponse) GetTlsEnabled added in v1.16.0

func (x *GetServerInfoResponse) GetTlsEnabled() bool

func (*GetServerInfoResponse) GetToolSearchEnabled added in v1.16.0

func (x *GetServerInfoResponse) GetToolSearchEnabled() bool

func (*GetServerInfoResponse) GetUptimeSeconds added in v1.16.0

func (x *GetServerInfoResponse) GetUptimeSeconds() int64

func (*GetServerInfoResponse) GetVersion added in v1.16.0

func (x *GetServerInfoResponse) GetVersion() string

func (*GetServerInfoResponse) GetWorkingDir added in v1.16.0

func (x *GetServerInfoResponse) GetWorkingDir() string

func (*GetServerInfoResponse) ProtoMessage added in v1.16.0

func (*GetServerInfoResponse) ProtoMessage()

func (*GetServerInfoResponse) ProtoReflect added in v1.16.0

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

func (*GetServerInfoResponse) Reset added in v1.16.0

func (x *GetServerInfoResponse) Reset()

func (*GetServerInfoResponse) String added in v1.16.0

func (x *GetServerInfoResponse) String() string

type GetSessionRequest added in v1.16.0

type GetSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSessionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.

func (*GetSessionRequest) GetSessionId added in v1.16.0

func (x *GetSessionRequest) GetSessionId() string

func (*GetSessionRequest) ProtoMessage added in v1.16.0

func (*GetSessionRequest) ProtoMessage()

func (*GetSessionRequest) ProtoReflect added in v1.16.0

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

func (*GetSessionRequest) Reset added in v1.16.0

func (x *GetSessionRequest) Reset()

func (*GetSessionRequest) String added in v1.16.0

func (x *GetSessionRequest) String() string

type GetSkillDetailsRequest

type GetSkillDetailsRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Include the skill's content (the default is to include it).
	IncludeContent bool `protobuf:"varint,2,opt,name=include_content,json=includeContent,proto3" json:"include_content,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSkillDetailsRequest) Descriptor deprecated

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

Deprecated: Use GetSkillDetailsRequest.ProtoReflect.Descriptor instead.

func (*GetSkillDetailsRequest) GetIncludeContent added in v1.16.0

func (x *GetSkillDetailsRequest) GetIncludeContent() bool

func (*GetSkillDetailsRequest) GetName

func (x *GetSkillDetailsRequest) GetName() string

func (*GetSkillDetailsRequest) ProtoMessage

func (*GetSkillDetailsRequest) ProtoMessage()

func (*GetSkillDetailsRequest) ProtoReflect

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

func (*GetSkillDetailsRequest) Reset

func (x *GetSkillDetailsRequest) Reset()

func (*GetSkillDetailsRequest) String

func (x *GetSkillDetailsRequest) String() string

type GetSkillDetailsResponse

type GetSkillDetailsResponse struct {
	Skill *Skill `protobuf:"bytes,1,opt,name=skill,proto3" json:"skill,omitempty"`
	// The skill's content, also carried in Skill.content.
	Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSkillDetailsResponse) Descriptor deprecated

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

Deprecated: Use GetSkillDetailsResponse.ProtoReflect.Descriptor instead.

func (*GetSkillDetailsResponse) GetPrompt

func (x *GetSkillDetailsResponse) GetPrompt() string

func (*GetSkillDetailsResponse) GetSkill

func (x *GetSkillDetailsResponse) GetSkill() *Skill

func (*GetSkillDetailsResponse) ProtoMessage

func (*GetSkillDetailsResponse) ProtoMessage()

func (*GetSkillDetailsResponse) ProtoReflect

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

func (*GetSkillDetailsResponse) Reset

func (x *GetSkillDetailsResponse) Reset()

func (*GetSkillDetailsResponse) String

func (x *GetSkillDetailsResponse) String() string

type GetStateRequest added in v1.16.0

type GetStateRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStateRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GetStateRequest.ProtoReflect.Descriptor instead.

func (*GetStateRequest) GetSessionId added in v1.16.0

func (x *GetStateRequest) GetSessionId() string

func (*GetStateRequest) ProtoMessage added in v1.16.0

func (*GetStateRequest) ProtoMessage()

func (*GetStateRequest) ProtoReflect added in v1.16.0

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

func (*GetStateRequest) Reset added in v1.16.0

func (x *GetStateRequest) Reset()

func (*GetStateRequest) String added in v1.16.0

func (x *GetStateRequest) String() string

type GoalEvent added in v1.16.0

type GoalEvent struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Objective string `protobuf:"bytes,2,opt,name=objective,proto3" json:"objective,omitempty"`
	Status    string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// Optional token budget of the goal.
	TokenBudget     *int64 `protobuf:"varint,4,opt,name=token_budget,json=tokenBudget,proto3,oneof" json:"token_budget,omitempty"`
	TokensUsed      int64  `protobuf:"varint,5,opt,name=tokens_used,json=tokensUsed,proto3" json:"tokens_used,omitempty"`
	TimeUsedSeconds int64  `protobuf:"varint,6,opt,name=time_used_seconds,json=timeUsedSeconds,proto3" json:"time_used_seconds,omitempty"`
	CreatedAtMs     int64  `protobuf:"varint,7,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
	UpdatedAtMs     int64  `protobuf:"varint,8,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
	// contains filtered or unexported fields
}

GoalEvent is the long-running goal of an agent.

func (*GoalEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use GoalEvent.ProtoReflect.Descriptor instead.

func (*GoalEvent) GetCreatedAtMs added in v1.16.0

func (x *GoalEvent) GetCreatedAtMs() int64

func (*GoalEvent) GetObjective added in v1.16.0

func (x *GoalEvent) GetObjective() string

func (*GoalEvent) GetSessionId added in v1.16.0

func (x *GoalEvent) GetSessionId() string

func (*GoalEvent) GetStatus added in v1.16.0

func (x *GoalEvent) GetStatus() string

func (*GoalEvent) GetTimeUsedSeconds added in v1.16.0

func (x *GoalEvent) GetTimeUsedSeconds() int64

func (*GoalEvent) GetTokenBudget added in v1.16.0

func (x *GoalEvent) GetTokenBudget() int64

func (*GoalEvent) GetTokensUsed added in v1.16.0

func (x *GoalEvent) GetTokensUsed() int64

func (*GoalEvent) GetUpdatedAtMs added in v1.16.0

func (x *GoalEvent) GetUpdatedAtMs() int64

func (*GoalEvent) ProtoMessage added in v1.16.0

func (*GoalEvent) ProtoMessage()

func (*GoalEvent) ProtoReflect added in v1.16.0

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

func (*GoalEvent) Reset added in v1.16.0

func (x *GoalEvent) Reset()

func (*GoalEvent) String added in v1.16.0

func (x *GoalEvent) String() string

type HealthCheckRequest

type HealthCheckRequest struct {
	// contains filtered or unexported fields
}

func (*HealthCheckRequest) Descriptor deprecated

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

Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) ProtoReflect

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

func (*HealthCheckRequest) Reset

func (x *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (x *HealthCheckRequest) String() string

type HealthCheckResponse

type HealthCheckResponse struct {

	// "ok", "degraded" or "down".
	Status  string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Human-readable uptime, e.g. "1h2m3s".
	Uptime        string `protobuf:"bytes,3,opt,name=uptime,proto3" json:"uptime,omitempty"`
	UptimeSeconds int64  `protobuf:"varint,4,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckResponse) Descriptor deprecated

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

Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.

func (*HealthCheckResponse) GetStatus

func (x *HealthCheckResponse) GetStatus() string

func (*HealthCheckResponse) GetUptime

func (x *HealthCheckResponse) GetUptime() string

func (*HealthCheckResponse) GetUptimeSeconds added in v1.16.0

func (x *HealthCheckResponse) GetUptimeSeconds() int64

func (*HealthCheckResponse) GetVersion

func (x *HealthCheckResponse) GetVersion() string

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) ProtoReflect

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

func (*HealthCheckResponse) Reset

func (x *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (x *HealthCheckResponse) String() string

type ImageBlock added in v1.16.0

type ImageBlock struct {

	// "base64" for inline data.
	SourceType string `protobuf:"bytes,1,opt,name=source_type,json=sourceType,proto3" json:"source_type,omitempty"`
	// e.g. "image/png".
	MediaType string `protobuf:"bytes,2,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
	// Base64 payload.
	Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

ImageBlock is an image attached to a message, base64 encoded.

func (*ImageBlock) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ImageBlock.ProtoReflect.Descriptor instead.

func (*ImageBlock) GetData added in v1.16.0

func (x *ImageBlock) GetData() string

func (*ImageBlock) GetMediaType added in v1.16.0

func (x *ImageBlock) GetMediaType() string

func (*ImageBlock) GetSourceType added in v1.16.0

func (x *ImageBlock) GetSourceType() string

func (*ImageBlock) ProtoMessage added in v1.16.0

func (*ImageBlock) ProtoMessage()

func (*ImageBlock) ProtoReflect added in v1.16.0

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

func (*ImageBlock) Reset added in v1.16.0

func (x *ImageBlock) Reset()

func (*ImageBlock) String added in v1.16.0

func (x *ImageBlock) String() string

type InterruptRequest added in v1.16.0

type InterruptRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InterruptRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use InterruptRequest.ProtoReflect.Descriptor instead.

func (*InterruptRequest) GetSessionId added in v1.16.0

func (x *InterruptRequest) GetSessionId() string

func (*InterruptRequest) ProtoMessage added in v1.16.0

func (*InterruptRequest) ProtoMessage()

func (*InterruptRequest) ProtoReflect added in v1.16.0

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

func (*InterruptRequest) Reset added in v1.16.0

func (x *InterruptRequest) Reset()

func (*InterruptRequest) String added in v1.16.0

func (x *InterruptRequest) String() string

type ListMCPRequest

type ListMCPRequest struct {
	// contains filtered or unexported fields
}

func (*ListMCPRequest) Descriptor deprecated

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

Deprecated: Use ListMCPRequest.ProtoReflect.Descriptor instead.

func (*ListMCPRequest) ProtoMessage

func (*ListMCPRequest) ProtoMessage()

func (*ListMCPRequest) ProtoReflect

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

func (*ListMCPRequest) Reset

func (x *ListMCPRequest) Reset()

func (*ListMCPRequest) String

func (x *ListMCPRequest) String() string

type ListMCPResponse

type ListMCPResponse struct {
	Servers    []*MCPServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	TotalCount int32        `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMCPResponse) Descriptor deprecated

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

Deprecated: Use ListMCPResponse.ProtoReflect.Descriptor instead.

func (*ListMCPResponse) GetServers

func (x *ListMCPResponse) GetServers() []*MCPServer

func (*ListMCPResponse) GetTotalCount

func (x *ListMCPResponse) GetTotalCount() int32

func (*ListMCPResponse) ProtoMessage

func (*ListMCPResponse) ProtoMessage()

func (*ListMCPResponse) ProtoReflect

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

func (*ListMCPResponse) Reset

func (x *ListMCPResponse) Reset()

func (*ListMCPResponse) String

func (x *ListMCPResponse) String() string

type ListSessionsRequest added in v1.16.0

type ListSessionsRequest struct {

	// Maximum number of sessions to return (0 means the server's default).
	Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// Skip this many of the most recent sessions.
	Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// Include sessions a sub-agent ran in.
	IncludeSubagent bool `protobuf:"varint,3,opt,name=include_subagent,json=includeSubagent,proto3" json:"include_subagent,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionsRequest) GetIncludeSubagent added in v1.16.0

func (x *ListSessionsRequest) GetIncludeSubagent() bool

func (*ListSessionsRequest) GetLimit added in v1.16.0

func (x *ListSessionsRequest) GetLimit() int32

func (*ListSessionsRequest) GetOffset added in v1.16.0

func (x *ListSessionsRequest) GetOffset() int32

func (*ListSessionsRequest) ProtoMessage added in v1.16.0

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) ProtoReflect added in v1.16.0

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

func (*ListSessionsRequest) Reset added in v1.16.0

func (x *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String added in v1.16.0

func (x *ListSessionsRequest) String() string

type ListSessionsResponse added in v1.16.0

type ListSessionsResponse struct {
	Sessions   []*SessionInfo `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	TotalCount int32          `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSessionsResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionsResponse) GetSessions added in v1.16.0

func (x *ListSessionsResponse) GetSessions() []*SessionInfo

func (*ListSessionsResponse) GetTotalCount added in v1.16.0

func (x *ListSessionsResponse) GetTotalCount() int32

func (*ListSessionsResponse) ProtoMessage added in v1.16.0

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) ProtoReflect added in v1.16.0

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

func (*ListSessionsResponse) Reset added in v1.16.0

func (x *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String added in v1.16.0

func (x *ListSessionsResponse) String() string

type ListSkillsRequest

type ListSkillsRequest struct {

	// "all" (default), "bundled", "file", "managed", "mcp", "commands", "plugin".
	SourceFilter string `protobuf:"bytes,1,opt,name=source_filter,json=sourceFilter,proto3" json:"source_filter,omitempty"`
	// Include each skill's content in the response.
	IncludeContent bool `protobuf:"varint,2,opt,name=include_content,json=includeContent,proto3" json:"include_content,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSkillsRequest) Descriptor deprecated

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

Deprecated: Use ListSkillsRequest.ProtoReflect.Descriptor instead.

func (*ListSkillsRequest) GetIncludeContent added in v1.16.0

func (x *ListSkillsRequest) GetIncludeContent() bool

func (*ListSkillsRequest) GetSourceFilter

func (x *ListSkillsRequest) GetSourceFilter() string

func (*ListSkillsRequest) ProtoMessage

func (*ListSkillsRequest) ProtoMessage()

func (*ListSkillsRequest) ProtoReflect

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

func (*ListSkillsRequest) Reset

func (x *ListSkillsRequest) Reset()

func (*ListSkillsRequest) String

func (x *ListSkillsRequest) String() string

type ListSkillsResponse

type ListSkillsResponse struct {
	Skills     []*Skill `protobuf:"bytes,1,rep,name=skills,proto3" json:"skills,omitempty"`
	TotalCount int32    `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSkillsResponse) Descriptor deprecated

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

Deprecated: Use ListSkillsResponse.ProtoReflect.Descriptor instead.

func (*ListSkillsResponse) GetSkills

func (x *ListSkillsResponse) GetSkills() []*Skill

func (*ListSkillsResponse) GetTotalCount

func (x *ListSkillsResponse) GetTotalCount() int32

func (*ListSkillsResponse) ProtoMessage

func (*ListSkillsResponse) ProtoMessage()

func (*ListSkillsResponse) ProtoReflect

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

func (*ListSkillsResponse) Reset

func (x *ListSkillsResponse) Reset()

func (*ListSkillsResponse) String

func (x *ListSkillsResponse) String() string

type ListToolsRequest added in v1.16.0

type ListToolsRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Only the tools of this category.
	CategoryFilter string `protobuf:"bytes,2,opt,name=category_filter,json=categoryFilter,proto3" json:"category_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListToolsRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ListToolsRequest.ProtoReflect.Descriptor instead.

func (*ListToolsRequest) GetCategoryFilter added in v1.16.0

func (x *ListToolsRequest) GetCategoryFilter() string

func (*ListToolsRequest) GetSessionId added in v1.16.0

func (x *ListToolsRequest) GetSessionId() string

func (*ListToolsRequest) ProtoMessage added in v1.16.0

func (*ListToolsRequest) ProtoMessage()

func (*ListToolsRequest) ProtoReflect added in v1.16.0

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

func (*ListToolsRequest) Reset added in v1.16.0

func (x *ListToolsRequest) Reset()

func (*ListToolsRequest) String added in v1.16.0

func (x *ListToolsRequest) String() string

type ListToolsResponse added in v1.16.0

type ListToolsResponse struct {
	Tools      []*ToolInfo `protobuf:"bytes,1,rep,name=tools,proto3" json:"tools,omitempty"`
	TotalCount int32       `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListToolsResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ListToolsResponse.ProtoReflect.Descriptor instead.

func (*ListToolsResponse) GetTools added in v1.16.0

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

func (*ListToolsResponse) GetTotalCount added in v1.16.0

func (x *ListToolsResponse) GetTotalCount() int32

func (*ListToolsResponse) ProtoMessage added in v1.16.0

func (*ListToolsResponse) ProtoMessage()

func (*ListToolsResponse) ProtoReflect added in v1.16.0

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

func (*ListToolsResponse) Reset added in v1.16.0

func (x *ListToolsResponse) Reset()

func (*ListToolsResponse) String added in v1.16.0

func (x *ListToolsResponse) String() string

type MCPServer

type MCPServer struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// "connected", "disconnected", "error", …
	Status    string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	ToolCount int32  `protobuf:"varint,3,opt,name=tool_count,json=toolCount,proto3" json:"tool_count,omitempty"`
	LastError string `protobuf:"bytes,4,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"`
	// "stdio", "http", "sse", "ws".
	Type    string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	Url     string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
	Enabled bool   `protobuf:"varint,7,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

MCPServer is one MCP server.

func (*MCPServer) Descriptor deprecated

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

Deprecated: Use MCPServer.ProtoReflect.Descriptor instead.

func (*MCPServer) GetEnabled added in v1.16.0

func (x *MCPServer) GetEnabled() bool

func (*MCPServer) GetLastError

func (x *MCPServer) GetLastError() string

func (*MCPServer) GetName

func (x *MCPServer) GetName() string

func (*MCPServer) GetStatus

func (x *MCPServer) GetStatus() string

func (*MCPServer) GetToolCount

func (x *MCPServer) GetToolCount() int32

func (*MCPServer) GetType added in v1.16.0

func (x *MCPServer) GetType() string

func (*MCPServer) GetUrl added in v1.16.0

func (x *MCPServer) GetUrl() string

func (*MCPServer) ProtoMessage

func (*MCPServer) ProtoMessage()

func (*MCPServer) ProtoReflect

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

func (*MCPServer) Reset

func (x *MCPServer) Reset()

func (*MCPServer) String

func (x *MCPServer) String() string

type MemoryEntity added in v1.16.0

type MemoryEntity struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId       string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name         string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	EntityType   string                 `protobuf:"bytes,4,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`
	Observations []string               `protobuf:"bytes,5,rep,name=observations,proto3" json:"observations,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Entity is one node of the memory graph.

func (*MemoryEntity) Descriptor deprecated added in v1.16.0

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

Deprecated: Use MemoryEntity.ProtoReflect.Descriptor instead.

func (*MemoryEntity) GetCreatedAt added in v1.16.0

func (x *MemoryEntity) GetCreatedAt() *timestamppb.Timestamp

func (*MemoryEntity) GetEntityType added in v1.16.0

func (x *MemoryEntity) GetEntityType() string

func (*MemoryEntity) GetId added in v1.16.0

func (x *MemoryEntity) GetId() string

func (*MemoryEntity) GetName added in v1.16.0

func (x *MemoryEntity) GetName() string

func (*MemoryEntity) GetObservations added in v1.16.0

func (x *MemoryEntity) GetObservations() []string

func (*MemoryEntity) GetUpdatedAt added in v1.16.0

func (x *MemoryEntity) GetUpdatedAt() *timestamppb.Timestamp

func (*MemoryEntity) GetUserId added in v1.16.0

func (x *MemoryEntity) GetUserId() string

func (*MemoryEntity) ProtoMessage added in v1.16.0

func (*MemoryEntity) ProtoMessage()

func (*MemoryEntity) ProtoReflect added in v1.16.0

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

func (*MemoryEntity) Reset added in v1.16.0

func (x *MemoryEntity) Reset()

func (*MemoryEntity) String added in v1.16.0

func (x *MemoryEntity) String() string

type MemoryGraph added in v1.16.0

type MemoryGraph struct {
	Entities  []*MemoryEntity   `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
	Relations []*MemoryRelation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryGraph) Descriptor deprecated added in v1.16.0

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

Deprecated: Use MemoryGraph.ProtoReflect.Descriptor instead.

func (*MemoryGraph) GetEntities added in v1.16.0

func (x *MemoryGraph) GetEntities() []*MemoryEntity

func (*MemoryGraph) GetRelations added in v1.16.0

func (x *MemoryGraph) GetRelations() []*MemoryRelation

func (*MemoryGraph) ProtoMessage added in v1.16.0

func (*MemoryGraph) ProtoMessage()

func (*MemoryGraph) ProtoReflect added in v1.16.0

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

func (*MemoryGraph) Reset added in v1.16.0

func (x *MemoryGraph) Reset()

func (*MemoryGraph) String added in v1.16.0

func (x *MemoryGraph) String() string

type MemoryRelation added in v1.16.0

type MemoryRelation struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId       string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	From         string                 `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	To           string                 `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	RelationType string                 `protobuf:"bytes,5,opt,name=relation_type,json=relationType,proto3" json:"relation_type,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Relation is a directed edge between two entities, by name.

func (*MemoryRelation) Descriptor deprecated added in v1.16.0

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

Deprecated: Use MemoryRelation.ProtoReflect.Descriptor instead.

func (*MemoryRelation) GetCreatedAt added in v1.16.0

func (x *MemoryRelation) GetCreatedAt() *timestamppb.Timestamp

func (*MemoryRelation) GetFrom added in v1.16.0

func (x *MemoryRelation) GetFrom() string

func (*MemoryRelation) GetId added in v1.16.0

func (x *MemoryRelation) GetId() string

func (*MemoryRelation) GetRelationType added in v1.16.0

func (x *MemoryRelation) GetRelationType() string

func (*MemoryRelation) GetTo added in v1.16.0

func (x *MemoryRelation) GetTo() string

func (*MemoryRelation) GetUserId added in v1.16.0

func (x *MemoryRelation) GetUserId() string

func (*MemoryRelation) ProtoMessage added in v1.16.0

func (*MemoryRelation) ProtoMessage()

func (*MemoryRelation) ProtoReflect added in v1.16.0

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

func (*MemoryRelation) Reset added in v1.16.0

func (x *MemoryRelation) Reset()

func (*MemoryRelation) String added in v1.16.0

func (x *MemoryRelation) String() string

type MemoryServiceClient added in v1.16.0

type MemoryServiceClient interface {
	// Create entities that do not exist yet, deduplicated by name.
	UpsertEntities(ctx context.Context, in *UpsertEntitiesRequest, opts ...grpc.CallOption) (*UpsertEntitiesResponse, error)
	// Append observations to existing entities.
	AddObservations(ctx context.Context, in *AddObservationsRequest, opts ...grpc.CallOption) (*AddObservationsResponse, error)
	// Search entity names, types and observations.
	SearchMemory(ctx context.Context, in *SearchMemoryRequest, opts ...grpc.CallOption) (*MemoryGraph, error)
	// Open specific entities by exact name, with the relations that touch them.
	OpenEntities(ctx context.Context, in *OpenEntitiesRequest, opts ...grpc.CallOption) (*MemoryGraph, error)
	// The Markdown block the runtime injects for a query, capped in tokens.
	RetrieveContext(ctx context.Context, in *RetrieveContextRequest, opts ...grpc.CallOption) (*RetrieveContextResponse, error)
}

MemoryServiceClient is the client API for MemoryService 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.

MemoryService is the long-term memory graph of the runtime.

func NewMemoryServiceClient added in v1.16.0

func NewMemoryServiceClient(cc grpc.ClientConnInterface) MemoryServiceClient

type MemoryServiceServer added in v1.16.0

type MemoryServiceServer interface {
	// Create entities that do not exist yet, deduplicated by name.
	UpsertEntities(context.Context, *UpsertEntitiesRequest) (*UpsertEntitiesResponse, error)
	// Append observations to existing entities.
	AddObservations(context.Context, *AddObservationsRequest) (*AddObservationsResponse, error)
	// Search entity names, types and observations.
	SearchMemory(context.Context, *SearchMemoryRequest) (*MemoryGraph, error)
	// Open specific entities by exact name, with the relations that touch them.
	OpenEntities(context.Context, *OpenEntitiesRequest) (*MemoryGraph, error)
	// The Markdown block the runtime injects for a query, capped in tokens.
	RetrieveContext(context.Context, *RetrieveContextRequest) (*RetrieveContextResponse, error)
	// contains filtered or unexported methods
}

MemoryServiceServer is the server API for MemoryService service. All implementations must embed UnimplementedMemoryServiceServer for forward compatibility.

MemoryService is the long-term memory graph of the runtime.

type Message added in v1.16.0

type Message struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// "user", "assistant" or "system".
	Role      string                 `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	Content   []*ContentBlock        `protobuf:"bytes,3,rep,name=content,proto3" json:"content,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The turn this message belongs to, when it is part of one.
	TurnId string `protobuf:"bytes,5,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	// contains filtered or unexported fields
}

Message is one message of a conversation.

func (*Message) Descriptor deprecated added in v1.16.0

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetContent added in v1.16.0

func (x *Message) GetContent() []*ContentBlock

func (*Message) GetId added in v1.16.0

func (x *Message) GetId() string

func (*Message) GetRole added in v1.16.0

func (x *Message) GetRole() string

func (*Message) GetTimestamp added in v1.16.0

func (x *Message) GetTimestamp() *timestamppb.Timestamp

func (*Message) GetTurnId added in v1.16.0

func (x *Message) GetTurnId() string

func (*Message) ProtoMessage added in v1.16.0

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v1.16.0

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

func (*Message) Reset added in v1.16.0

func (x *Message) Reset()

func (*Message) String added in v1.16.0

func (x *Message) String() string

type ModelInfo

type ModelInfo struct {

	// The model identifier, e.g. "claude-sonnet-5-5".
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Human-readable name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// "anthropic", "openai", "gemini", …
	Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	// Maximum output tokens.
	MaxTokens int32 `protobuf:"varint,4,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// Context window, when the registry knows it.
	ContextWindow int32 `protobuf:"varint,5,opt,name=context_window,json=contextWindow,proto3" json:"context_window,omitempty"`
	// contains filtered or unexported fields
}

ModelInfo is one model of the provider registry.

func (*ModelInfo) Descriptor deprecated

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

Deprecated: Use ModelInfo.ProtoReflect.Descriptor instead.

func (*ModelInfo) GetContextWindow added in v1.16.0

func (x *ModelInfo) GetContextWindow() int32

func (*ModelInfo) GetId

func (x *ModelInfo) GetId() string

func (*ModelInfo) GetMaxTokens

func (x *ModelInfo) GetMaxTokens() int32

func (*ModelInfo) GetName

func (x *ModelInfo) GetName() string

func (*ModelInfo) GetProvider

func (x *ModelInfo) GetProvider() string

func (*ModelInfo) ProtoMessage

func (*ModelInfo) ProtoMessage()

func (*ModelInfo) ProtoReflect

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

func (*ModelInfo) Reset

func (x *ModelInfo) Reset()

func (*ModelInfo) String

func (x *ModelInfo) String() string

type ObservationInput added in v1.16.0

type ObservationInput struct {
	EntityName string   `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	Contents   []string `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*ObservationInput) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ObservationInput.ProtoReflect.Descriptor instead.

func (*ObservationInput) GetContents added in v1.16.0

func (x *ObservationInput) GetContents() []string

func (*ObservationInput) GetEntityName added in v1.16.0

func (x *ObservationInput) GetEntityName() string

func (*ObservationInput) ProtoMessage added in v1.16.0

func (*ObservationInput) ProtoMessage()

func (*ObservationInput) ProtoReflect added in v1.16.0

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

func (*ObservationInput) Reset added in v1.16.0

func (x *ObservationInput) Reset()

func (*ObservationInput) String added in v1.16.0

func (x *ObservationInput) String() string

type ObservationResult added in v1.16.0

type ObservationResult struct {
	EntityName        string   `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
	AddedObservations []string `protobuf:"bytes,2,rep,name=added_observations,json=addedObservations,proto3" json:"added_observations,omitempty"`
	// contains filtered or unexported fields
}

func (*ObservationResult) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ObservationResult.ProtoReflect.Descriptor instead.

func (*ObservationResult) GetAddedObservations added in v1.16.0

func (x *ObservationResult) GetAddedObservations() []string

func (*ObservationResult) GetEntityName added in v1.16.0

func (x *ObservationResult) GetEntityName() string

func (*ObservationResult) ProtoMessage added in v1.16.0

func (*ObservationResult) ProtoMessage()

func (*ObservationResult) ProtoReflect added in v1.16.0

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

func (*ObservationResult) Reset added in v1.16.0

func (x *ObservationResult) Reset()

func (*ObservationResult) String added in v1.16.0

func (x *ObservationResult) String() string

type OpenEntitiesRequest added in v1.16.0

type OpenEntitiesRequest struct {
	UserId string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Names  []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenEntitiesRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use OpenEntitiesRequest.ProtoReflect.Descriptor instead.

func (*OpenEntitiesRequest) GetNames added in v1.16.0

func (x *OpenEntitiesRequest) GetNames() []string

func (*OpenEntitiesRequest) GetUserId added in v1.16.0

func (x *OpenEntitiesRequest) GetUserId() string

func (*OpenEntitiesRequest) ProtoMessage added in v1.16.0

func (*OpenEntitiesRequest) ProtoMessage()

func (*OpenEntitiesRequest) ProtoReflect added in v1.16.0

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

func (*OpenEntitiesRequest) Reset added in v1.16.0

func (x *OpenEntitiesRequest) Reset()

func (*OpenEntitiesRequest) String added in v1.16.0

func (x *OpenEntitiesRequest) String() string

type PermissionRequest added in v1.16.0

type PermissionRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	TurnId    string `protobuf:"bytes,3,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	ToolName  string `protobuf:"bytes,4,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	// Human-readable description of what the tool would do.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// The candidate tool input.
	ToolInput *structpb.Struct `protobuf:"bytes,6,opt,name=tool_input,json=toolInput,proto3" json:"tool_input,omitempty"`
	// Ties the decision to the tool call that asked.
	ToolUseId string `protobuf:"bytes,7,opt,name=tool_use_id,json=toolUseId,proto3" json:"tool_use_id,omitempty"`
	// The permission mode in force when the request was made.
	PermissionMode   string `protobuf:"bytes,8,opt,name=permission_mode,json=permissionMode,proto3" json:"permission_mode,omitempty"`
	WorkingDirectory string `protobuf:"bytes,9,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
	// The permission stage being resolved, when the engine names one.
	Stage string `protobuf:"bytes,10,opt,name=stage,proto3" json:"stage,omitempty"`
	// When the server gives up on this request.
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Set when the tool call comes from a sub-agent.
	AgentToolUseId string `protobuf:"bytes,12,opt,name=agent_tool_use_id,json=agentToolUseId,proto3" json:"agent_tool_use_id,omitempty"`
	// contains filtered or unexported fields
}

PermissionRequest asks the client to allow or deny a tool call. Answer it with SessionService.RespondPermission and the request_id below.

func (*PermissionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use PermissionRequest.ProtoReflect.Descriptor instead.

func (*PermissionRequest) GetAgentToolUseId added in v1.16.0

func (x *PermissionRequest) GetAgentToolUseId() string

func (*PermissionRequest) GetDescription added in v1.16.0

func (x *PermissionRequest) GetDescription() string

func (*PermissionRequest) GetExpiresAt added in v1.16.0

func (x *PermissionRequest) GetExpiresAt() *timestamppb.Timestamp

func (*PermissionRequest) GetPermissionMode added in v1.16.0

func (x *PermissionRequest) GetPermissionMode() string

func (*PermissionRequest) GetRequestId added in v1.16.0

func (x *PermissionRequest) GetRequestId() string

func (*PermissionRequest) GetSessionId added in v1.16.0

func (x *PermissionRequest) GetSessionId() string

func (*PermissionRequest) GetStage added in v1.16.0

func (x *PermissionRequest) GetStage() string

func (*PermissionRequest) GetToolInput added in v1.16.0

func (x *PermissionRequest) GetToolInput() *structpb.Struct

func (*PermissionRequest) GetToolName added in v1.16.0

func (x *PermissionRequest) GetToolName() string

func (*PermissionRequest) GetToolUseId added in v1.16.0

func (x *PermissionRequest) GetToolUseId() string

func (*PermissionRequest) GetTurnId added in v1.16.0

func (x *PermissionRequest) GetTurnId() string

func (*PermissionRequest) GetWorkingDirectory added in v1.16.0

func (x *PermissionRequest) GetWorkingDirectory() string

func (*PermissionRequest) ProtoMessage added in v1.16.0

func (*PermissionRequest) ProtoMessage()

func (*PermissionRequest) ProtoReflect added in v1.16.0

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

func (*PermissionRequest) Reset added in v1.16.0

func (x *PermissionRequest) Reset()

func (*PermissionRequest) String added in v1.16.0

func (x *PermissionRequest) String() string

type PlanEvent added in v1.16.0

type PlanEvent struct {
	PlanId   string `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
	Slug     string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"`
	Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
	// "pending", "approved", "rejected", …
	Status  string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	Version int32  `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
	// The plan itself, on submission.
	Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

PlanEvent is a plan document submitted by the model, or its status change.

func (*PlanEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use PlanEvent.ProtoReflect.Descriptor instead.

func (*PlanEvent) GetContent added in v1.16.0

func (x *PlanEvent) GetContent() string

func (*PlanEvent) GetFilename added in v1.16.0

func (x *PlanEvent) GetFilename() string

func (*PlanEvent) GetPlanId added in v1.16.0

func (x *PlanEvent) GetPlanId() string

func (*PlanEvent) GetSlug added in v1.16.0

func (x *PlanEvent) GetSlug() string

func (*PlanEvent) GetStatus added in v1.16.0

func (x *PlanEvent) GetStatus() string

func (*PlanEvent) GetVersion added in v1.16.0

func (x *PlanEvent) GetVersion() int32

func (*PlanEvent) ProtoMessage added in v1.16.0

func (*PlanEvent) ProtoMessage()

func (*PlanEvent) ProtoReflect added in v1.16.0

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

func (*PlanEvent) Reset added in v1.16.0

func (x *PlanEvent) Reset()

func (*PlanEvent) String added in v1.16.0

func (x *PlanEvent) String() string

type PromptOption added in v1.16.0

type PromptOption struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// The value returned when this option is chosen.
	Value       *structpb.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Description string          `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

PromptOption is one choice of a choice prompt.

func (*PromptOption) Descriptor deprecated added in v1.16.0

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

Deprecated: Use PromptOption.ProtoReflect.Descriptor instead.

func (*PromptOption) GetDescription added in v1.16.0

func (x *PromptOption) GetDescription() string

func (*PromptOption) GetLabel added in v1.16.0

func (x *PromptOption) GetLabel() string

func (*PromptOption) GetValue added in v1.16.0

func (x *PromptOption) GetValue() *structpb.Value

func (*PromptOption) ProtoMessage added in v1.16.0

func (*PromptOption) ProtoMessage()

func (*PromptOption) ProtoReflect added in v1.16.0

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

func (*PromptOption) Reset added in v1.16.0

func (x *PromptOption) Reset()

func (*PromptOption) String added in v1.16.0

func (x *PromptOption) String() string

type PromptRequest added in v1.16.0

type PromptRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	TurnId    string `protobuf:"bytes,3,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	// "text", "choice" or "confirm".
	Type    string          `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Message string          `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	Options []*PromptOption `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"`
	// The value to use when the user accepts the default.
	DefaultValue *structpb.Value `protobuf:"bytes,7,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	// Context the tool attached to the question.
	Metadata *structpb.Struct `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// When the server gives up on this request.
	ExpiresAt      *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	AgentToolUseId string                 `protobuf:"bytes,10,opt,name=agent_tool_use_id,json=agentToolUseId,proto3" json:"agent_tool_use_id,omitempty"`
	// contains filtered or unexported fields
}

PromptRequest is a question a tool asks the user. Answer it with SessionService.RespondPrompt and the request_id below.

func (*PromptRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use PromptRequest.ProtoReflect.Descriptor instead.

func (*PromptRequest) GetAgentToolUseId added in v1.16.0

func (x *PromptRequest) GetAgentToolUseId() string

func (*PromptRequest) GetDefaultValue added in v1.16.0

func (x *PromptRequest) GetDefaultValue() *structpb.Value

func (*PromptRequest) GetExpiresAt added in v1.16.0

func (x *PromptRequest) GetExpiresAt() *timestamppb.Timestamp

func (*PromptRequest) GetMessage added in v1.16.0

func (x *PromptRequest) GetMessage() string

func (*PromptRequest) GetMetadata added in v1.16.0

func (x *PromptRequest) GetMetadata() *structpb.Struct

func (*PromptRequest) GetOptions added in v1.16.0

func (x *PromptRequest) GetOptions() []*PromptOption

func (*PromptRequest) GetRequestId added in v1.16.0

func (x *PromptRequest) GetRequestId() string

func (*PromptRequest) GetSessionId added in v1.16.0

func (x *PromptRequest) GetSessionId() string

func (*PromptRequest) GetTurnId added in v1.16.0

func (x *PromptRequest) GetTurnId() string

func (*PromptRequest) GetType added in v1.16.0

func (x *PromptRequest) GetType() string

func (*PromptRequest) ProtoMessage added in v1.16.0

func (*PromptRequest) ProtoMessage()

func (*PromptRequest) ProtoReflect added in v1.16.0

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

func (*PromptRequest) Reset added in v1.16.0

func (x *PromptRequest) Reset()

func (*PromptRequest) String added in v1.16.0

func (x *PromptRequest) String() string

type ProviderInfo added in v1.16.0

type ProviderInfo struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Configured bool   `protobuf:"varint,2,opt,name=configured,proto3" json:"configured,omitempty"`
	ModelCount int32  `protobuf:"varint,3,opt,name=model_count,json=modelCount,proto3" json:"model_count,omitempty"`
	// contains filtered or unexported fields
}

ProviderInfo is one provider.

func (*ProviderInfo) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ProviderInfo.ProtoReflect.Descriptor instead.

func (*ProviderInfo) GetConfigured added in v1.16.0

func (x *ProviderInfo) GetConfigured() bool

func (*ProviderInfo) GetModelCount added in v1.16.0

func (x *ProviderInfo) GetModelCount() int32

func (*ProviderInfo) GetName added in v1.16.0

func (x *ProviderInfo) GetName() string

func (*ProviderInfo) ProtoMessage added in v1.16.0

func (*ProviderInfo) ProtoMessage()

func (*ProviderInfo) ProtoReflect added in v1.16.0

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

func (*ProviderInfo) Reset added in v1.16.0

func (x *ProviderInfo) Reset()

func (*ProviderInfo) String added in v1.16.0

func (x *ProviderInfo) String() string

type ProviderRetry added in v1.16.0

type ProviderRetry struct {

	// Number of the attempt about to be made (2 for the first retry).
	Attempt     int32 `protobuf:"varint,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
	MaxAttempts int32 `protobuf:"varint,2,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"`
	WaitMs      int64 `protobuf:"varint,3,opt,name=wait_ms,json=waitMs,proto3" json:"wait_ms,omitempty"`
	// "rate limited (429)", "server error (503)", "connection error", …
	Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

ProviderRetry says the runtime is waiting before asking the provider again.

func (*ProviderRetry) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ProviderRetry.ProtoReflect.Descriptor instead.

func (*ProviderRetry) GetAttempt added in v1.16.0

func (x *ProviderRetry) GetAttempt() int32

func (*ProviderRetry) GetMaxAttempts added in v1.16.0

func (x *ProviderRetry) GetMaxAttempts() int32

func (*ProviderRetry) GetReason added in v1.16.0

func (x *ProviderRetry) GetReason() string

func (*ProviderRetry) GetWaitMs added in v1.16.0

func (x *ProviderRetry) GetWaitMs() int64

func (*ProviderRetry) ProtoMessage added in v1.16.0

func (*ProviderRetry) ProtoMessage()

func (*ProviderRetry) ProtoReflect added in v1.16.0

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

func (*ProviderRetry) Reset added in v1.16.0

func (x *ProviderRetry) Reset()

func (*ProviderRetry) String added in v1.16.0

func (x *ProviderRetry) String() string

type QueryRequest

type QueryRequest struct {
	Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"`
	// "provider:model"; empty uses the server's default.
	Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	// Restrict the turn to these tools.
	Tools []string `protobuf:"bytes,3,rep,name=tools,proto3" json:"tools,omitempty"`
	// Ignored: the method called (Query or QueryStream) decides.
	//
	// Deprecated: Marked as deprecated in seshat.proto.
	Stream bool `protobuf:"varint,4,opt,name=stream,proto3" json:"stream,omitempty"`
	// Load this session instead of creating a throwaway one.
	ContextId string `protobuf:"bytes,5,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"`
	// Ignored: not transmitted to the model.
	//
	// Deprecated: Marked as deprecated in seshat.proto.
	Temperature float32 `protobuf:"fixed32,10,opt,name=temperature,proto3" json:"temperature,omitempty"`
	// Maximum output tokens.
	MaxTokens int32 `protobuf:"varint,11,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// Provider credential for this call.
	ApiKey string `protobuf:"bytes,12,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	// contains filtered or unexported fields
}

QueryRequest is the single-turn request of the legacy Query/QueryStream.

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetApiKey

func (x *QueryRequest) GetApiKey() string

func (*QueryRequest) GetContextId

func (x *QueryRequest) GetContextId() string

func (*QueryRequest) GetMaxTokens

func (x *QueryRequest) GetMaxTokens() int32

func (*QueryRequest) GetModel

func (x *QueryRequest) GetModel() string

func (*QueryRequest) GetPrompt

func (x *QueryRequest) GetPrompt() string

func (*QueryRequest) GetStream deprecated

func (x *QueryRequest) GetStream() bool

Deprecated: Marked as deprecated in seshat.proto.

func (*QueryRequest) GetTemperature deprecated

func (x *QueryRequest) GetTemperature() float32

Deprecated: Marked as deprecated in seshat.proto.

func (*QueryRequest) GetTools

func (x *QueryRequest) GetTools() []string

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
	Content        string      `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Model          string      `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	TokenUsage     *TokenUsage `protobuf:"bytes,3,opt,name=token_usage,json=tokenUsage,proto3" json:"token_usage,omitempty"`
	ConversationId string      `protobuf:"bytes,10,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	Stopped        bool        `protobuf:"varint,11,opt,name=stopped,proto3" json:"stopped,omitempty"`
	// "chunk", "runtime_event" or "final".
	ItemType     string        `protobuf:"bytes,12,opt,name=item_type,json=itemType,proto3" json:"item_type,omitempty"`
	Chunk        *ChunkDelta   `protobuf:"bytes,13,opt,name=chunk,proto3" json:"chunk,omitempty"`
	RuntimeEvent *RuntimeEvent `protobuf:"bytes,14,opt,name=runtime_event,json=runtimeEvent,proto3" json:"runtime_event,omitempty"`
	// contains filtered or unexported fields
}

QueryResponse is the legacy single-turn response.

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetChunk

func (x *QueryResponse) GetChunk() *ChunkDelta

func (*QueryResponse) GetContent

func (x *QueryResponse) GetContent() string

func (*QueryResponse) GetConversationId

func (x *QueryResponse) GetConversationId() string

func (*QueryResponse) GetItemType

func (x *QueryResponse) GetItemType() string

func (*QueryResponse) GetModel

func (x *QueryResponse) GetModel() string

func (*QueryResponse) GetRuntimeEvent

func (x *QueryResponse) GetRuntimeEvent() *RuntimeEvent

func (*QueryResponse) GetStopped

func (x *QueryResponse) GetStopped() bool

func (*QueryResponse) GetTokenUsage

func (x *QueryResponse) GetTokenUsage() *TokenUsage

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type RawEvent added in v1.16.0

type RawEvent struct {
	Type  string           `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Data  *structpb.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Error string           `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

RawEvent is an event this contract does not name yet. `type` is the engine's own type string and `data` is its JSON payload, so a client can log it, show it, or ignore it without failing.

func (*RawEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use RawEvent.ProtoReflect.Descriptor instead.

func (*RawEvent) GetData added in v1.16.0

func (x *RawEvent) GetData() *structpb.Struct

func (*RawEvent) GetError added in v1.16.0

func (x *RawEvent) GetError() string

func (*RawEvent) GetType added in v1.16.0

func (x *RawEvent) GetType() string

func (*RawEvent) ProtoMessage added in v1.16.0

func (*RawEvent) ProtoMessage()

func (*RawEvent) ProtoReflect added in v1.16.0

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

func (*RawEvent) Reset added in v1.16.0

func (x *RawEvent) Reset()

func (*RawEvent) String added in v1.16.0

func (x *RawEvent) String() string

type ReconnectMCPRequest added in v1.16.0

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

func (*ReconnectMCPRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ReconnectMCPRequest.ProtoReflect.Descriptor instead.

func (*ReconnectMCPRequest) GetName added in v1.16.0

func (x *ReconnectMCPRequest) GetName() string

func (*ReconnectMCPRequest) ProtoMessage added in v1.16.0

func (*ReconnectMCPRequest) ProtoMessage()

func (*ReconnectMCPRequest) ProtoReflect added in v1.16.0

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

func (*ReconnectMCPRequest) Reset added in v1.16.0

func (x *ReconnectMCPRequest) Reset()

func (*ReconnectMCPRequest) String added in v1.16.0

func (x *ReconnectMCPRequest) String() string

type ReconnectMCPResponse added in v1.16.0

type ReconnectMCPResponse struct {
	Success bool       `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string     `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Server  *MCPServer `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*ReconnectMCPResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ReconnectMCPResponse.ProtoReflect.Descriptor instead.

func (*ReconnectMCPResponse) GetError added in v1.16.0

func (x *ReconnectMCPResponse) GetError() string

func (*ReconnectMCPResponse) GetServer added in v1.16.0

func (x *ReconnectMCPResponse) GetServer() *MCPServer

func (*ReconnectMCPResponse) GetSuccess added in v1.16.0

func (x *ReconnectMCPResponse) GetSuccess() bool

func (*ReconnectMCPResponse) ProtoMessage added in v1.16.0

func (*ReconnectMCPResponse) ProtoMessage()

func (*ReconnectMCPResponse) ProtoReflect added in v1.16.0

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

func (*ReconnectMCPResponse) Reset added in v1.16.0

func (x *ReconnectMCPResponse) Reset()

func (*ReconnectMCPResponse) String added in v1.16.0

func (x *ReconnectMCPResponse) String() string

type RespondPermissionRequest added in v1.16.0

type RespondPermissionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// "allow" lets this call through, "allow_session" also remembers the
	// decision for the session, "deny" refuses it (any other value denies).
	Decision string `protobuf:"bytes,3,opt,name=decision,proto3" json:"decision,omitempty"`
	// Why it was denied; shown to the model.
	Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*RespondPermissionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use RespondPermissionRequest.ProtoReflect.Descriptor instead.

func (*RespondPermissionRequest) GetDecision added in v1.16.0

func (x *RespondPermissionRequest) GetDecision() string

func (*RespondPermissionRequest) GetReason added in v1.16.0

func (x *RespondPermissionRequest) GetReason() string

func (*RespondPermissionRequest) GetRequestId added in v1.16.0

func (x *RespondPermissionRequest) GetRequestId() string

func (*RespondPermissionRequest) GetSessionId added in v1.16.0

func (x *RespondPermissionRequest) GetSessionId() string

func (*RespondPermissionRequest) ProtoMessage added in v1.16.0

func (*RespondPermissionRequest) ProtoMessage()

func (*RespondPermissionRequest) ProtoReflect added in v1.16.0

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

func (*RespondPermissionRequest) Reset added in v1.16.0

func (x *RespondPermissionRequest) Reset()

func (*RespondPermissionRequest) String added in v1.16.0

func (x *RespondPermissionRequest) String() string

type RespondPromptRequest added in v1.16.0

type RespondPromptRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The answer: a string for a text prompt, the chosen PromptOption.value for
	// a choice, a bool for a confirm.
	Value *structpb.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// True when the user dismissed the question.
	Cancelled bool             `protobuf:"varint,4,opt,name=cancelled,proto3" json:"cancelled,omitempty"`
	Metadata  *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*RespondPromptRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use RespondPromptRequest.ProtoReflect.Descriptor instead.

func (*RespondPromptRequest) GetCancelled added in v1.16.0

func (x *RespondPromptRequest) GetCancelled() bool

func (*RespondPromptRequest) GetMetadata added in v1.16.0

func (x *RespondPromptRequest) GetMetadata() *structpb.Struct

func (*RespondPromptRequest) GetRequestId added in v1.16.0

func (x *RespondPromptRequest) GetRequestId() string

func (*RespondPromptRequest) GetSessionId added in v1.16.0

func (x *RespondPromptRequest) GetSessionId() string

func (*RespondPromptRequest) GetValue added in v1.16.0

func (x *RespondPromptRequest) GetValue() *structpb.Value

func (*RespondPromptRequest) ProtoMessage added in v1.16.0

func (*RespondPromptRequest) ProtoMessage()

func (*RespondPromptRequest) ProtoReflect added in v1.16.0

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

func (*RespondPromptRequest) Reset added in v1.16.0

func (x *RespondPromptRequest) Reset()

func (*RespondPromptRequest) String added in v1.16.0

func (x *RespondPromptRequest) String() string

type RetrieveContextRequest added in v1.16.0

type RetrieveContextRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Query  string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// Cap of the returned block, in tokens (0 uses the server's default).
	MaxTokens int32 `protobuf:"varint,3,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveContextRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use RetrieveContextRequest.ProtoReflect.Descriptor instead.

func (*RetrieveContextRequest) GetMaxTokens added in v1.16.0

func (x *RetrieveContextRequest) GetMaxTokens() int32

func (*RetrieveContextRequest) GetQuery added in v1.16.0

func (x *RetrieveContextRequest) GetQuery() string

func (*RetrieveContextRequest) GetUserId added in v1.16.0

func (x *RetrieveContextRequest) GetUserId() string

func (*RetrieveContextRequest) ProtoMessage added in v1.16.0

func (*RetrieveContextRequest) ProtoMessage()

func (*RetrieveContextRequest) ProtoReflect added in v1.16.0

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

func (*RetrieveContextRequest) Reset added in v1.16.0

func (x *RetrieveContextRequest) Reset()

func (*RetrieveContextRequest) String added in v1.16.0

func (x *RetrieveContextRequest) String() string

type RetrieveContextResponse added in v1.16.0

type RetrieveContextResponse struct {
	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	Found   bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveContextResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use RetrieveContextResponse.ProtoReflect.Descriptor instead.

func (*RetrieveContextResponse) GetContext added in v1.16.0

func (x *RetrieveContextResponse) GetContext() string

func (*RetrieveContextResponse) GetFound added in v1.16.0

func (x *RetrieveContextResponse) GetFound() bool

func (*RetrieveContextResponse) ProtoMessage added in v1.16.0

func (*RetrieveContextResponse) ProtoMessage()

func (*RetrieveContextResponse) ProtoReflect added in v1.16.0

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

func (*RetrieveContextResponse) Reset added in v1.16.0

func (x *RetrieveContextResponse) Reset()

func (*RetrieveContextResponse) String added in v1.16.0

func (x *RetrieveContextResponse) String() string

type RunWorkflowRequest added in v1.16.0

type RunWorkflowRequest struct {
	Definition string `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	// How many nodes may run at once (0 uses the server's default).
	MaxParallel int32 `protobuf:"varint,2,opt,name=max_parallel,json=maxParallel,proto3" json:"max_parallel,omitempty"`
	// "provider:model" for the agents that run the nodes.
	Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

func (*RunWorkflowRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use RunWorkflowRequest.ProtoReflect.Descriptor instead.

func (*RunWorkflowRequest) GetDefinition added in v1.16.0

func (x *RunWorkflowRequest) GetDefinition() string

func (*RunWorkflowRequest) GetMaxParallel added in v1.16.0

func (x *RunWorkflowRequest) GetMaxParallel() int32

func (*RunWorkflowRequest) GetModel added in v1.16.0

func (x *RunWorkflowRequest) GetModel() string

func (*RunWorkflowRequest) ProtoMessage added in v1.16.0

func (*RunWorkflowRequest) ProtoMessage()

func (*RunWorkflowRequest) ProtoReflect added in v1.16.0

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

func (*RunWorkflowRequest) Reset added in v1.16.0

func (x *RunWorkflowRequest) Reset()

func (*RunWorkflowRequest) String added in v1.16.0

func (x *RunWorkflowRequest) String() string

type RuntimeEvent

type RuntimeEvent struct {
	Type                string      `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	SessionId           string      `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	TurnId              string      `protobuf:"bytes,3,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	TurnNumber          int32       `protobuf:"varint,4,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	Timestamp           string      `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	StopReason          string      `protobuf:"bytes,6,opt,name=stop_reason,json=stopReason,proto3" json:"stop_reason,omitempty"`
	TokenUsage          *TokenUsage `protobuf:"bytes,7,opt,name=token_usage,json=tokenUsage,proto3" json:"token_usage,omitempty"`
	Chunk               *ChunkDelta `protobuf:"bytes,8,opt,name=chunk,proto3" json:"chunk,omitempty"`
	ToolName            string      `protobuf:"bytes,9,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	ToolStage           string      `protobuf:"bytes,10,opt,name=tool_stage,json=toolStage,proto3" json:"tool_stage,omitempty"`
	ToolMessage         string      `protobuf:"bytes,11,opt,name=tool_message,json=toolMessage,proto3" json:"tool_message,omitempty"`
	ToolPercentComplete float32     `protobuf:"fixed32,12,opt,name=tool_percent_complete,json=toolPercentComplete,proto3" json:"tool_percent_complete,omitempty"`
	Error               string      `protobuf:"bytes,13,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

RuntimeEvent is the legacy envelope of a streamed event. New clients read SessionEvent instead, which carries the same information plus request ids.

func (*RuntimeEvent) Descriptor deprecated

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

Deprecated: Use RuntimeEvent.ProtoReflect.Descriptor instead.

func (*RuntimeEvent) GetChunk

func (x *RuntimeEvent) GetChunk() *ChunkDelta

func (*RuntimeEvent) GetError

func (x *RuntimeEvent) GetError() string

func (*RuntimeEvent) GetSessionId

func (x *RuntimeEvent) GetSessionId() string

func (*RuntimeEvent) GetStopReason

func (x *RuntimeEvent) GetStopReason() string

func (*RuntimeEvent) GetTimestamp

func (x *RuntimeEvent) GetTimestamp() string

func (*RuntimeEvent) GetTokenUsage

func (x *RuntimeEvent) GetTokenUsage() *TokenUsage

func (*RuntimeEvent) GetToolMessage

func (x *RuntimeEvent) GetToolMessage() string

func (*RuntimeEvent) GetToolName

func (x *RuntimeEvent) GetToolName() string

func (*RuntimeEvent) GetToolPercentComplete

func (x *RuntimeEvent) GetToolPercentComplete() float32

func (*RuntimeEvent) GetToolStage

func (x *RuntimeEvent) GetToolStage() string

func (*RuntimeEvent) GetTurnId

func (x *RuntimeEvent) GetTurnId() string

func (*RuntimeEvent) GetTurnNumber

func (x *RuntimeEvent) GetTurnNumber() int32

func (*RuntimeEvent) GetType

func (x *RuntimeEvent) GetType() string

func (*RuntimeEvent) ProtoMessage

func (*RuntimeEvent) ProtoMessage()

func (*RuntimeEvent) ProtoReflect

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

func (*RuntimeEvent) Reset

func (x *RuntimeEvent) Reset()

func (*RuntimeEvent) String

func (x *RuntimeEvent) String() string

type SearchMemoryRequest added in v1.16.0

type SearchMemoryRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Query  string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchMemoryRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SearchMemoryRequest.ProtoReflect.Descriptor instead.

func (*SearchMemoryRequest) GetQuery added in v1.16.0

func (x *SearchMemoryRequest) GetQuery() string

func (*SearchMemoryRequest) GetUserId added in v1.16.0

func (x *SearchMemoryRequest) GetUserId() string

func (*SearchMemoryRequest) ProtoMessage added in v1.16.0

func (*SearchMemoryRequest) ProtoMessage()

func (*SearchMemoryRequest) ProtoReflect added in v1.16.0

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

func (*SearchMemoryRequest) Reset added in v1.16.0

func (x *SearchMemoryRequest) Reset()

func (*SearchMemoryRequest) String added in v1.16.0

func (x *SearchMemoryRequest) String() string

type SearchSessionsRequest added in v1.16.0

type SearchSessionsRequest struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// Maximum number of sessions to return (0 means the server's default).
	Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchSessionsRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SearchSessionsRequest.ProtoReflect.Descriptor instead.

func (*SearchSessionsRequest) GetLimit added in v1.16.0

func (x *SearchSessionsRequest) GetLimit() int32

func (*SearchSessionsRequest) GetQuery added in v1.16.0

func (x *SearchSessionsRequest) GetQuery() string

func (*SearchSessionsRequest) ProtoMessage added in v1.16.0

func (*SearchSessionsRequest) ProtoMessage()

func (*SearchSessionsRequest) ProtoReflect added in v1.16.0

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

func (*SearchSessionsRequest) Reset added in v1.16.0

func (x *SearchSessionsRequest) Reset()

func (*SearchSessionsRequest) String added in v1.16.0

func (x *SearchSessionsRequest) String() string

type SearchSessionsResponse added in v1.16.0

type SearchSessionsResponse struct {
	SessionIds []string       `protobuf:"bytes,1,rep,name=session_ids,json=sessionIds,proto3" json:"session_ids,omitempty"`
	Sessions   []*SessionInfo `protobuf:"bytes,2,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchSessionsResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SearchSessionsResponse.ProtoReflect.Descriptor instead.

func (*SearchSessionsResponse) GetSessionIds added in v1.16.0

func (x *SearchSessionsResponse) GetSessionIds() []string

func (*SearchSessionsResponse) GetSessions added in v1.16.0

func (x *SearchSessionsResponse) GetSessions() []*SessionInfo

func (*SearchSessionsResponse) ProtoMessage added in v1.16.0

func (*SearchSessionsResponse) ProtoMessage()

func (*SearchSessionsResponse) ProtoReflect added in v1.16.0

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

func (*SearchSessionsResponse) Reset added in v1.16.0

func (x *SearchSessionsResponse) Reset()

func (*SearchSessionsResponse) String added in v1.16.0

func (x *SearchSessionsResponse) String() string

type SeshatServiceClient

type SeshatServiceClient interface {
	// Liveness and version of the server.
	HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
	// What this server is: version, model, working directory, enabled features.
	GetServerInfo(ctx context.Context, in *GetServerInfoRequest, opts ...grpc.CallOption) (*GetServerInfoResponse, error)
	// Models the provider registry knows, with their provider.
	GetModels(ctx context.Context, in *GetModelsRequest, opts ...grpc.CallOption) (*GetModelsResponse, error)
	// Skills available to the runtime (bundled, file, managed, MCP).
	ListSkills(ctx context.Context, in *ListSkillsRequest, opts ...grpc.CallOption) (*ListSkillsResponse, error)
	// One skill, optionally with its content.
	GetSkillDetails(ctx context.Context, in *GetSkillDetailsRequest, opts ...grpc.CallOption) (*GetSkillDetailsResponse, error)
	// MCP servers known to this server and their status.
	ListMCP(ctx context.Context, in *ListMCPRequest, opts ...grpc.CallOption) (*ListMCPResponse, error)
	// Connect an MCP server (and persist it in the user's configuration).
	ConnectMCP(ctx context.Context, in *ConnectMCPRequest, opts ...grpc.CallOption) (*ConnectMCPResponse, error)
	// Disconnect a running MCP server.
	DisconnectMCP(ctx context.Context, in *DisconnectMCPRequest, opts ...grpc.CallOption) (*DisconnectMCPResponse, error)
	// Reconnect a configured MCP server.
	ReconnectMCP(ctx context.Context, in *ReconnectMCPRequest, opts ...grpc.CallOption) (*ReconnectMCPResponse, error)
	// Open a new conversation. The returned Session is attached to the server;
	// use SessionService for everything that happens inside it.
	CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*Session, error)
	// Conversations persisted by this server, most recently updated first.
	ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
	// One conversation's current state.
	GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*Session, error)
	// Conversations whose stored transcript contains a text.
	SearchSessions(ctx context.Context, in *SearchSessionsRequest, opts ...grpc.CallOption) (*SearchSessionsResponse, error)
	// Delete a conversation and the artifacts it stored.
	DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionResponse, error)
	// Single-turn query on a throwaway session. Kept for clients written against
	// the previous contract; prefer CreateSession + SubmitMessage, which reuses
	// one engine instead of building one per call.
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	// Streaming form of Query. Prefer SessionService.SubmitMessageStream: it
	// carries approvals and questions, which this legacy stream does not.
	QueryStream(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[QueryResponse], error)
}

SeshatServiceClient is the client API for SeshatService 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.

SeshatService is the server-wide surface: it answers for the runtime itself and hands out sessions.

type SeshatServiceServer

type SeshatServiceServer interface {
	// Liveness and version of the server.
	HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
	// What this server is: version, model, working directory, enabled features.
	GetServerInfo(context.Context, *GetServerInfoRequest) (*GetServerInfoResponse, error)
	// Models the provider registry knows, with their provider.
	GetModels(context.Context, *GetModelsRequest) (*GetModelsResponse, error)
	// Skills available to the runtime (bundled, file, managed, MCP).
	ListSkills(context.Context, *ListSkillsRequest) (*ListSkillsResponse, error)
	// One skill, optionally with its content.
	GetSkillDetails(context.Context, *GetSkillDetailsRequest) (*GetSkillDetailsResponse, error)
	// MCP servers known to this server and their status.
	ListMCP(context.Context, *ListMCPRequest) (*ListMCPResponse, error)
	// Connect an MCP server (and persist it in the user's configuration).
	ConnectMCP(context.Context, *ConnectMCPRequest) (*ConnectMCPResponse, error)
	// Disconnect a running MCP server.
	DisconnectMCP(context.Context, *DisconnectMCPRequest) (*DisconnectMCPResponse, error)
	// Reconnect a configured MCP server.
	ReconnectMCP(context.Context, *ReconnectMCPRequest) (*ReconnectMCPResponse, error)
	// Open a new conversation. The returned Session is attached to the server;
	// use SessionService for everything that happens inside it.
	CreateSession(context.Context, *CreateSessionRequest) (*Session, error)
	// Conversations persisted by this server, most recently updated first.
	ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
	// One conversation's current state.
	GetSession(context.Context, *GetSessionRequest) (*Session, error)
	// Conversations whose stored transcript contains a text.
	SearchSessions(context.Context, *SearchSessionsRequest) (*SearchSessionsResponse, error)
	// Delete a conversation and the artifacts it stored.
	DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error)
	// Single-turn query on a throwaway session. Kept for clients written against
	// the previous contract; prefer CreateSession + SubmitMessage, which reuses
	// one engine instead of building one per call.
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
	// Streaming form of Query. Prefer SessionService.SubmitMessageStream: it
	// carries approvals and questions, which this legacy stream does not.
	QueryStream(*QueryRequest, grpc.ServerStreamingServer[QueryResponse]) error
	// contains filtered or unexported methods
}

SeshatServiceServer is the server API for SeshatService service. All implementations must embed UnimplementedSeshatServiceServer for forward compatibility.

SeshatService is the server-wide surface: it answers for the runtime itself and hands out sessions.

type SeshatService_QueryStreamClient

type SeshatService_QueryStreamClient = grpc.ServerStreamingClient[QueryResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SeshatService_QueryStreamServer

type SeshatService_QueryStreamServer = grpc.ServerStreamingServer[QueryResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Session added in v1.16.0

type Session struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// "active" or "closed".
	Status    string                 `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// "provider:model" the session runs on.
	Model       string `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"`
	WorkingDir  string `protobuf:"bytes,7,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
	TurnNumber  int32  `protobuf:"varint,8,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	TotalTokens int64  `protobuf:"varint,9,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	// See PermissionMode values in docs/sdk.md.
	PermissionMode string `protobuf:"bytes,10,opt,name=permission_mode,json=permissionMode,proto3" json:"permission_mode,omitempty"`
	// "execute" or "plan".
	ExecutionMode string `protobuf:"bytes,11,opt,name=execution_mode,json=executionMode,proto3" json:"execution_mode,omitempty"`
	// Tools available in the session.
	Tools []string `protobuf:"bytes,12,rep,name=tools,proto3" json:"tools,omitempty"`
	// Whether this server can decide permission prompts itself (auto mode with
	// a classifier); a client that shows an approval UI still receives them.
	AutoModeAvailable bool         `protobuf:"varint,13,opt,name=auto_mode_available,json=autoModeAvailable,proto3" json:"auto_mode_available,omitempty"`
	Info              *SessionInfo `protobuf:"bytes,14,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

Session is a conversation attached to the server.

func (*Session) Descriptor deprecated added in v1.16.0

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetAutoModeAvailable added in v1.16.0

func (x *Session) GetAutoModeAvailable() bool

func (*Session) GetCreatedAt added in v1.16.0

func (x *Session) GetCreatedAt() *timestamppb.Timestamp

func (*Session) GetExecutionMode added in v1.16.0

func (x *Session) GetExecutionMode() string

func (*Session) GetId added in v1.16.0

func (x *Session) GetId() string

func (*Session) GetInfo added in v1.16.0

func (x *Session) GetInfo() *SessionInfo

func (*Session) GetModel added in v1.16.0

func (x *Session) GetModel() string

func (*Session) GetPermissionMode added in v1.16.0

func (x *Session) GetPermissionMode() string

func (*Session) GetStatus added in v1.16.0

func (x *Session) GetStatus() string

func (*Session) GetTitle added in v1.16.0

func (x *Session) GetTitle() string

func (*Session) GetTools added in v1.16.0

func (x *Session) GetTools() []string

func (*Session) GetTotalTokens added in v1.16.0

func (x *Session) GetTotalTokens() int64

func (*Session) GetTurnNumber added in v1.16.0

func (x *Session) GetTurnNumber() int32

func (*Session) GetUpdatedAt added in v1.16.0

func (x *Session) GetUpdatedAt() *timestamppb.Timestamp

func (*Session) GetWorkingDir added in v1.16.0

func (x *Session) GetWorkingDir() string

func (*Session) ProtoMessage added in v1.16.0

func (*Session) ProtoMessage()

func (*Session) ProtoReflect added in v1.16.0

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

func (*Session) Reset added in v1.16.0

func (x *Session) Reset()

func (*Session) String added in v1.16.0

func (x *Session) String() string

type SessionEvent added in v1.16.0

type SessionEvent struct {

	// Unique, stable identifier of this event.
	EventId   string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Monotonic per session; send it back as SubscribeRequest.from_sequence to
	// resume a stream without a gap.
	Sequence   uint64                 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Timestamp  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	TurnId     string                 `protobuf:"bytes,5,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	TurnNumber int32                  `protobuf:"varint,6,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	// The engine's own event type ("turn.started", "response.chunk",
	// "tool.progress", "plan.submitted", …).
	Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
	// Set when the event comes from a sub-agent.
	AgentToolUseId string `protobuf:"bytes,8,opt,name=agent_tool_use_id,json=agentToolUseId,proto3" json:"agent_tool_use_id,omitempty"`
	// Types that are valid to be assigned to Payload:
	//
	//	*SessionEvent_TurnStarted
	//	*SessionEvent_Chunk
	//	*SessionEvent_ToolProgress
	//	*SessionEvent_PermissionRequest
	//	*SessionEvent_PromptRequest
	//	*SessionEvent_Plan
	//	*SessionEvent_Task
	//	*SessionEvent_Stage
	//	*SessionEvent_ProviderRetry
	//	*SessionEvent_Compaction
	//	*SessionEvent_ContextUsage
	//	*SessionEvent_TurnCompleted
	//	*SessionEvent_TurnFailed
	//	*SessionEvent_Agent
	//	*SessionEvent_Goal
	//	*SessionEvent_Browser
	//	*SessionEvent_Raw
	Payload isSessionEvent_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

SessionEvent is one thing that happened in a session.

func (*SessionEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SessionEvent.ProtoReflect.Descriptor instead.

func (*SessionEvent) GetAgent added in v1.16.0

func (x *SessionEvent) GetAgent() *AgentEvent

func (*SessionEvent) GetAgentToolUseId added in v1.16.0

func (x *SessionEvent) GetAgentToolUseId() string

func (*SessionEvent) GetBrowser added in v1.16.0

func (x *SessionEvent) GetBrowser() *BrowserEvent

func (*SessionEvent) GetChunk added in v1.16.0

func (x *SessionEvent) GetChunk() *ChunkDelta

func (*SessionEvent) GetCompaction added in v1.16.0

func (x *SessionEvent) GetCompaction() *CompactionEvent

func (*SessionEvent) GetContextUsage added in v1.16.0

func (x *SessionEvent) GetContextUsage() *ContextUsage

func (*SessionEvent) GetEventId added in v1.16.0

func (x *SessionEvent) GetEventId() string

func (*SessionEvent) GetGoal added in v1.16.0

func (x *SessionEvent) GetGoal() *GoalEvent

func (*SessionEvent) GetPayload added in v1.16.0

func (x *SessionEvent) GetPayload() isSessionEvent_Payload

func (*SessionEvent) GetPermissionRequest added in v1.16.0

func (x *SessionEvent) GetPermissionRequest() *PermissionRequest

func (*SessionEvent) GetPlan added in v1.16.0

func (x *SessionEvent) GetPlan() *PlanEvent

func (*SessionEvent) GetPromptRequest added in v1.16.0

func (x *SessionEvent) GetPromptRequest() *PromptRequest

func (*SessionEvent) GetProviderRetry added in v1.16.0

func (x *SessionEvent) GetProviderRetry() *ProviderRetry

func (*SessionEvent) GetRaw added in v1.16.0

func (x *SessionEvent) GetRaw() *RawEvent

func (*SessionEvent) GetSequence added in v1.16.0

func (x *SessionEvent) GetSequence() uint64

func (*SessionEvent) GetSessionId added in v1.16.0

func (x *SessionEvent) GetSessionId() string

func (*SessionEvent) GetStage added in v1.16.0

func (x *SessionEvent) GetStage() *StageEvent

func (*SessionEvent) GetTask added in v1.16.0

func (x *SessionEvent) GetTask() *TaskEvent

func (*SessionEvent) GetTimestamp added in v1.16.0

func (x *SessionEvent) GetTimestamp() *timestamppb.Timestamp

func (*SessionEvent) GetToolProgress added in v1.16.0

func (x *SessionEvent) GetToolProgress() *ToolProgress

func (*SessionEvent) GetTurnCompleted added in v1.16.0

func (x *SessionEvent) GetTurnCompleted() *TurnCompleted

func (*SessionEvent) GetTurnFailed added in v1.16.0

func (x *SessionEvent) GetTurnFailed() *TurnFailed

func (*SessionEvent) GetTurnId added in v1.16.0

func (x *SessionEvent) GetTurnId() string

func (*SessionEvent) GetTurnNumber added in v1.16.0

func (x *SessionEvent) GetTurnNumber() int32

func (*SessionEvent) GetTurnStarted added in v1.16.0

func (x *SessionEvent) GetTurnStarted() *TurnStarted

func (*SessionEvent) GetType added in v1.16.0

func (x *SessionEvent) GetType() string

func (*SessionEvent) ProtoMessage added in v1.16.0

func (*SessionEvent) ProtoMessage()

func (*SessionEvent) ProtoReflect added in v1.16.0

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

func (*SessionEvent) Reset added in v1.16.0

func (x *SessionEvent) Reset()

func (*SessionEvent) String added in v1.16.0

func (x *SessionEvent) String() string

type SessionEvent_Agent added in v1.16.0

type SessionEvent_Agent struct {
	Agent *AgentEvent `protobuf:"bytes,23,opt,name=agent,proto3,oneof"`
}

type SessionEvent_Browser added in v1.16.0

type SessionEvent_Browser struct {
	Browser *BrowserEvent `protobuf:"bytes,25,opt,name=browser,proto3,oneof"`
}

type SessionEvent_Chunk added in v1.16.0

type SessionEvent_Chunk struct {
	Chunk *ChunkDelta `protobuf:"bytes,11,opt,name=chunk,proto3,oneof"`
}

type SessionEvent_Compaction added in v1.16.0

type SessionEvent_Compaction struct {
	Compaction *CompactionEvent `protobuf:"bytes,19,opt,name=compaction,proto3,oneof"`
}

type SessionEvent_ContextUsage added in v1.16.0

type SessionEvent_ContextUsage struct {
	ContextUsage *ContextUsage `protobuf:"bytes,20,opt,name=context_usage,json=contextUsage,proto3,oneof"`
}

type SessionEvent_Goal added in v1.16.0

type SessionEvent_Goal struct {
	Goal *GoalEvent `protobuf:"bytes,24,opt,name=goal,proto3,oneof"`
}

type SessionEvent_PermissionRequest added in v1.16.0

type SessionEvent_PermissionRequest struct {
	PermissionRequest *PermissionRequest `protobuf:"bytes,13,opt,name=permission_request,json=permissionRequest,proto3,oneof"`
}

type SessionEvent_Plan added in v1.16.0

type SessionEvent_Plan struct {
	Plan *PlanEvent `protobuf:"bytes,15,opt,name=plan,proto3,oneof"`
}

type SessionEvent_PromptRequest added in v1.16.0

type SessionEvent_PromptRequest struct {
	PromptRequest *PromptRequest `protobuf:"bytes,14,opt,name=prompt_request,json=promptRequest,proto3,oneof"`
}

type SessionEvent_ProviderRetry added in v1.16.0

type SessionEvent_ProviderRetry struct {
	ProviderRetry *ProviderRetry `protobuf:"bytes,18,opt,name=provider_retry,json=providerRetry,proto3,oneof"`
}

type SessionEvent_Raw added in v1.16.0

type SessionEvent_Raw struct {
	Raw *RawEvent `protobuf:"bytes,99,opt,name=raw,proto3,oneof"`
}

type SessionEvent_Stage added in v1.16.0

type SessionEvent_Stage struct {
	Stage *StageEvent `protobuf:"bytes,17,opt,name=stage,proto3,oneof"`
}

type SessionEvent_Task added in v1.16.0

type SessionEvent_Task struct {
	Task *TaskEvent `protobuf:"bytes,16,opt,name=task,proto3,oneof"`
}

type SessionEvent_ToolProgress added in v1.16.0

type SessionEvent_ToolProgress struct {
	ToolProgress *ToolProgress `protobuf:"bytes,12,opt,name=tool_progress,json=toolProgress,proto3,oneof"`
}

type SessionEvent_TurnCompleted added in v1.16.0

type SessionEvent_TurnCompleted struct {
	TurnCompleted *TurnCompleted `protobuf:"bytes,21,opt,name=turn_completed,json=turnCompleted,proto3,oneof"`
}

type SessionEvent_TurnFailed added in v1.16.0

type SessionEvent_TurnFailed struct {
	TurnFailed *TurnFailed `protobuf:"bytes,22,opt,name=turn_failed,json=turnFailed,proto3,oneof"`
}

type SessionEvent_TurnStarted added in v1.16.0

type SessionEvent_TurnStarted struct {
	TurnStarted *TurnStarted `protobuf:"bytes,10,opt,name=turn_started,json=turnStarted,proto3,oneof"`
}

type SessionInfo added in v1.16.0

type SessionInfo struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// "active" or "closed".
	Status      string                 `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	TotalTurns  int32                  `protobuf:"varint,6,opt,name=total_turns,json=totalTurns,proto3" json:"total_turns,omitempty"`
	TotalTokens int64                  `protobuf:"varint,7,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	// First user message, truncated.
	Preview string `protobuf:"bytes,8,opt,name=preview,proto3" json:"preview,omitempty"`
	// True for a session a sub-agent or a background task ran in.
	Subagent bool `protobuf:"varint,9,opt,name=subagent,proto3" json:"subagent,omitempty"`
	// The session that launched this one, when it was recorded.
	ParentId string `protobuf:"bytes,10,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// contains filtered or unexported fields
}

SessionInfo is the summary of a stored conversation.

func (*SessionInfo) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.

func (*SessionInfo) GetCreatedAt added in v1.16.0

func (x *SessionInfo) GetCreatedAt() *timestamppb.Timestamp

func (*SessionInfo) GetId added in v1.16.0

func (x *SessionInfo) GetId() string

func (*SessionInfo) GetParentId added in v1.16.0

func (x *SessionInfo) GetParentId() string

func (*SessionInfo) GetPreview added in v1.16.0

func (x *SessionInfo) GetPreview() string

func (*SessionInfo) GetStatus added in v1.16.0

func (x *SessionInfo) GetStatus() string

func (*SessionInfo) GetSubagent added in v1.16.0

func (x *SessionInfo) GetSubagent() bool

func (*SessionInfo) GetTitle added in v1.16.0

func (x *SessionInfo) GetTitle() string

func (*SessionInfo) GetTotalTokens added in v1.16.0

func (x *SessionInfo) GetTotalTokens() int64

func (*SessionInfo) GetTotalTurns added in v1.16.0

func (x *SessionInfo) GetTotalTurns() int32

func (*SessionInfo) GetUpdatedAt added in v1.16.0

func (x *SessionInfo) GetUpdatedAt() *timestamppb.Timestamp

func (*SessionInfo) ProtoMessage added in v1.16.0

func (*SessionInfo) ProtoMessage()

func (*SessionInfo) ProtoReflect added in v1.16.0

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

func (*SessionInfo) Reset added in v1.16.0

func (x *SessionInfo) Reset()

func (*SessionInfo) String added in v1.16.0

func (x *SessionInfo) String() string

type SessionMetadata added in v1.16.0

type SessionMetadata struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Status      string                 `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	RootPath    string                 `protobuf:"bytes,6,opt,name=root_path,json=rootPath,proto3" json:"root_path,omitempty"`
	Model       string                 `protobuf:"bytes,7,opt,name=model,proto3" json:"model,omitempty"`
	TotalTurns  int32                  `protobuf:"varint,8,opt,name=total_turns,json=totalTurns,proto3" json:"total_turns,omitempty"`
	TotalTokens int64                  `protobuf:"varint,9,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	// Context window of the current model.
	MaxTokens       int32                  `protobuf:"varint,10,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	CompactCount    int32                  `protobuf:"varint,11,opt,name=compact_count,json=compactCount,proto3" json:"compact_count,omitempty"`
	LastCompactedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_compacted_at,json=lastCompactedAt,proto3" json:"last_compacted_at,omitempty"`
	// contains filtered or unexported fields
}

SessionMetadata is what a session records about itself.

func (*SessionMetadata) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SessionMetadata.ProtoReflect.Descriptor instead.

func (*SessionMetadata) GetCompactCount added in v1.16.0

func (x *SessionMetadata) GetCompactCount() int32

func (*SessionMetadata) GetCreatedAt added in v1.16.0

func (x *SessionMetadata) GetCreatedAt() *timestamppb.Timestamp

func (*SessionMetadata) GetId added in v1.16.0

func (x *SessionMetadata) GetId() string

func (*SessionMetadata) GetLastCompactedAt added in v1.16.0

func (x *SessionMetadata) GetLastCompactedAt() *timestamppb.Timestamp

func (*SessionMetadata) GetMaxTokens added in v1.16.0

func (x *SessionMetadata) GetMaxTokens() int32

func (*SessionMetadata) GetModel added in v1.16.0

func (x *SessionMetadata) GetModel() string

func (*SessionMetadata) GetRootPath added in v1.16.0

func (x *SessionMetadata) GetRootPath() string

func (*SessionMetadata) GetStatus added in v1.16.0

func (x *SessionMetadata) GetStatus() string

func (*SessionMetadata) GetTitle added in v1.16.0

func (x *SessionMetadata) GetTitle() string

func (*SessionMetadata) GetTotalTokens added in v1.16.0

func (x *SessionMetadata) GetTotalTokens() int64

func (*SessionMetadata) GetTotalTurns added in v1.16.0

func (x *SessionMetadata) GetTotalTurns() int32

func (*SessionMetadata) GetUpdatedAt added in v1.16.0

func (x *SessionMetadata) GetUpdatedAt() *timestamppb.Timestamp

func (*SessionMetadata) ProtoMessage added in v1.16.0

func (*SessionMetadata) ProtoMessage()

func (*SessionMetadata) ProtoReflect added in v1.16.0

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

func (*SessionMetadata) Reset added in v1.16.0

func (x *SessionMetadata) Reset()

func (*SessionMetadata) String added in v1.16.0

func (x *SessionMetadata) String() string

type SessionServiceClient added in v1.16.0

type SessionServiceClient interface {
	// Run a turn and wait for its result. Interactive turns (a permission or a
	// question) cannot be answered from a unary call: use
	// SubmitMessageStream for those, or answer through another connection.
	SubmitMessage(ctx context.Context, in *SubmitMessageRequest, opts ...grpc.CallOption) (*TurnResult, error)
	// Run a turn, streaming every event of it. The last message is
	// TurnCompleted or TurnFailed.
	SubmitMessageStream(ctx context.Context, in *SubmitMessageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SessionEvent], error)
	// Follow a session's events without starting a turn.
	Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SessionEvent], error)
	// The messages the model sees, in order.
	GetMessages(ctx context.Context, in *GetMessagesRequest, opts ...grpc.CallOption) (*GetMessagesResponse, error)
	// The whole conversation, including what compactions archived.
	GetHistory(ctx context.Context, in *GetHistoryRequest, opts ...grpc.CallOption) (*GetHistoryResponse, error)
	// Session state: modes, counters, tools.
	GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*SessionState, error)
	// Stop the turn that is running.
	Interrupt(ctx context.Context, in *InterruptRequest, opts ...grpc.CallOption) (*Ack, error)
	// Compact the conversation now instead of at the automatic threshold.
	Compact(ctx context.Context, in *CompactRequest, opts ...grpc.CallOption) (*CompactResponse, error)
	// End the session and release what it holds.
	Close(ctx context.Context, in *CloseSessionRequest, opts ...grpc.CallOption) (*Ack, error)
	// Change the permission mode from the next tool call on.
	SetPermissionMode(ctx context.Context, in *SetPermissionModeRequest, opts ...grpc.CallOption) (*Ack, error)
	// Change the directory the file and shell tools work in.
	SetWorkingDirectory(ctx context.Context, in *SetWorkingDirectoryRequest, opts ...grpc.CallOption) (*Ack, error)
	// Replace or extend the system prompt of this session.
	SetSystemPrompt(ctx context.Context, in *SetSystemPromptRequest, opts ...grpc.CallOption) (*Ack, error)
	// Enter or leave plan mode.
	SetPlanMode(ctx context.Context, in *SetPlanModeRequest, opts ...grpc.CallOption) (*Ack, error)
	// Record the user's acceptance of a submitted plan.
	ApprovePlan(ctx context.Context, in *ApprovePlanRequest, opts ...grpc.CallOption) (*Ack, error)
	// Tools available in this session.
	ListTools(ctx context.Context, in *ListToolsRequest, opts ...grpc.CallOption) (*ListToolsResponse, error)
	// Restrict the session to a set of tools (the others are unregistered).
	SetTools(ctx context.Context, in *SetToolsRequest, opts ...grpc.CallOption) (*Ack, error)
	// Answer a permission_request event.
	RespondPermission(ctx context.Context, in *RespondPermissionRequest, opts ...grpc.CallOption) (*Ack, error)
	// Answer a prompt_request event (a question a tool asks the user).
	RespondPrompt(ctx context.Context, in *RespondPromptRequest, opts ...grpc.CallOption) (*Ack, error)
}

SessionServiceClient is the client API for SessionService 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.

SessionService is everything that happens inside one conversation.

func NewSessionServiceClient added in v1.16.0

func NewSessionServiceClient(cc grpc.ClientConnInterface) SessionServiceClient

type SessionServiceServer added in v1.16.0

type SessionServiceServer interface {
	// Run a turn and wait for its result. Interactive turns (a permission or a
	// question) cannot be answered from a unary call: use
	// SubmitMessageStream for those, or answer through another connection.
	SubmitMessage(context.Context, *SubmitMessageRequest) (*TurnResult, error)
	// Run a turn, streaming every event of it. The last message is
	// TurnCompleted or TurnFailed.
	SubmitMessageStream(*SubmitMessageRequest, grpc.ServerStreamingServer[SessionEvent]) error
	// Follow a session's events without starting a turn.
	Subscribe(*SubscribeRequest, grpc.ServerStreamingServer[SessionEvent]) error
	// The messages the model sees, in order.
	GetMessages(context.Context, *GetMessagesRequest) (*GetMessagesResponse, error)
	// The whole conversation, including what compactions archived.
	GetHistory(context.Context, *GetHistoryRequest) (*GetHistoryResponse, error)
	// Session state: modes, counters, tools.
	GetState(context.Context, *GetStateRequest) (*SessionState, error)
	// Stop the turn that is running.
	Interrupt(context.Context, *InterruptRequest) (*Ack, error)
	// Compact the conversation now instead of at the automatic threshold.
	Compact(context.Context, *CompactRequest) (*CompactResponse, error)
	// End the session and release what it holds.
	Close(context.Context, *CloseSessionRequest) (*Ack, error)
	// Change the permission mode from the next tool call on.
	SetPermissionMode(context.Context, *SetPermissionModeRequest) (*Ack, error)
	// Change the directory the file and shell tools work in.
	SetWorkingDirectory(context.Context, *SetWorkingDirectoryRequest) (*Ack, error)
	// Replace or extend the system prompt of this session.
	SetSystemPrompt(context.Context, *SetSystemPromptRequest) (*Ack, error)
	// Enter or leave plan mode.
	SetPlanMode(context.Context, *SetPlanModeRequest) (*Ack, error)
	// Record the user's acceptance of a submitted plan.
	ApprovePlan(context.Context, *ApprovePlanRequest) (*Ack, error)
	// Tools available in this session.
	ListTools(context.Context, *ListToolsRequest) (*ListToolsResponse, error)
	// Restrict the session to a set of tools (the others are unregistered).
	SetTools(context.Context, *SetToolsRequest) (*Ack, error)
	// Answer a permission_request event.
	RespondPermission(context.Context, *RespondPermissionRequest) (*Ack, error)
	// Answer a prompt_request event (a question a tool asks the user).
	RespondPrompt(context.Context, *RespondPromptRequest) (*Ack, error)
	// contains filtered or unexported methods
}

SessionServiceServer is the server API for SessionService service. All implementations must embed UnimplementedSessionServiceServer for forward compatibility.

SessionService is everything that happens inside one conversation.

type SessionService_SubmitMessageStreamClient added in v1.16.0

type SessionService_SubmitMessageStreamClient = grpc.ServerStreamingClient[SessionEvent]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SessionService_SubmitMessageStreamServer added in v1.16.0

type SessionService_SubmitMessageStreamServer = grpc.ServerStreamingServer[SessionEvent]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SessionService_SubscribeClient added in v1.16.0

type SessionService_SubscribeClient = grpc.ServerStreamingClient[SessionEvent]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SessionService_SubscribeServer added in v1.16.0

type SessionService_SubscribeServer = grpc.ServerStreamingServer[SessionEvent]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SessionState added in v1.16.0

type SessionState struct {
	Metadata          *SessionMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	PermissionMode    string           `protobuf:"bytes,2,opt,name=permission_mode,json=permissionMode,proto3" json:"permission_mode,omitempty"`
	ExecutionMode     string           `protobuf:"bytes,3,opt,name=execution_mode,json=executionMode,proto3" json:"execution_mode,omitempty"`
	TurnNumber        int32            `protobuf:"varint,4,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	TotalTokens       int64            `protobuf:"varint,5,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	Tools             []string         `protobuf:"bytes,6,rep,name=tools,proto3" json:"tools,omitempty"`
	AutoModeAvailable bool             `protobuf:"varint,7,opt,name=auto_mode_available,json=autoModeAvailable,proto3" json:"auto_mode_available,omitempty"`
	// contains filtered or unexported fields
}

SessionState is the live state of an attached session.

func (*SessionState) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SessionState.ProtoReflect.Descriptor instead.

func (*SessionState) GetAutoModeAvailable added in v1.16.0

func (x *SessionState) GetAutoModeAvailable() bool

func (*SessionState) GetExecutionMode added in v1.16.0

func (x *SessionState) GetExecutionMode() string

func (*SessionState) GetMetadata added in v1.16.0

func (x *SessionState) GetMetadata() *SessionMetadata

func (*SessionState) GetPermissionMode added in v1.16.0

func (x *SessionState) GetPermissionMode() string

func (*SessionState) GetTools added in v1.16.0

func (x *SessionState) GetTools() []string

func (*SessionState) GetTotalTokens added in v1.16.0

func (x *SessionState) GetTotalTokens() int64

func (*SessionState) GetTurnNumber added in v1.16.0

func (x *SessionState) GetTurnNumber() int32

func (*SessionState) ProtoMessage added in v1.16.0

func (*SessionState) ProtoMessage()

func (*SessionState) ProtoReflect added in v1.16.0

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

func (*SessionState) Reset added in v1.16.0

func (x *SessionState) Reset()

func (*SessionState) String added in v1.16.0

func (x *SessionState) String() string

type SetPermissionModeRequest added in v1.16.0

type SetPermissionModeRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// "bypass", "auto", "acceptEdits", "onRequest", "never", "granular".
	Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPermissionModeRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SetPermissionModeRequest.ProtoReflect.Descriptor instead.

func (*SetPermissionModeRequest) GetMode added in v1.16.0

func (x *SetPermissionModeRequest) GetMode() string

func (*SetPermissionModeRequest) GetSessionId added in v1.16.0

func (x *SetPermissionModeRequest) GetSessionId() string

func (*SetPermissionModeRequest) ProtoMessage added in v1.16.0

func (*SetPermissionModeRequest) ProtoMessage()

func (*SetPermissionModeRequest) ProtoReflect added in v1.16.0

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

func (*SetPermissionModeRequest) Reset added in v1.16.0

func (x *SetPermissionModeRequest) Reset()

func (*SetPermissionModeRequest) String added in v1.16.0

func (x *SetPermissionModeRequest) String() string

type SetPlanModeRequest added in v1.16.0

type SetPlanModeRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// True to enter plan mode, false to leave it.
	Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPlanModeRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SetPlanModeRequest.ProtoReflect.Descriptor instead.

func (*SetPlanModeRequest) GetEnabled added in v1.16.0

func (x *SetPlanModeRequest) GetEnabled() bool

func (*SetPlanModeRequest) GetSessionId added in v1.16.0

func (x *SetPlanModeRequest) GetSessionId() string

func (*SetPlanModeRequest) ProtoMessage added in v1.16.0

func (*SetPlanModeRequest) ProtoMessage()

func (*SetPlanModeRequest) ProtoReflect added in v1.16.0

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

func (*SetPlanModeRequest) Reset added in v1.16.0

func (x *SetPlanModeRequest) Reset()

func (*SetPlanModeRequest) String added in v1.16.0

func (x *SetPlanModeRequest) String() string

type SetSystemPromptRequest added in v1.16.0

type SetSystemPromptRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Replaces the default system prompt; empty clears the override. Not
	// applied when append is true.
	Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// Text appended to the system prompt.
	Append string `protobuf:"bytes,3,opt,name=append,proto3" json:"append,omitempty"`
	// True to apply `append` instead of `template`.
	AppendOnly bool `protobuf:"varint,4,opt,name=append_only,json=appendOnly,proto3" json:"append_only,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSystemPromptRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SetSystemPromptRequest.ProtoReflect.Descriptor instead.

func (*SetSystemPromptRequest) GetAppend added in v1.16.0

func (x *SetSystemPromptRequest) GetAppend() string

func (*SetSystemPromptRequest) GetAppendOnly added in v1.16.0

func (x *SetSystemPromptRequest) GetAppendOnly() bool

func (*SetSystemPromptRequest) GetSessionId added in v1.16.0

func (x *SetSystemPromptRequest) GetSessionId() string

func (*SetSystemPromptRequest) GetTemplate added in v1.16.0

func (x *SetSystemPromptRequest) GetTemplate() string

func (*SetSystemPromptRequest) ProtoMessage added in v1.16.0

func (*SetSystemPromptRequest) ProtoMessage()

func (*SetSystemPromptRequest) ProtoReflect added in v1.16.0

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

func (*SetSystemPromptRequest) Reset added in v1.16.0

func (x *SetSystemPromptRequest) Reset()

func (*SetSystemPromptRequest) String added in v1.16.0

func (x *SetSystemPromptRequest) String() string

type SetToolsRequest added in v1.16.0

type SetToolsRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// The tools to keep. Every other tool is unregistered from the session.
	Tools []string `protobuf:"bytes,2,rep,name=tools,proto3" json:"tools,omitempty"`
	// contains filtered or unexported fields
}

func (*SetToolsRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SetToolsRequest.ProtoReflect.Descriptor instead.

func (*SetToolsRequest) GetSessionId added in v1.16.0

func (x *SetToolsRequest) GetSessionId() string

func (*SetToolsRequest) GetTools added in v1.16.0

func (x *SetToolsRequest) GetTools() []string

func (*SetToolsRequest) ProtoMessage added in v1.16.0

func (*SetToolsRequest) ProtoMessage()

func (*SetToolsRequest) ProtoReflect added in v1.16.0

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

func (*SetToolsRequest) Reset added in v1.16.0

func (x *SetToolsRequest) Reset()

func (*SetToolsRequest) String added in v1.16.0

func (x *SetToolsRequest) String() string

type SetWorkingDirectoryRequest added in v1.16.0

type SetWorkingDirectoryRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Path      string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*SetWorkingDirectoryRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SetWorkingDirectoryRequest.ProtoReflect.Descriptor instead.

func (*SetWorkingDirectoryRequest) GetPath added in v1.16.0

func (x *SetWorkingDirectoryRequest) GetPath() string

func (*SetWorkingDirectoryRequest) GetSessionId added in v1.16.0

func (x *SetWorkingDirectoryRequest) GetSessionId() string

func (*SetWorkingDirectoryRequest) ProtoMessage added in v1.16.0

func (*SetWorkingDirectoryRequest) ProtoMessage()

func (*SetWorkingDirectoryRequest) ProtoReflect added in v1.16.0

func (*SetWorkingDirectoryRequest) Reset added in v1.16.0

func (x *SetWorkingDirectoryRequest) Reset()

func (*SetWorkingDirectoryRequest) String added in v1.16.0

func (x *SetWorkingDirectoryRequest) String() string

type Skill

type Skill 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"`
	// "bundled", "file", "managed", "mcp", …
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// When the model should use this skill.
	WhenToUse    string   `protobuf:"bytes,4,opt,name=when_to_use,json=whenToUse,proto3" json:"when_to_use,omitempty"`
	AllowedTools []string `protobuf:"bytes,5,rep,name=allowed_tools,json=allowedTools,proto3" json:"allowed_tools,omitempty"`
	// The skill's content (its prompt), when asked for.
	Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	Path    string `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Skill is a reusable instruction set the model can load.

func (*Skill) Descriptor deprecated

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

Deprecated: Use Skill.ProtoReflect.Descriptor instead.

func (*Skill) GetAllowedTools

func (x *Skill) GetAllowedTools() []string

func (*Skill) GetContent added in v1.16.0

func (x *Skill) GetContent() string

func (*Skill) GetDescription

func (x *Skill) GetDescription() string

func (*Skill) GetName

func (x *Skill) GetName() string

func (*Skill) GetPath added in v1.16.0

func (x *Skill) GetPath() string

func (*Skill) GetSource

func (x *Skill) GetSource() string

func (*Skill) GetWhenToUse

func (x *Skill) GetWhenToUse() string

func (*Skill) ProtoMessage

func (*Skill) ProtoMessage()

func (*Skill) ProtoReflect

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

func (*Skill) Reset

func (x *Skill) Reset()

func (*Skill) String

func (x *Skill) String() string

type StageEvent added in v1.16.0

type StageEvent struct {

	// Stable identifier: "tools", "session", "knowledge", …
	Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
	// Phrase a client can show as it is.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

StageEvent is a named phase of pre-generation setup ("loading tools", "searching knowledge").

func (*StageEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use StageEvent.ProtoReflect.Descriptor instead.

func (*StageEvent) GetLabel added in v1.16.0

func (x *StageEvent) GetLabel() string

func (*StageEvent) GetStage added in v1.16.0

func (x *StageEvent) GetStage() string

func (*StageEvent) ProtoMessage added in v1.16.0

func (*StageEvent) ProtoMessage()

func (*StageEvent) ProtoReflect added in v1.16.0

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

func (*StageEvent) Reset added in v1.16.0

func (x *StageEvent) Reset()

func (*StageEvent) String added in v1.16.0

func (x *StageEvent) String() string

type SubmitMessageRequest added in v1.16.0

type SubmitMessageRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// The user message.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// Images attached to the message.
	Images []*ImageBlock `protobuf:"bytes,3,rep,name=images,proto3" json:"images,omitempty"`
	// Stop the turn if no event is produced for this many seconds (0 uses the
	// server's default).
	IdleTimeoutSeconds int32 `protobuf:"varint,4,opt,name=idle_timeout_seconds,json=idleTimeoutSeconds,proto3" json:"idle_timeout_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitMessageRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SubmitMessageRequest.ProtoReflect.Descriptor instead.

func (*SubmitMessageRequest) GetIdleTimeoutSeconds added in v1.16.0

func (x *SubmitMessageRequest) GetIdleTimeoutSeconds() int32

func (*SubmitMessageRequest) GetImages added in v1.16.0

func (x *SubmitMessageRequest) GetImages() []*ImageBlock

func (*SubmitMessageRequest) GetSessionId added in v1.16.0

func (x *SubmitMessageRequest) GetSessionId() string

func (*SubmitMessageRequest) GetText added in v1.16.0

func (x *SubmitMessageRequest) GetText() string

func (*SubmitMessageRequest) ProtoMessage added in v1.16.0

func (*SubmitMessageRequest) ProtoMessage()

func (*SubmitMessageRequest) ProtoReflect added in v1.16.0

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

func (*SubmitMessageRequest) Reset added in v1.16.0

func (x *SubmitMessageRequest) Reset()

func (*SubmitMessageRequest) String added in v1.16.0

func (x *SubmitMessageRequest) String() string

type SubscribeRequest added in v1.16.0

type SubscribeRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Replay the buffered events that follow this sequence number. 0 starts at
	// the next event.
	FromSequence uint64 `protobuf:"varint,2,opt,name=from_sequence,json=fromSequence,proto3" json:"from_sequence,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetFromSequence added in v1.16.0

func (x *SubscribeRequest) GetFromSequence() uint64

func (*SubscribeRequest) GetSessionId added in v1.16.0

func (x *SubscribeRequest) GetSessionId() string

func (*SubscribeRequest) ProtoMessage added in v1.16.0

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect added in v1.16.0

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

func (*SubscribeRequest) Reset added in v1.16.0

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String added in v1.16.0

func (x *SubscribeRequest) String() string

type TaskEvent added in v1.16.0

type TaskEvent struct {
	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// "created", "updated", "completed", …
	Action  string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	Status  string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

TaskEvent is a change to the model's task list.

func (*TaskEvent) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TaskEvent.ProtoReflect.Descriptor instead.

func (*TaskEvent) GetAction added in v1.16.0

func (x *TaskEvent) GetAction() string

func (*TaskEvent) GetStatus added in v1.16.0

func (x *TaskEvent) GetStatus() string

func (*TaskEvent) GetSubject added in v1.16.0

func (x *TaskEvent) GetSubject() string

func (*TaskEvent) GetTaskId added in v1.16.0

func (x *TaskEvent) GetTaskId() string

func (*TaskEvent) ProtoMessage added in v1.16.0

func (*TaskEvent) ProtoMessage()

func (*TaskEvent) ProtoReflect added in v1.16.0

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

func (*TaskEvent) Reset added in v1.16.0

func (x *TaskEvent) Reset()

func (*TaskEvent) String added in v1.16.0

func (x *TaskEvent) String() string

type TextBlock added in v1.16.0

type TextBlock struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

TextBlock is plain text.

func (*TextBlock) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TextBlock.ProtoReflect.Descriptor instead.

func (*TextBlock) GetText added in v1.16.0

func (x *TextBlock) GetText() string

func (*TextBlock) ProtoMessage added in v1.16.0

func (*TextBlock) ProtoMessage()

func (*TextBlock) ProtoReflect added in v1.16.0

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

func (*TextBlock) Reset added in v1.16.0

func (x *TextBlock) Reset()

func (*TextBlock) String added in v1.16.0

func (x *TextBlock) String() string

type ThinkingBlock added in v1.16.0

type ThinkingBlock struct {
	Thinking string `protobuf:"bytes,1,opt,name=thinking,proto3" json:"thinking,omitempty"`
	// contains filtered or unexported fields
}

ThinkingBlock is reasoning the model produced (extended thinking).

func (*ThinkingBlock) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ThinkingBlock.ProtoReflect.Descriptor instead.

func (*ThinkingBlock) GetThinking added in v1.16.0

func (x *ThinkingBlock) GetThinking() string

func (*ThinkingBlock) ProtoMessage added in v1.16.0

func (*ThinkingBlock) ProtoMessage()

func (*ThinkingBlock) ProtoReflect added in v1.16.0

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

func (*ThinkingBlock) Reset added in v1.16.0

func (x *ThinkingBlock) Reset()

func (*ThinkingBlock) String added in v1.16.0

func (x *ThinkingBlock) String() string

type TokenUsage

type TokenUsage struct {
	InputTokens  int64 `protobuf:"varint,1,opt,name=input_tokens,json=inputTokens,proto3" json:"input_tokens,omitempty"`
	OutputTokens int64 `protobuf:"varint,2,opt,name=output_tokens,json=outputTokens,proto3" json:"output_tokens,omitempty"`
	TotalTokens  int64 `protobuf:"varint,3,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	// Tokens served from a provider cache.
	CachedTokens int64 `protobuf:"varint,4,opt,name=cached_tokens,json=cachedTokens,proto3" json:"cached_tokens,omitempty"`
	// Tokens read from the Anthropic prompt cache.
	CacheReadInputTokens int64 `` /* 126-byte string literal not displayed */
	// Tokens written into the Anthropic prompt cache.
	CacheCreationInputTokens int64 `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

TokenUsage is what one request cost.

func (*TokenUsage) Descriptor deprecated

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

Deprecated: Use TokenUsage.ProtoReflect.Descriptor instead.

func (*TokenUsage) GetCacheCreationInputTokens added in v1.16.0

func (x *TokenUsage) GetCacheCreationInputTokens() int64

func (*TokenUsage) GetCacheReadInputTokens added in v1.16.0

func (x *TokenUsage) GetCacheReadInputTokens() int64

func (*TokenUsage) GetCachedTokens added in v1.16.0

func (x *TokenUsage) GetCachedTokens() int64

func (*TokenUsage) GetInputTokens

func (x *TokenUsage) GetInputTokens() int64

func (*TokenUsage) GetOutputTokens

func (x *TokenUsage) GetOutputTokens() int64

func (*TokenUsage) GetTotalTokens

func (x *TokenUsage) GetTotalTokens() int64

func (*TokenUsage) ProtoMessage

func (*TokenUsage) ProtoMessage()

func (*TokenUsage) ProtoReflect

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

func (*TokenUsage) Reset

func (x *TokenUsage) Reset()

func (*TokenUsage) String

func (x *TokenUsage) String() string

type ToolInfo added in v1.16.0

type ToolInfo 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"`
	// False for a tool that was unregistered from this session.
	Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// True for a tool loaded on demand through tool_search.
	Deferred bool   `protobuf:"varint,4,opt,name=deferred,proto3" json:"deferred,omitempty"`
	Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

ToolInfo is one tool available in a session.

func (*ToolInfo) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ToolInfo.ProtoReflect.Descriptor instead.

func (*ToolInfo) GetCategory added in v1.16.0

func (x *ToolInfo) GetCategory() string

func (*ToolInfo) GetDeferred added in v1.16.0

func (x *ToolInfo) GetDeferred() bool

func (*ToolInfo) GetDescription added in v1.16.0

func (x *ToolInfo) GetDescription() string

func (*ToolInfo) GetEnabled added in v1.16.0

func (x *ToolInfo) GetEnabled() bool

func (*ToolInfo) GetName added in v1.16.0

func (x *ToolInfo) GetName() string

func (*ToolInfo) ProtoMessage added in v1.16.0

func (*ToolInfo) ProtoMessage()

func (*ToolInfo) ProtoReflect added in v1.16.0

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

func (*ToolInfo) Reset added in v1.16.0

func (x *ToolInfo) Reset()

func (*ToolInfo) String added in v1.16.0

func (x *ToolInfo) String() string

type ToolProgress added in v1.16.0

type ToolProgress struct {
	ToolName  string `protobuf:"bytes,1,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	ToolUseId string `protobuf:"bytes,2,opt,name=tool_use_id,json=toolUseId,proto3" json:"tool_use_id,omitempty"`
	// "pending", "running", "completed" or "failed".
	Stage string `protobuf:"bytes,3,opt,name=stage,proto3" json:"stage,omitempty"`
	// Human-readable message of what the tool is doing.
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// 0-100.
	PercentComplete float64 `protobuf:"fixed64,5,opt,name=percent_complete,json=percentComplete,proto3" json:"percent_complete,omitempty"`
	// Free-form details the tool publishes.
	Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

ToolProgress is the progress of a running tool.

func (*ToolProgress) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ToolProgress.ProtoReflect.Descriptor instead.

func (*ToolProgress) GetMessage added in v1.16.0

func (x *ToolProgress) GetMessage() string

func (*ToolProgress) GetMetadata added in v1.16.0

func (x *ToolProgress) GetMetadata() *structpb.Struct

func (*ToolProgress) GetPercentComplete added in v1.16.0

func (x *ToolProgress) GetPercentComplete() float64

func (*ToolProgress) GetStage added in v1.16.0

func (x *ToolProgress) GetStage() string

func (*ToolProgress) GetToolName added in v1.16.0

func (x *ToolProgress) GetToolName() string

func (*ToolProgress) GetToolUseId added in v1.16.0

func (x *ToolProgress) GetToolUseId() string

func (*ToolProgress) ProtoMessage added in v1.16.0

func (*ToolProgress) ProtoMessage()

func (*ToolProgress) ProtoReflect added in v1.16.0

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

func (*ToolProgress) Reset added in v1.16.0

func (x *ToolProgress) Reset()

func (*ToolProgress) String added in v1.16.0

func (x *ToolProgress) String() string

type ToolResult added in v1.16.0

type ToolResult struct {

	// The id of the ToolUse this answers.
	ToolUseId string `protobuf:"bytes,1,opt,name=tool_use_id,json=toolUseId,proto3" json:"tool_use_id,omitempty"`
	Content   string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	IsError   bool   `protobuf:"varint,3,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"`
	// contains filtered or unexported fields
}

ToolResult is what a tool call returned.

func (*ToolResult) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ToolResult.ProtoReflect.Descriptor instead.

func (*ToolResult) GetContent added in v1.16.0

func (x *ToolResult) GetContent() string

func (*ToolResult) GetIsError added in v1.16.0

func (x *ToolResult) GetIsError() bool

func (*ToolResult) GetToolUseId added in v1.16.0

func (x *ToolResult) GetToolUseId() string

func (*ToolResult) ProtoMessage added in v1.16.0

func (*ToolResult) ProtoMessage()

func (*ToolResult) ProtoReflect added in v1.16.0

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

func (*ToolResult) Reset added in v1.16.0

func (x *ToolResult) Reset()

func (*ToolResult) String added in v1.16.0

func (x *ToolResult) String() string

type ToolUse added in v1.16.0

type ToolUse struct {

	// The id that ties this call to its result.
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The tool input, as it was parsed.
	Input *structpb.Struct `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

ToolUse is the model asking for a tool call.

func (*ToolUse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use ToolUse.ProtoReflect.Descriptor instead.

func (*ToolUse) GetId added in v1.16.0

func (x *ToolUse) GetId() string

func (*ToolUse) GetInput added in v1.16.0

func (x *ToolUse) GetInput() *structpb.Struct

func (*ToolUse) GetName added in v1.16.0

func (x *ToolUse) GetName() string

func (*ToolUse) ProtoMessage added in v1.16.0

func (*ToolUse) ProtoMessage()

func (*ToolUse) ProtoReflect added in v1.16.0

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

func (*ToolUse) Reset added in v1.16.0

func (x *ToolUse) Reset()

func (*ToolUse) String added in v1.16.0

func (x *ToolUse) String() string

type TurnCompleted added in v1.16.0

type TurnCompleted struct {
	Result *TurnResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

TurnCompleted closes a turn successfully and carries its result.

func (*TurnCompleted) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TurnCompleted.ProtoReflect.Descriptor instead.

func (*TurnCompleted) GetResult added in v1.16.0

func (x *TurnCompleted) GetResult() *TurnResult

func (*TurnCompleted) ProtoMessage added in v1.16.0

func (*TurnCompleted) ProtoMessage()

func (*TurnCompleted) ProtoReflect added in v1.16.0

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

func (*TurnCompleted) Reset added in v1.16.0

func (x *TurnCompleted) Reset()

func (*TurnCompleted) String added in v1.16.0

func (x *TurnCompleted) String() string

type TurnFailed added in v1.16.0

type TurnFailed struct {

	// A gRPC status code name: "INTERNAL", "CANCELLED", "DEADLINE_EXCEEDED", …
	Code    string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

TurnFailed closes a turn that errored.

func (*TurnFailed) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TurnFailed.ProtoReflect.Descriptor instead.

func (*TurnFailed) GetCode added in v1.16.0

func (x *TurnFailed) GetCode() string

func (*TurnFailed) GetMessage added in v1.16.0

func (x *TurnFailed) GetMessage() string

func (*TurnFailed) ProtoMessage added in v1.16.0

func (*TurnFailed) ProtoMessage()

func (*TurnFailed) ProtoReflect added in v1.16.0

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

func (*TurnFailed) Reset added in v1.16.0

func (x *TurnFailed) Reset()

func (*TurnFailed) String added in v1.16.0

func (x *TurnFailed) String() string

type TurnResult added in v1.16.0

type TurnResult struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// The final assistant text of the turn.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// The whole transcript, as the model sees it after the turn.
	Messages []*Message  `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	Usage    *TokenUsage `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"`
	// "end_turn", "max_tokens", "stop_sequence", …
	StopReason string `protobuf:"bytes,5,opt,name=stop_reason,json=stopReason,proto3" json:"stop_reason,omitempty"`
	TurnNumber int32  `protobuf:"varint,6,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	IsComplete bool   `protobuf:"varint,7,opt,name=is_complete,json=isComplete,proto3" json:"is_complete,omitempty"`
	// True when auto-compaction ran during this turn.
	Compacted         bool          `protobuf:"varint,8,opt,name=compacted,proto3" json:"compacted,omitempty"`
	CompactPreTokens  int32         `protobuf:"varint,9,opt,name=compact_pre_tokens,json=compactPreTokens,proto3" json:"compact_pre_tokens,omitempty"`
	CompactPostTokens int32         `protobuf:"varint,10,opt,name=compact_post_tokens,json=compactPostTokens,proto3" json:"compact_post_tokens,omitempty"`
	ToolUses          []*ToolUse    `protobuf:"bytes,11,rep,name=tool_uses,json=toolUses,proto3" json:"tool_uses,omitempty"`
	ToolResults       []*ToolResult `protobuf:"bytes,12,rep,name=tool_results,json=toolResults,proto3" json:"tool_results,omitempty"`
	TotalTokens       int64         `protobuf:"varint,13,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	// Reasoning of the turn, when the model produced any.
	Thinking string `protobuf:"bytes,14,opt,name=thinking,proto3" json:"thinking,omitempty"`
	// contains filtered or unexported fields
}

TurnResult is the outcome of one turn: the model's answer, the tools it used, and the state of the conversation afterwards.

func (*TurnResult) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TurnResult.ProtoReflect.Descriptor instead.

func (*TurnResult) GetCompactPostTokens added in v1.16.0

func (x *TurnResult) GetCompactPostTokens() int32

func (*TurnResult) GetCompactPreTokens added in v1.16.0

func (x *TurnResult) GetCompactPreTokens() int32

func (*TurnResult) GetCompacted added in v1.16.0

func (x *TurnResult) GetCompacted() bool

func (*TurnResult) GetContent added in v1.16.0

func (x *TurnResult) GetContent() string

func (*TurnResult) GetIsComplete added in v1.16.0

func (x *TurnResult) GetIsComplete() bool

func (*TurnResult) GetMessages added in v1.16.0

func (x *TurnResult) GetMessages() []*Message

func (*TurnResult) GetSessionId added in v1.16.0

func (x *TurnResult) GetSessionId() string

func (*TurnResult) GetStopReason added in v1.16.0

func (x *TurnResult) GetStopReason() string

func (*TurnResult) GetThinking added in v1.16.0

func (x *TurnResult) GetThinking() string

func (*TurnResult) GetToolResults added in v1.16.0

func (x *TurnResult) GetToolResults() []*ToolResult

func (*TurnResult) GetToolUses added in v1.16.0

func (x *TurnResult) GetToolUses() []*ToolUse

func (*TurnResult) GetTotalTokens added in v1.16.0

func (x *TurnResult) GetTotalTokens() int64

func (*TurnResult) GetTurnNumber added in v1.16.0

func (x *TurnResult) GetTurnNumber() int32

func (*TurnResult) GetUsage added in v1.16.0

func (x *TurnResult) GetUsage() *TokenUsage

func (*TurnResult) ProtoMessage added in v1.16.0

func (*TurnResult) ProtoMessage()

func (*TurnResult) ProtoReflect added in v1.16.0

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

func (*TurnResult) Reset added in v1.16.0

func (x *TurnResult) Reset()

func (*TurnResult) String added in v1.16.0

func (x *TurnResult) String() string

type TurnStarted added in v1.16.0

type TurnStarted struct {
	TurnNumber    int32  `protobuf:"varint,1,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	TurnId        string `protobuf:"bytes,2,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	Model         string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
	ExecutionMode string `protobuf:"bytes,4,opt,name=execution_mode,json=executionMode,proto3" json:"execution_mode,omitempty"`
	// contains filtered or unexported fields
}

TurnStarted opens a turn.

func (*TurnStarted) Descriptor deprecated added in v1.16.0

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

Deprecated: Use TurnStarted.ProtoReflect.Descriptor instead.

func (*TurnStarted) GetExecutionMode added in v1.16.0

func (x *TurnStarted) GetExecutionMode() string

func (*TurnStarted) GetModel added in v1.16.0

func (x *TurnStarted) GetModel() string

func (*TurnStarted) GetTurnId added in v1.16.0

func (x *TurnStarted) GetTurnId() string

func (*TurnStarted) GetTurnNumber added in v1.16.0

func (x *TurnStarted) GetTurnNumber() int32

func (*TurnStarted) ProtoMessage added in v1.16.0

func (*TurnStarted) ProtoMessage()

func (*TurnStarted) ProtoReflect added in v1.16.0

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

func (*TurnStarted) Reset added in v1.16.0

func (x *TurnStarted) Reset()

func (*TurnStarted) String added in v1.16.0

func (x *TurnStarted) String() string

type UnimplementedMemoryServiceServer added in v1.16.0

type UnimplementedMemoryServiceServer struct{}

UnimplementedMemoryServiceServer 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 (UnimplementedMemoryServiceServer) AddObservations added in v1.16.0

func (UnimplementedMemoryServiceServer) OpenEntities added in v1.16.0

func (UnimplementedMemoryServiceServer) RetrieveContext added in v1.16.0

func (UnimplementedMemoryServiceServer) SearchMemory added in v1.16.0

func (UnimplementedMemoryServiceServer) UpsertEntities added in v1.16.0

type UnimplementedSeshatServiceServer

type UnimplementedSeshatServiceServer struct{}

UnimplementedSeshatServiceServer 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 (UnimplementedSeshatServiceServer) ConnectMCP

func (UnimplementedSeshatServiceServer) CreateSession added in v1.16.0

func (UnimplementedSeshatServiceServer) DeleteSession added in v1.16.0

func (UnimplementedSeshatServiceServer) DisconnectMCP

func (UnimplementedSeshatServiceServer) GetModels

func (UnimplementedSeshatServiceServer) GetServerInfo added in v1.16.0

func (UnimplementedSeshatServiceServer) GetSession added in v1.16.0

func (UnimplementedSeshatServiceServer) GetSkillDetails

func (UnimplementedSeshatServiceServer) HealthCheck

func (UnimplementedSeshatServiceServer) ListMCP

func (UnimplementedSeshatServiceServer) ListSessions added in v1.16.0

func (UnimplementedSeshatServiceServer) ListSkills

func (UnimplementedSeshatServiceServer) Query

func (UnimplementedSeshatServiceServer) QueryStream

func (UnimplementedSeshatServiceServer) ReconnectMCP added in v1.16.0

func (UnimplementedSeshatServiceServer) SearchSessions added in v1.16.0

type UnimplementedSessionServiceServer added in v1.16.0

type UnimplementedSessionServiceServer struct{}

UnimplementedSessionServiceServer 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 (UnimplementedSessionServiceServer) ApprovePlan added in v1.16.0

func (UnimplementedSessionServiceServer) Close added in v1.16.0

func (UnimplementedSessionServiceServer) Compact added in v1.16.0

func (UnimplementedSessionServiceServer) GetHistory added in v1.16.0

func (UnimplementedSessionServiceServer) GetMessages added in v1.16.0

func (UnimplementedSessionServiceServer) GetState added in v1.16.0

func (UnimplementedSessionServiceServer) Interrupt added in v1.16.0

func (UnimplementedSessionServiceServer) ListTools added in v1.16.0

func (UnimplementedSessionServiceServer) RespondPermission added in v1.16.0

func (UnimplementedSessionServiceServer) RespondPrompt added in v1.16.0

func (UnimplementedSessionServiceServer) SetPermissionMode added in v1.16.0

func (UnimplementedSessionServiceServer) SetPlanMode added in v1.16.0

func (UnimplementedSessionServiceServer) SetSystemPrompt added in v1.16.0

func (UnimplementedSessionServiceServer) SetTools added in v1.16.0

func (UnimplementedSessionServiceServer) SetWorkingDirectory added in v1.16.0

func (UnimplementedSessionServiceServer) SubmitMessage added in v1.16.0

func (UnimplementedSessionServiceServer) SubmitMessageStream added in v1.16.0

func (UnimplementedSessionServiceServer) Subscribe added in v1.16.0

type UnimplementedWorkflowServiceServer added in v1.16.0

type UnimplementedWorkflowServiceServer struct{}

UnimplementedWorkflowServiceServer 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 (UnimplementedWorkflowServiceServer) DraftWorkflow added in v1.16.0

func (UnimplementedWorkflowServiceServer) RunWorkflow added in v1.16.0

func (UnimplementedWorkflowServiceServer) ValidateWorkflow added in v1.16.0

type UnsafeMemoryServiceServer added in v1.16.0

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

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

type UnsafeSeshatServiceServer

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

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

type UnsafeSessionServiceServer added in v1.16.0

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

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

type UnsafeWorkflowServiceServer added in v1.16.0

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

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

type UpsertEntitiesRequest added in v1.16.0

type UpsertEntitiesRequest struct {

	// Whose memory this is; empty uses the shared user.
	UserId   string         `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Entities []*EntityInput `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertEntitiesRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use UpsertEntitiesRequest.ProtoReflect.Descriptor instead.

func (*UpsertEntitiesRequest) GetEntities added in v1.16.0

func (x *UpsertEntitiesRequest) GetEntities() []*EntityInput

func (*UpsertEntitiesRequest) GetUserId added in v1.16.0

func (x *UpsertEntitiesRequest) GetUserId() string

func (*UpsertEntitiesRequest) ProtoMessage added in v1.16.0

func (*UpsertEntitiesRequest) ProtoMessage()

func (*UpsertEntitiesRequest) ProtoReflect added in v1.16.0

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

func (*UpsertEntitiesRequest) Reset added in v1.16.0

func (x *UpsertEntitiesRequest) Reset()

func (*UpsertEntitiesRequest) String added in v1.16.0

func (x *UpsertEntitiesRequest) String() string

type UpsertEntitiesResponse added in v1.16.0

type UpsertEntitiesResponse struct {
	Created []*MemoryEntity `protobuf:"bytes,1,rep,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertEntitiesResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use UpsertEntitiesResponse.ProtoReflect.Descriptor instead.

func (*UpsertEntitiesResponse) GetCreated added in v1.16.0

func (x *UpsertEntitiesResponse) GetCreated() []*MemoryEntity

func (*UpsertEntitiesResponse) ProtoMessage added in v1.16.0

func (*UpsertEntitiesResponse) ProtoMessage()

func (*UpsertEntitiesResponse) ProtoReflect added in v1.16.0

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

func (*UpsertEntitiesResponse) Reset added in v1.16.0

func (x *UpsertEntitiesResponse) Reset()

func (*UpsertEntitiesResponse) String added in v1.16.0

func (x *UpsertEntitiesResponse) String() string

type WorkflowDefinitionRequest added in v1.16.0

type WorkflowDefinitionRequest struct {

	// The definition, as YAML or JSON.
	Definition string `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	// "yaml" or "json"; empty lets the server detect it.
	Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkflowDefinitionRequest) Descriptor deprecated added in v1.16.0

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

Deprecated: Use WorkflowDefinitionRequest.ProtoReflect.Descriptor instead.

func (*WorkflowDefinitionRequest) GetDefinition added in v1.16.0

func (x *WorkflowDefinitionRequest) GetDefinition() string

func (*WorkflowDefinitionRequest) GetFormat added in v1.16.0

func (x *WorkflowDefinitionRequest) GetFormat() string

func (*WorkflowDefinitionRequest) ProtoMessage added in v1.16.0

func (*WorkflowDefinitionRequest) ProtoMessage()

func (*WorkflowDefinitionRequest) ProtoReflect added in v1.16.0

func (*WorkflowDefinitionRequest) Reset added in v1.16.0

func (x *WorkflowDefinitionRequest) Reset()

func (*WorkflowDefinitionRequest) String added in v1.16.0

func (x *WorkflowDefinitionRequest) String() string

type WorkflowNodeResult added in v1.16.0

type WorkflowNodeResult struct {
	Id         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Agent      string                 `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"`
	Success    bool                   `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
	Output     string                 `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
	Error      string                 `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	StartedAt  *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkflowNodeResult) Descriptor deprecated added in v1.16.0

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

Deprecated: Use WorkflowNodeResult.ProtoReflect.Descriptor instead.

func (*WorkflowNodeResult) GetAgent added in v1.16.0

func (x *WorkflowNodeResult) GetAgent() string

func (*WorkflowNodeResult) GetError added in v1.16.0

func (x *WorkflowNodeResult) GetError() string

func (*WorkflowNodeResult) GetFinishedAt added in v1.16.0

func (x *WorkflowNodeResult) GetFinishedAt() *timestamppb.Timestamp

func (*WorkflowNodeResult) GetId added in v1.16.0

func (x *WorkflowNodeResult) GetId() string

func (*WorkflowNodeResult) GetOutput added in v1.16.0

func (x *WorkflowNodeResult) GetOutput() string

func (*WorkflowNodeResult) GetStartedAt added in v1.16.0

func (x *WorkflowNodeResult) GetStartedAt() *timestamppb.Timestamp

func (*WorkflowNodeResult) GetSuccess added in v1.16.0

func (x *WorkflowNodeResult) GetSuccess() bool

func (*WorkflowNodeResult) ProtoMessage added in v1.16.0

func (*WorkflowNodeResult) ProtoMessage()

func (*WorkflowNodeResult) ProtoReflect added in v1.16.0

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

func (*WorkflowNodeResult) Reset added in v1.16.0

func (x *WorkflowNodeResult) Reset()

func (*WorkflowNodeResult) String added in v1.16.0

func (x *WorkflowNodeResult) String() string

type WorkflowRunResponse added in v1.16.0

type WorkflowRunResponse struct {

	// True when every node succeeded.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// The result of each node, by id.
	Results map[string]*WorkflowNodeResult `` /* 141-byte string literal not displayed */
	// The order the nodes that ran finished in.
	Order []string `protobuf:"bytes,3,rep,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkflowRunResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use WorkflowRunResponse.ProtoReflect.Descriptor instead.

func (*WorkflowRunResponse) GetOrder added in v1.16.0

func (x *WorkflowRunResponse) GetOrder() []string

func (*WorkflowRunResponse) GetResults added in v1.16.0

func (x *WorkflowRunResponse) GetResults() map[string]*WorkflowNodeResult

func (*WorkflowRunResponse) GetSuccess added in v1.16.0

func (x *WorkflowRunResponse) GetSuccess() bool

func (*WorkflowRunResponse) ProtoMessage added in v1.16.0

func (*WorkflowRunResponse) ProtoMessage()

func (*WorkflowRunResponse) ProtoReflect added in v1.16.0

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

func (*WorkflowRunResponse) Reset added in v1.16.0

func (x *WorkflowRunResponse) Reset()

func (*WorkflowRunResponse) String added in v1.16.0

func (x *WorkflowRunResponse) String() string

type WorkflowServiceClient added in v1.16.0

type WorkflowServiceClient interface {
	// Check a workflow definition (YAML or JSON).
	ValidateWorkflow(ctx context.Context, in *WorkflowDefinitionRequest, opts ...grpc.CallOption) (*WorkflowValidationResponse, error)
	// Normalise a definition and render it back as YAML or JSON.
	DraftWorkflow(ctx context.Context, in *DraftWorkflowRequest, opts ...grpc.CallOption) (*DraftWorkflowResponse, error)
	// Run a definition, node by node, each node a turn of an agent.
	RunWorkflow(ctx context.Context, in *RunWorkflowRequest, opts ...grpc.CallOption) (*WorkflowRunResponse, error)
}

WorkflowServiceClient is the client API for WorkflowService 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.

WorkflowService runs a workflow: a set of prompts linked by their needs.

func NewWorkflowServiceClient added in v1.16.0

func NewWorkflowServiceClient(cc grpc.ClientConnInterface) WorkflowServiceClient

type WorkflowServiceServer added in v1.16.0

type WorkflowServiceServer interface {
	// Check a workflow definition (YAML or JSON).
	ValidateWorkflow(context.Context, *WorkflowDefinitionRequest) (*WorkflowValidationResponse, error)
	// Normalise a definition and render it back as YAML or JSON.
	DraftWorkflow(context.Context, *DraftWorkflowRequest) (*DraftWorkflowResponse, error)
	// Run a definition, node by node, each node a turn of an agent.
	RunWorkflow(context.Context, *RunWorkflowRequest) (*WorkflowRunResponse, error)
	// contains filtered or unexported methods
}

WorkflowServiceServer is the server API for WorkflowService service. All implementations must embed UnimplementedWorkflowServiceServer for forward compatibility.

WorkflowService runs a workflow: a set of prompts linked by their needs.

type WorkflowValidationResponse added in v1.16.0

type WorkflowValidationResponse struct {
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// Why it is invalid, or the list of problems found.
	Diagnostics string `protobuf:"bytes,2,opt,name=diagnostics,proto3" json:"diagnostics,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	NodeCount   int32  `protobuf:"varint,4,opt,name=node_count,json=nodeCount,proto3" json:"node_count,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkflowValidationResponse) Descriptor deprecated added in v1.16.0

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

Deprecated: Use WorkflowValidationResponse.ProtoReflect.Descriptor instead.

func (*WorkflowValidationResponse) GetDiagnostics added in v1.16.0

func (x *WorkflowValidationResponse) GetDiagnostics() string

func (*WorkflowValidationResponse) GetName added in v1.16.0

func (x *WorkflowValidationResponse) GetName() string

func (*WorkflowValidationResponse) GetNodeCount added in v1.16.0

func (x *WorkflowValidationResponse) GetNodeCount() int32

func (*WorkflowValidationResponse) GetValid added in v1.16.0

func (x *WorkflowValidationResponse) GetValid() bool

func (*WorkflowValidationResponse) ProtoMessage added in v1.16.0

func (*WorkflowValidationResponse) ProtoMessage()

func (*WorkflowValidationResponse) ProtoReflect added in v1.16.0

func (*WorkflowValidationResponse) Reset added in v1.16.0

func (x *WorkflowValidationResponse) Reset()

func (*WorkflowValidationResponse) String added in v1.16.0

func (x *WorkflowValidationResponse) String() string

Jump to

Keyboard shortcuts

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