Documentation
¶
Index ¶
- Variables
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest) GetAgent() string
- func (x *CreateSessionRequest) GetClientInfo() map[string]string
- func (x *CreateSessionRequest) GetCwd() string
- func (x *CreateSessionRequest) GetHostname() string
- func (x *CreateSessionRequest) GetUserId() string
- func (*CreateSessionRequest) ProtoMessage()
- func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest) Reset()
- func (x *CreateSessionRequest) String() string
- type CreateSessionResponse
- func (*CreateSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionResponse) GetAgentId() string
- func (x *CreateSessionResponse) GetOrganizationId() string
- func (x *CreateSessionResponse) GetSessionId() string
- func (x *CreateSessionResponse) GetSessionName() string
- func (*CreateSessionResponse) ProtoMessage()
- func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSessionResponse) Reset()
- func (x *CreateSessionResponse) String() string
- type Decision
- type EndSessionRequest
- type EndSessionResponse
- type HeartbeatRequest
- type HeartbeatResponse
- type ProcessHookEventRequest
- func (*ProcessHookEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessHookEventRequest) GetAgent() string
- func (x *ProcessHookEventRequest) GetCwd() string
- func (x *ProcessHookEventRequest) GetHookEvent() string
- func (x *ProcessHookEventRequest) GetSessionId() string
- func (x *ProcessHookEventRequest) GetToolInput() []byte
- func (x *ProcessHookEventRequest) GetToolName() string
- func (x *ProcessHookEventRequest) GetToolResponse() []byte
- func (x *ProcessHookEventRequest) GetToolUseId() string
- func (*ProcessHookEventRequest) ProtoMessage()
- func (x *ProcessHookEventRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessHookEventRequest) Reset()
- func (x *ProcessHookEventRequest) String() string
- type ProcessHookEventResponse
- func (*ProcessHookEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessHookEventResponse) GetDecision() Decision
- func (x *ProcessHookEventResponse) GetEventId() string
- func (x *ProcessHookEventResponse) GetReason() string
- func (*ProcessHookEventResponse) ProtoMessage()
- func (x *ProcessHookEventResponse) ProtoReflect() protoreflect.Message
- func (x *ProcessHookEventResponse) Reset()
- func (x *ProcessHookEventResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Decision_name = map[int32]string{ 0: "DECISION_UNSPECIFIED", 1: "DECISION_ALLOW", 2: "DECISION_DENY", 3: "DECISION_ASK", } Decision_value = map[string]int32{ "DECISION_UNSPECIFIED": 0, "DECISION_ALLOW": 1, "DECISION_DENY": 2, "DECISION_ASK": 3, } )
Enum value maps for Decision.
View Source
var File_kontext_agent_v1_agent_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CreateSessionRequest ¶
type CreateSessionRequest struct {
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // "claude", "cursor", "codex"
Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"`
Cwd string `protobuf:"bytes,4,opt,name=cwd,proto3" json:"cwd,omitempty"`
ClientInfo map[string]string `` /* 165-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CreateSessionRequest) Descriptor
deprecated
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetAgent ¶
func (x *CreateSessionRequest) GetAgent() string
func (*CreateSessionRequest) GetClientInfo ¶
func (x *CreateSessionRequest) GetClientInfo() map[string]string
func (*CreateSessionRequest) GetCwd ¶
func (x *CreateSessionRequest) GetCwd() string
func (*CreateSessionRequest) GetHostname ¶
func (x *CreateSessionRequest) GetHostname() string
func (*CreateSessionRequest) GetUserId ¶
func (x *CreateSessionRequest) GetUserId() string
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect ¶
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset ¶
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (x *CreateSessionRequest) String() string
type CreateSessionResponse ¶
type CreateSessionResponse struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
SessionName string `protobuf:"bytes,2,opt,name=session_name,json=sessionName,proto3" json:"session_name,omitempty"`
OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
AgentId string `protobuf:"bytes,4,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateSessionResponse) Descriptor
deprecated
func (*CreateSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.
func (*CreateSessionResponse) GetAgentId ¶
func (x *CreateSessionResponse) GetAgentId() string
func (*CreateSessionResponse) GetOrganizationId ¶
func (x *CreateSessionResponse) GetOrganizationId() string
func (*CreateSessionResponse) GetSessionId ¶
func (x *CreateSessionResponse) GetSessionId() string
func (*CreateSessionResponse) GetSessionName ¶
func (x *CreateSessionResponse) GetSessionName() string
func (*CreateSessionResponse) ProtoMessage ¶
func (*CreateSessionResponse) ProtoMessage()
func (*CreateSessionResponse) ProtoReflect ¶
func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
func (*CreateSessionResponse) Reset ¶
func (x *CreateSessionResponse) Reset()
func (*CreateSessionResponse) String ¶
func (x *CreateSessionResponse) String() string
type Decision ¶
type Decision int32
func (Decision) Descriptor ¶
func (Decision) Descriptor() protoreflect.EnumDescriptor
func (Decision) EnumDescriptor
deprecated
func (Decision) Number ¶
func (x Decision) Number() protoreflect.EnumNumber
func (Decision) Type ¶
func (Decision) Type() protoreflect.EnumType
type EndSessionRequest ¶
type EndSessionRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
func (*EndSessionRequest) Descriptor
deprecated
func (*EndSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndSessionRequest.ProtoReflect.Descriptor instead.
func (*EndSessionRequest) GetSessionId ¶
func (x *EndSessionRequest) GetSessionId() string
func (*EndSessionRequest) ProtoMessage ¶
func (*EndSessionRequest) ProtoMessage()
func (*EndSessionRequest) ProtoReflect ¶
func (x *EndSessionRequest) ProtoReflect() protoreflect.Message
func (*EndSessionRequest) Reset ¶
func (x *EndSessionRequest) Reset()
func (*EndSessionRequest) String ¶
func (x *EndSessionRequest) String() string
type EndSessionResponse ¶
type EndSessionResponse struct {
// contains filtered or unexported fields
}
func (*EndSessionResponse) Descriptor
deprecated
func (*EndSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndSessionResponse.ProtoReflect.Descriptor instead.
func (*EndSessionResponse) ProtoMessage ¶
func (*EndSessionResponse) ProtoMessage()
func (*EndSessionResponse) ProtoReflect ¶
func (x *EndSessionResponse) ProtoReflect() protoreflect.Message
func (*EndSessionResponse) Reset ¶
func (x *EndSessionResponse) Reset()
func (*EndSessionResponse) String ¶
func (x *EndSessionResponse) String() string
type HeartbeatRequest ¶
type HeartbeatRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
// contains filtered or unexported fields
}
func (*HeartbeatRequest) Descriptor
deprecated
func (*HeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.
func (*HeartbeatRequest) GetSessionId ¶
func (x *HeartbeatRequest) GetSessionId() string
func (*HeartbeatRequest) ProtoMessage ¶
func (*HeartbeatRequest) ProtoMessage()
func (*HeartbeatRequest) ProtoReflect ¶
func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message
func (*HeartbeatRequest) Reset ¶
func (x *HeartbeatRequest) Reset()
func (*HeartbeatRequest) String ¶
func (x *HeartbeatRequest) String() string
type HeartbeatResponse ¶
type HeartbeatResponse struct {
// contains filtered or unexported fields
}
func (*HeartbeatResponse) Descriptor
deprecated
func (*HeartbeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.
func (*HeartbeatResponse) ProtoMessage ¶
func (*HeartbeatResponse) ProtoMessage()
func (*HeartbeatResponse) ProtoReflect ¶
func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message
func (*HeartbeatResponse) Reset ¶
func (x *HeartbeatResponse) Reset()
func (*HeartbeatResponse) String ¶
func (x *HeartbeatResponse) String() string
type ProcessHookEventRequest ¶
type ProcessHookEventRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` // "claude", "cursor", "codex"
HookEvent string `protobuf:"bytes,3,opt,name=hook_event,json=hookEvent,proto3" json:"hook_event,omitempty"` // "PreToolUse", "PostToolUse", "UserPromptSubmit"
ToolName string `protobuf:"bytes,4,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
ToolInput []byte `protobuf:"bytes,5,opt,name=tool_input,json=toolInput,proto3" json:"tool_input,omitempty"` // JSON-encoded tool input
ToolResponse []byte `protobuf:"bytes,6,opt,name=tool_response,json=toolResponse,proto3" json:"tool_response,omitempty"` // JSON-encoded tool response (PostToolUse only)
ToolUseId string `protobuf:"bytes,7,opt,name=tool_use_id,json=toolUseId,proto3" json:"tool_use_id,omitempty"`
Cwd string `protobuf:"bytes,8,opt,name=cwd,proto3" json:"cwd,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessHookEventRequest) Descriptor
deprecated
func (*ProcessHookEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessHookEventRequest.ProtoReflect.Descriptor instead.
func (*ProcessHookEventRequest) GetAgent ¶
func (x *ProcessHookEventRequest) GetAgent() string
func (*ProcessHookEventRequest) GetCwd ¶
func (x *ProcessHookEventRequest) GetCwd() string
func (*ProcessHookEventRequest) GetHookEvent ¶
func (x *ProcessHookEventRequest) GetHookEvent() string
func (*ProcessHookEventRequest) GetSessionId ¶
func (x *ProcessHookEventRequest) GetSessionId() string
func (*ProcessHookEventRequest) GetToolInput ¶
func (x *ProcessHookEventRequest) GetToolInput() []byte
func (*ProcessHookEventRequest) GetToolName ¶
func (x *ProcessHookEventRequest) GetToolName() string
func (*ProcessHookEventRequest) GetToolResponse ¶
func (x *ProcessHookEventRequest) GetToolResponse() []byte
func (*ProcessHookEventRequest) GetToolUseId ¶
func (x *ProcessHookEventRequest) GetToolUseId() string
func (*ProcessHookEventRequest) ProtoMessage ¶
func (*ProcessHookEventRequest) ProtoMessage()
func (*ProcessHookEventRequest) ProtoReflect ¶
func (x *ProcessHookEventRequest) ProtoReflect() protoreflect.Message
func (*ProcessHookEventRequest) Reset ¶
func (x *ProcessHookEventRequest) Reset()
func (*ProcessHookEventRequest) String ¶
func (x *ProcessHookEventRequest) String() string
type ProcessHookEventResponse ¶
type ProcessHookEventResponse struct {
Decision Decision `protobuf:"varint,1,opt,name=decision,proto3,enum=kontext.agent.v1.Decision" json:"decision,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
EventId string `protobuf:"bytes,3,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessHookEventResponse) Descriptor
deprecated
func (*ProcessHookEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessHookEventResponse.ProtoReflect.Descriptor instead.
func (*ProcessHookEventResponse) GetDecision ¶
func (x *ProcessHookEventResponse) GetDecision() Decision
func (*ProcessHookEventResponse) GetEventId ¶
func (x *ProcessHookEventResponse) GetEventId() string
func (*ProcessHookEventResponse) GetReason ¶
func (x *ProcessHookEventResponse) GetReason() string
func (*ProcessHookEventResponse) ProtoMessage ¶
func (*ProcessHookEventResponse) ProtoMessage()
func (*ProcessHookEventResponse) ProtoReflect ¶
func (x *ProcessHookEventResponse) ProtoReflect() protoreflect.Message
func (*ProcessHookEventResponse) Reset ¶
func (x *ProcessHookEventResponse) Reset()
func (*ProcessHookEventResponse) String ¶
func (x *ProcessHookEventResponse) String() string
Click to show internal directories.
Click to hide internal directories.