aigentv1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ROLE_USER",
		2: "ROLE_ASSISTANT",
		3: "ROLE_SYSTEM",
		4: "ROLE_TOOL",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"ROLE_USER":        1,
		"ROLE_ASSISTANT":   2,
		"ROLE_SYSTEM":      3,
		"ROLE_TOOL":        4,
	}
)

Enum value maps for Role.

View Source
var (
	ToolCallType_name = map[int32]string{
		0: "TOOL_CALL_TYPE_UNSPECIFIED",
		1: "TOOL_CALL_TYPE_FUNCTION",
	}
	ToolCallType_value = map[string]int32{
		"TOOL_CALL_TYPE_UNSPECIFIED": 0,
		"TOOL_CALL_TYPE_FUNCTION":    1,
	}
)

Enum value maps for ToolCallType.

View Source
var (
	ApprovalStatus_name = map[int32]string{
		0: "APPROVAL_STATUS_UNSPECIFIED",
		1: "APPROVAL_STATUS_PENDING",
		2: "APPROVAL_STATUS_APPROVED",
		3: "APPROVAL_STATUS_DENIED",
	}
	ApprovalStatus_value = map[string]int32{
		"APPROVAL_STATUS_UNSPECIFIED": 0,
		"APPROVAL_STATUS_PENDING":     1,
		"APPROVAL_STATUS_APPROVED":    2,
		"APPROVAL_STATUS_DENIED":      3,
	}
)

Enum value maps for ApprovalStatus.

View Source
var (
	FinishReason_name = map[int32]string{
		0: "FINISH_REASON_UNSPECIFIED",
		1: "FINISH_REASON_STOP",
		2: "FINISH_REASON_LENGTH",
		3: "FINISH_REASON_TOOL_CALLS",
		4: "FINISH_REASON_ERROR",
	}
	FinishReason_value = map[string]int32{
		"FINISH_REASON_UNSPECIFIED": 0,
		"FINISH_REASON_STOP":        1,
		"FINISH_REASON_LENGTH":      2,
		"FINISH_REASON_TOOL_CALLS":  3,
		"FINISH_REASON_ERROR":       4,
	}
)

Enum value maps for FinishReason.

View Source
var (
	ToolApprovalAction_name = map[int32]string{
		0: "TOOL_APPROVAL_ACTION_UNSPECIFIED",
		1: "TOOL_APPROVAL_ACTION_APPROVE",
		2: "TOOL_APPROVAL_ACTION_DENY",
		3: "TOOL_APPROVAL_ACTION_REQUIRE_CLIENT_APPROVAL",
	}
	ToolApprovalAction_value = map[string]int32{
		"TOOL_APPROVAL_ACTION_UNSPECIFIED":             0,
		"TOOL_APPROVAL_ACTION_APPROVE":                 1,
		"TOOL_APPROVAL_ACTION_DENY":                    2,
		"TOOL_APPROVAL_ACTION_REQUIRE_CLIENT_APPROVAL": 3,
	}
)

Enum value maps for ToolApprovalAction.

View Source
var File_proto_madsrc_aigent_v1_aigent_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ApprovalStatus

type ApprovalStatus int32

ApprovalStatus represents the status of a tool call approval request. Note: This enum might be used more internally by the server after refactoring, as the direct client decision is handled by ToolDecision.approved.

const (
	ApprovalStatus_APPROVAL_STATUS_UNSPECIFIED ApprovalStatus = 0 // Default, unspecified status.
	ApprovalStatus_APPROVAL_STATUS_PENDING     ApprovalStatus = 1 // Tool call is awaiting user approval.
	ApprovalStatus_APPROVAL_STATUS_APPROVED    ApprovalStatus = 2 // Tool call has been approved by the user.
	ApprovalStatus_APPROVAL_STATUS_DENIED      ApprovalStatus = 3 // Tool call has been denied by the user.
)

func (ApprovalStatus) Descriptor

func (ApprovalStatus) Enum

func (x ApprovalStatus) Enum() *ApprovalStatus

func (ApprovalStatus) EnumDescriptor deprecated

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

Deprecated: Use ApprovalStatus.Descriptor instead.

func (ApprovalStatus) Number

func (ApprovalStatus) String

func (x ApprovalStatus) String() string

func (ApprovalStatus) Type

type ChatMessagePart

type ChatMessagePart struct {

	// A chunk of text content from the LLM's response.
	ContentDelta *string `protobuf:"bytes,1,opt,name=content_delta,json=contentDelta,proto3,oneof" json:"content_delta,omitempty"`
	// A chunk related to an LLM-generated tool call.
	ToolCallDelta *ToolCallStreamChunk `protobuf:"bytes,2,opt,name=tool_call_delta,json=toolCallDelta,proto3,oneof" json:"tool_call_delta,omitempty"`
	// contains filtered or unexported fields
}

Server -> Client: A part of the LLM's response (text or tool call delta).

func (*ChatMessagePart) Descriptor deprecated

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

Deprecated: Use ChatMessagePart.ProtoReflect.Descriptor instead.

func (*ChatMessagePart) GetContentDelta

func (x *ChatMessagePart) GetContentDelta() string

func (*ChatMessagePart) GetToolCallDelta

func (x *ChatMessagePart) GetToolCallDelta() *ToolCallStreamChunk

func (*ChatMessagePart) ProtoMessage

func (*ChatMessagePart) ProtoMessage()

func (*ChatMessagePart) ProtoReflect

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

func (*ChatMessagePart) Reset

func (x *ChatMessagePart) Reset()

func (*ChatMessagePart) String

func (x *ChatMessagePart) String() string

type ConfigureAgentRequest

type ConfigureAgentRequest struct {

	// Optional: New log level for the agent (e.g., "debug", "info", "error").
	LogLevel *string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3,oneof" json:"log_level,omitempty"`
	// Optional: New persona for the agent to adopt.
	Persona *string `protobuf:"bytes,2,opt,name=persona,proto3,oneof" json:"persona,omitempty"`
	// Optional: New temperature setting for the LLM.
	Temperature *float32 `protobuf:"fixed32,3,opt,name=temperature,proto3,oneof" json:"temperature,omitempty"`
	// Optional: New maximum tokens setting for LLM responses.
	MaxTokens *int32 `protobuf:"varint,4,opt,name=max_tokens,json=maxTokens,proto3,oneof" json:"max_tokens,omitempty"`
	// Optional: Specify LLM provider (e.g., "openai", "anthropic")
	LlmProvider *string `protobuf:"bytes,5,opt,name=llm_provider,json=llmProvider,proto3,oneof" json:"llm_provider,omitempty"`
	// Optional: Tool approval policy configuration
	ToolApprovalPolicy *ToolApprovalPolicy `protobuf:"bytes,6,opt,name=tool_approval_policy,json=toolApprovalPolicy,proto3,oneof" json:"tool_approval_policy,omitempty"`
	// contains filtered or unexported fields
}

ConfigureAgentRequest is a request to configure various settings of the Aigent.

func (*ConfigureAgentRequest) Descriptor deprecated

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

Deprecated: Use ConfigureAgentRequest.ProtoReflect.Descriptor instead.

func (*ConfigureAgentRequest) GetLlmProvider

func (x *ConfigureAgentRequest) GetLlmProvider() string

func (*ConfigureAgentRequest) GetLogLevel

func (x *ConfigureAgentRequest) GetLogLevel() string

func (*ConfigureAgentRequest) GetMaxTokens

func (x *ConfigureAgentRequest) GetMaxTokens() int32

func (*ConfigureAgentRequest) GetPersona

func (x *ConfigureAgentRequest) GetPersona() string

func (*ConfigureAgentRequest) GetTemperature

func (x *ConfigureAgentRequest) GetTemperature() float32

func (*ConfigureAgentRequest) GetToolApprovalPolicy

func (x *ConfigureAgentRequest) GetToolApprovalPolicy() *ToolApprovalPolicy

func (*ConfigureAgentRequest) ProtoMessage

func (*ConfigureAgentRequest) ProtoMessage()

func (*ConfigureAgentRequest) ProtoReflect

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

func (*ConfigureAgentRequest) Reset

func (x *ConfigureAgentRequest) Reset()

func (*ConfigureAgentRequest) String

func (x *ConfigureAgentRequest) String() string

type ConfigureAgentResponse

type ConfigureAgentResponse struct {

	// True if the configuration was successfully applied, false otherwise.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// An optional message providing more details about the outcome.
	Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"`
	// contains filtered or unexported fields
}

ConfigureAgentResponse indicates if the agent configuration was successful.

func (*ConfigureAgentResponse) Descriptor deprecated

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

Deprecated: Use ConfigureAgentResponse.ProtoReflect.Descriptor instead.

func (*ConfigureAgentResponse) GetMessage

func (x *ConfigureAgentResponse) GetMessage() string

func (*ConfigureAgentResponse) GetSuccess

func (x *ConfigureAgentResponse) GetSuccess() bool

func (*ConfigureAgentResponse) ProtoMessage

func (*ConfigureAgentResponse) ProtoMessage()

func (*ConfigureAgentResponse) ProtoReflect

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

func (*ConfigureAgentResponse) Reset

func (x *ConfigureAgentResponse) Reset()

func (*ConfigureAgentResponse) String

func (x *ConfigureAgentResponse) String() string

type ConversationContext

type ConversationContext struct {

	// The ID of the active/resumed conversation.
	ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// Current or generated subject of the conversation.
	Subject *string `protobuf:"bytes,2,opt,name=subject,proto3,oneof" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

Server -> Client: Provides context about the conversation.

func (*ConversationContext) Descriptor deprecated

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

Deprecated: Use ConversationContext.ProtoReflect.Descriptor instead.

func (*ConversationContext) GetConversationId

func (x *ConversationContext) GetConversationId() string

func (*ConversationContext) GetSubject

func (x *ConversationContext) GetSubject() string

func (*ConversationContext) ProtoMessage

func (*ConversationContext) ProtoMessage()

func (*ConversationContext) ProtoReflect

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

func (*ConversationContext) Reset

func (x *ConversationContext) Reset()

func (*ConversationContext) String

func (x *ConversationContext) String() string

type ConversationInfo

type ConversationInfo struct {

	// Unique identifier for the conversation.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Subject or title of the conversation.
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// Indicates if this is the currently active conversation.
	// Note: With the Converse stream, 'active' might be implicit to an ongoing stream.
	// This field is retained for ListConversations but its meaning might evolve.
	Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	// The number of messages in this conversation.
	MessageCount int32 `protobuf:"varint,4,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
	// contains filtered or unexported fields
}

ConversationInfo contains basic information about a chat conversation.

func (*ConversationInfo) Descriptor deprecated

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

Deprecated: Use ConversationInfo.ProtoReflect.Descriptor instead.

func (*ConversationInfo) GetActive

func (x *ConversationInfo) GetActive() bool

func (*ConversationInfo) GetId

func (x *ConversationInfo) GetId() string

func (*ConversationInfo) GetMessageCount

func (x *ConversationInfo) GetMessageCount() int32

func (*ConversationInfo) GetSubject

func (x *ConversationInfo) GetSubject() string

func (*ConversationInfo) ProtoMessage

func (*ConversationInfo) ProtoMessage()

func (*ConversationInfo) ProtoReflect

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

func (*ConversationInfo) Reset

func (x *ConversationInfo) Reset()

func (*ConversationInfo) String

func (x *ConversationInfo) String() string

type ConverseRequest

type ConverseRequest struct {

	// Unique ID for this specific message on the stream. Helps in tracking and correlation.
	StreamMessageId string `protobuf:"bytes,1,opt,name=stream_message_id,json=streamMessageId,proto3" json:"stream_message_id,omitempty"`
	// Optional: ID of the server message this one correlates to (e.g., a ToolDecision correlating to a ToolUseRequest).
	CorrelatesToId *string `protobuf:"bytes,2,opt,name=correlates_to_id,json=correlatesToId,proto3,oneof" json:"correlates_to_id,omitempty"`
	// Types that are valid to be assigned to Payload:
	//
	//	*ConverseRequest_StartConversation
	//	*ConverseRequest_UserTextInput
	//	*ConverseRequest_ToolDecision
	Payload isConverseRequest_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

ConverseRequest is the unified message type for client-to-server messages on the Converse stream.

func (*ConverseRequest) Descriptor deprecated

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

Deprecated: Use ConverseRequest.ProtoReflect.Descriptor instead.

func (*ConverseRequest) GetCorrelatesToId

func (x *ConverseRequest) GetCorrelatesToId() string

func (*ConverseRequest) GetPayload

func (x *ConverseRequest) GetPayload() isConverseRequest_Payload

func (*ConverseRequest) GetStartConversation

func (x *ConverseRequest) GetStartConversation() *StartConversationRequest

func (*ConverseRequest) GetStreamMessageId

func (x *ConverseRequest) GetStreamMessageId() string

func (*ConverseRequest) GetToolDecision

func (x *ConverseRequest) GetToolDecision() *ToolDecision

func (*ConverseRequest) GetUserTextInput

func (x *ConverseRequest) GetUserTextInput() *UserTextInput

func (*ConverseRequest) ProtoMessage

func (*ConverseRequest) ProtoMessage()

func (*ConverseRequest) ProtoReflect

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

func (*ConverseRequest) Reset

func (x *ConverseRequest) Reset()

func (*ConverseRequest) String

func (x *ConverseRequest) String() string

type ConverseRequest_StartConversation

type ConverseRequest_StartConversation struct {
	StartConversation *StartConversationRequest `protobuf:"bytes,3,opt,name=start_conversation,json=startConversation,proto3,oneof"`
}

type ConverseRequest_ToolDecision

type ConverseRequest_ToolDecision struct {
	ToolDecision *ToolDecision `protobuf:"bytes,5,opt,name=tool_decision,json=toolDecision,proto3,oneof"`
}

type ConverseRequest_UserTextInput

type ConverseRequest_UserTextInput struct {
	UserTextInput *UserTextInput `protobuf:"bytes,4,opt,name=user_text_input,json=userTextInput,proto3,oneof"`
}

type ConverseResponse

type ConverseResponse struct {

	// Unique ID for this specific message on the stream. Helps in tracking and correlation.
	StreamMessageId string `protobuf:"bytes,1,opt,name=stream_message_id,json=streamMessageId,proto3" json:"stream_message_id,omitempty"`
	// Optional: ID of the client message this one correlates to (e.g., a server response correlating to a client request).
	CorrelatesToId *string `protobuf:"bytes,2,opt,name=correlates_to_id,json=correlatesToId,proto3,oneof" json:"correlates_to_id,omitempty"`
	// Types that are valid to be assigned to Payload:
	//
	//	*ConverseResponse_ConversationContext
	//	*ConverseResponse_ChatMessagePart
	//	*ConverseResponse_ToolUseRequest
	//	*ConverseResponse_ToolExecutionResult
	//	*ConverseResponse_TurnCompletion
	//	*ConverseResponse_StreamError
	Payload isConverseResponse_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

ConverseResponse is the unified message type for server-to-client messages on the Converse stream.

func (*ConverseResponse) Descriptor deprecated

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

Deprecated: Use ConverseResponse.ProtoReflect.Descriptor instead.

func (*ConverseResponse) GetChatMessagePart

func (x *ConverseResponse) GetChatMessagePart() *ChatMessagePart

func (*ConverseResponse) GetConversationContext

func (x *ConverseResponse) GetConversationContext() *ConversationContext

func (*ConverseResponse) GetCorrelatesToId

func (x *ConverseResponse) GetCorrelatesToId() string

func (*ConverseResponse) GetPayload

func (x *ConverseResponse) GetPayload() isConverseResponse_Payload

func (*ConverseResponse) GetStreamError

func (x *ConverseResponse) GetStreamError() *StreamError

func (*ConverseResponse) GetStreamMessageId

func (x *ConverseResponse) GetStreamMessageId() string

func (*ConverseResponse) GetToolExecutionResult

func (x *ConverseResponse) GetToolExecutionResult() *ToolExecutionResult

func (*ConverseResponse) GetToolUseRequest

func (x *ConverseResponse) GetToolUseRequest() *ToolUseRequest

func (*ConverseResponse) GetTurnCompletion

func (x *ConverseResponse) GetTurnCompletion() *TurnCompletion

func (*ConverseResponse) ProtoMessage

func (*ConverseResponse) ProtoMessage()

func (*ConverseResponse) ProtoReflect

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

func (*ConverseResponse) Reset

func (x *ConverseResponse) Reset()

func (*ConverseResponse) String

func (x *ConverseResponse) String() string

type ConverseResponse_ChatMessagePart

type ConverseResponse_ChatMessagePart struct {
	ChatMessagePart *ChatMessagePart `protobuf:"bytes,4,opt,name=chat_message_part,json=chatMessagePart,proto3,oneof"`
}

type ConverseResponse_ConversationContext

type ConverseResponse_ConversationContext struct {
	ConversationContext *ConversationContext `protobuf:"bytes,3,opt,name=conversation_context,json=conversationContext,proto3,oneof"`
}

type ConverseResponse_StreamError

type ConverseResponse_StreamError struct {
	StreamError *StreamError `protobuf:"bytes,8,opt,name=stream_error,json=streamError,proto3,oneof"`
}

type ConverseResponse_ToolExecutionResult

type ConverseResponse_ToolExecutionResult struct {
	ToolExecutionResult *ToolExecutionResult `protobuf:"bytes,6,opt,name=tool_execution_result,json=toolExecutionResult,proto3,oneof"`
}

type ConverseResponse_ToolUseRequest

type ConverseResponse_ToolUseRequest struct {
	ToolUseRequest *ToolUseRequest `protobuf:"bytes,5,opt,name=tool_use_request,json=toolUseRequest,proto3,oneof"`
}

type ConverseResponse_TurnCompletion

type ConverseResponse_TurnCompletion struct {
	TurnCompletion *TurnCompletion `protobuf:"bytes,7,opt,name=turn_completion,json=turnCompletion,proto3,oneof"`
}

type FinishReason

type FinishReason int32

FinishReason indicates why a language model's response generation concluded.

const (
	FinishReason_FINISH_REASON_UNSPECIFIED FinishReason = 0 // Default, unspecified reason.
	FinishReason_FINISH_REASON_STOP        FinishReason = 1 // Generation stopped due to a stop sequence.
	FinishReason_FINISH_REASON_LENGTH      FinishReason = 2 // Generation stopped due to reaching max length.
	FinishReason_FINISH_REASON_TOOL_CALLS  FinishReason = 3 // Generation stopped to make tool calls.
	FinishReason_FINISH_REASON_ERROR       FinishReason = 4 // Generation stopped due to an error.
)

func (FinishReason) Descriptor

func (FinishReason) Enum

func (x FinishReason) Enum() *FinishReason

func (FinishReason) EnumDescriptor deprecated

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

Deprecated: Use FinishReason.Descriptor instead.

func (FinishReason) Number

func (FinishReason) String

func (x FinishReason) String() string

func (FinishReason) Type

type FunctionCallChunk

type FunctionCallChunk struct {

	// A chunk of the function's name.
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// A chunk of the function's arguments.
	Arguments *string `protobuf:"bytes,2,opt,name=arguments,proto3,oneof" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

FunctionCallChunk represents a chunk of a streaming function call's name or arguments. Used when the LLM streams the details of a function call.

func (*FunctionCallChunk) Descriptor deprecated

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

Deprecated: Use FunctionCallChunk.ProtoReflect.Descriptor instead.

func (*FunctionCallChunk) GetArguments

func (x *FunctionCallChunk) GetArguments() string

func (*FunctionCallChunk) GetName

func (x *FunctionCallChunk) GetName() string

func (*FunctionCallChunk) ProtoMessage

func (*FunctionCallChunk) ProtoMessage()

func (*FunctionCallChunk) ProtoReflect

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

func (*FunctionCallChunk) Reset

func (x *FunctionCallChunk) Reset()

func (*FunctionCallChunk) String

func (x *FunctionCallChunk) String() string

type GetAgentStatusRequest

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

GetAgentStatusRequest is a request to get the current status and configuration of the agent.

func (*GetAgentStatusRequest) Descriptor deprecated

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

Deprecated: Use GetAgentStatusRequest.ProtoReflect.Descriptor instead.

func (*GetAgentStatusRequest) ProtoMessage

func (*GetAgentStatusRequest) ProtoMessage()

func (*GetAgentStatusRequest) ProtoReflect

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

func (*GetAgentStatusRequest) Reset

func (x *GetAgentStatusRequest) Reset()

func (*GetAgentStatusRequest) String

func (x *GetAgentStatusRequest) String() string

type GetAgentStatusResponse

type GetAgentStatusResponse struct {

	// The name of the currently active persona.
	CurrentPersonaId string `protobuf:"bytes,1,opt,name=current_persona_id,json=currentPersonaId,proto3" json:"current_persona_id,omitempty"`
	// The current log level.
	LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	// The current temperature setting for the LLM.
	Temperature float32 `protobuf:"fixed32,3,opt,name=temperature,proto3" json:"temperature,omitempty"`
	// The current maximum tokens setting for LLM responses.
	MaxTokens int32 `protobuf:"varint,4,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// True if the agent is currently processing or streaming a response.
	// bool is_streaming = 5;
	// A general status string (e.g., "idle", "processing", "error").
	StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// An optional message providing more details about the current status.
	Message *string `protobuf:"bytes,6,opt,name=message,proto3,oneof" json:"message,omitempty"`
	// Name of the current LLM provider
	LlmProviderName *string `protobuf:"bytes,7,opt,name=llm_provider_name,json=llmProviderName,proto3,oneof" json:"llm_provider_name,omitempty"`
	// ID of the current LLM model
	LlmModelId *string `protobuf:"bytes,8,opt,name=llm_model_id,json=llmModelId,proto3,oneof" json:"llm_model_id,omitempty"`
	// Endpoint for the current LLM (if applicable)
	LlmEndpoint *string `protobuf:"bytes,9,opt,name=llm_endpoint,json=llmEndpoint,proto3,oneof" json:"llm_endpoint,omitempty"`
	// Current tool approval policy
	CurrentToolApprovalPolicy *ToolApprovalPolicy `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetAgentStatusResponse contains the current status and configuration of the agent.

func (*GetAgentStatusResponse) Descriptor deprecated

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

Deprecated: Use GetAgentStatusResponse.ProtoReflect.Descriptor instead.

func (*GetAgentStatusResponse) GetCurrentPersonaId

func (x *GetAgentStatusResponse) GetCurrentPersonaId() string

func (*GetAgentStatusResponse) GetCurrentToolApprovalPolicy

func (x *GetAgentStatusResponse) GetCurrentToolApprovalPolicy() *ToolApprovalPolicy

func (*GetAgentStatusResponse) GetLlmEndpoint

func (x *GetAgentStatusResponse) GetLlmEndpoint() string

func (*GetAgentStatusResponse) GetLlmModelId

func (x *GetAgentStatusResponse) GetLlmModelId() string

func (*GetAgentStatusResponse) GetLlmProviderName

func (x *GetAgentStatusResponse) GetLlmProviderName() string

func (*GetAgentStatusResponse) GetLogLevel

func (x *GetAgentStatusResponse) GetLogLevel() string

func (*GetAgentStatusResponse) GetMaxTokens

func (x *GetAgentStatusResponse) GetMaxTokens() int32

func (*GetAgentStatusResponse) GetMessage

func (x *GetAgentStatusResponse) GetMessage() string

func (*GetAgentStatusResponse) GetStatusMessage

func (x *GetAgentStatusResponse) GetStatusMessage() string

func (*GetAgentStatusResponse) GetTemperature

func (x *GetAgentStatusResponse) GetTemperature() float32

func (*GetAgentStatusResponse) ProtoMessage

func (*GetAgentStatusResponse) ProtoMessage()

func (*GetAgentStatusResponse) ProtoReflect

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

func (*GetAgentStatusResponse) Reset

func (x *GetAgentStatusResponse) Reset()

func (*GetAgentStatusResponse) String

func (x *GetAgentStatusResponse) String() string

type GetConversationRequest

type GetConversationRequest struct {

	// The ID of the conversation to retrieve.
	ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// contains filtered or unexported fields
}

GetConversationRequest is a request to retrieve details of a specific conversation.

func (*GetConversationRequest) Descriptor deprecated

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

Deprecated: Use GetConversationRequest.ProtoReflect.Descriptor instead.

func (*GetConversationRequest) GetConversationId

func (x *GetConversationRequest) GetConversationId() string

func (*GetConversationRequest) ProtoMessage

func (*GetConversationRequest) ProtoMessage()

func (*GetConversationRequest) ProtoReflect

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

func (*GetConversationRequest) Reset

func (x *GetConversationRequest) Reset()

func (*GetConversationRequest) String

func (x *GetConversationRequest) String() string

type GetConversationResponse

type GetConversationResponse struct {

	// Unique identifier for the conversation.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Subject or title of the conversation.
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// Indicates if this is the currently active conversation (see note in ConversationInfo).
	Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	// A list of all messages in this conversation.
	Messages []*MessageInfo `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

GetConversationResponse contains detailed information about a specific conversation, including its messages.

func (*GetConversationResponse) Descriptor deprecated

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

Deprecated: Use GetConversationResponse.ProtoReflect.Descriptor instead.

func (*GetConversationResponse) GetActive

func (x *GetConversationResponse) GetActive() bool

func (*GetConversationResponse) GetId

func (x *GetConversationResponse) GetId() string

func (*GetConversationResponse) GetMessages

func (x *GetConversationResponse) GetMessages() []*MessageInfo

func (*GetConversationResponse) GetSubject

func (x *GetConversationResponse) GetSubject() string

func (*GetConversationResponse) ProtoMessage

func (*GetConversationResponse) ProtoMessage()

func (*GetConversationResponse) ProtoReflect

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

func (*GetConversationResponse) Reset

func (x *GetConversationResponse) Reset()

func (*GetConversationResponse) String

func (x *GetConversationResponse) String() string

type ListConversationsRequest

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

ListConversationsRequest is a request to list all available conversations.

func (*ListConversationsRequest) Descriptor deprecated

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

Deprecated: Use ListConversationsRequest.ProtoReflect.Descriptor instead.

func (*ListConversationsRequest) ProtoMessage

func (*ListConversationsRequest) ProtoMessage()

func (*ListConversationsRequest) ProtoReflect

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

func (*ListConversationsRequest) Reset

func (x *ListConversationsRequest) Reset()

func (*ListConversationsRequest) String

func (x *ListConversationsRequest) String() string

type ListConversationsResponse

type ListConversationsResponse struct {

	// A list of conversation metadata.
	Conversations []*ConversationInfo `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"`
	// contains filtered or unexported fields
}

ListConversationsResponse contains a list of all conversations.

func (*ListConversationsResponse) Descriptor deprecated

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

Deprecated: Use ListConversationsResponse.ProtoReflect.Descriptor instead.

func (*ListConversationsResponse) GetConversations

func (x *ListConversationsResponse) GetConversations() []*ConversationInfo

func (*ListConversationsResponse) ProtoMessage

func (*ListConversationsResponse) ProtoMessage()

func (*ListConversationsResponse) ProtoReflect

func (*ListConversationsResponse) Reset

func (x *ListConversationsResponse) Reset()

func (*ListConversationsResponse) String

func (x *ListConversationsResponse) String() string

type MessageInfo

type MessageInfo struct {

	// The role of the message originator (e.g., user, assistant).
	Role Role `protobuf:"varint,1,opt,name=role,proto3,enum=madsrc.aigent.v1.Role" json:"role,omitempty"`
	// The content of the message.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

MessageInfo contains information about a single message within a conversation. Used by GetConversationResponse.

func (*MessageInfo) Descriptor deprecated

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

Deprecated: Use MessageInfo.ProtoReflect.Descriptor instead.

func (*MessageInfo) GetContent

func (x *MessageInfo) GetContent() string

func (*MessageInfo) GetRole

func (x *MessageInfo) GetRole() Role

func (*MessageInfo) ProtoMessage

func (*MessageInfo) ProtoMessage()

func (*MessageInfo) ProtoReflect

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

func (*MessageInfo) Reset

func (x *MessageInfo) Reset()

func (*MessageInfo) String

func (x *MessageInfo) String() string

type RemoveConversationRequest

type RemoveConversationRequest struct {

	// The ID of the conversation to remove.
	ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	// contains filtered or unexported fields
}

RemoveConversationRequest is a request to remove/delete a conversation.

func (*RemoveConversationRequest) Descriptor deprecated

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

Deprecated: Use RemoveConversationRequest.ProtoReflect.Descriptor instead.

func (*RemoveConversationRequest) GetConversationId

func (x *RemoveConversationRequest) GetConversationId() string

func (*RemoveConversationRequest) ProtoMessage

func (*RemoveConversationRequest) ProtoMessage()

func (*RemoveConversationRequest) ProtoReflect

func (*RemoveConversationRequest) Reset

func (x *RemoveConversationRequest) Reset()

func (*RemoveConversationRequest) String

func (x *RemoveConversationRequest) String() string

type RemoveConversationResponse

type RemoveConversationResponse struct {

	// True if the operation was successful, false otherwise.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

RemoveConversationResponse indicates if removing the conversation was successful.

func (*RemoveConversationResponse) Descriptor deprecated

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

Deprecated: Use RemoveConversationResponse.ProtoReflect.Descriptor instead.

func (*RemoveConversationResponse) GetSuccess

func (x *RemoveConversationResponse) GetSuccess() bool

func (*RemoveConversationResponse) ProtoMessage

func (*RemoveConversationResponse) ProtoMessage()

func (*RemoveConversationResponse) ProtoReflect

func (*RemoveConversationResponse) Reset

func (x *RemoveConversationResponse) Reset()

func (*RemoveConversationResponse) String

func (x *RemoveConversationResponse) String() string

type Role

type Role int32

Role defines the originator of a message in a conversation.

const (
	Role_ROLE_UNSPECIFIED Role = 0 // Default, unspecified role.
	Role_ROLE_USER        Role = 1 // Message originated from the user.
	Role_ROLE_ASSISTANT   Role = 2 // Message originated from the AI assistant.
	Role_ROLE_SYSTEM      Role = 3 // Message originated from the system (e.g., instructions).
	Role_ROLE_TOOL        Role = 4 // Message originated from a tool call or its response.
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type StartConversationRequest

type StartConversationRequest struct {

	// If provided, attempts to resume this conversation.
	// If empty, a new conversation is started.
	ConversationIdToResume *string `` /* 137-byte string literal not displayed */
	// The first message from the user.
	InitialUserInput string `protobuf:"bytes,2,opt,name=initial_user_input,json=initialUserInput,proto3" json:"initial_user_input,omitempty"`
	// contains filtered or unexported fields
}

Client -> Server: Initiates a new conversation or resumes an existing one.

func (*StartConversationRequest) Descriptor deprecated

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

Deprecated: Use StartConversationRequest.ProtoReflect.Descriptor instead.

func (*StartConversationRequest) GetConversationIdToResume

func (x *StartConversationRequest) GetConversationIdToResume() string

func (*StartConversationRequest) GetInitialUserInput

func (x *StartConversationRequest) GetInitialUserInput() string

func (*StartConversationRequest) ProtoMessage

func (*StartConversationRequest) ProtoMessage()

func (*StartConversationRequest) ProtoReflect

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

func (*StartConversationRequest) Reset

func (x *StartConversationRequest) Reset()

func (*StartConversationRequest) String

func (x *StartConversationRequest) String() string

type StreamError

type StreamError struct {

	// An error code (consider defining an enum or using standard gRPC codes).
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// A descriptive error message.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Server -> Client: Reports an error that occurred during processing on the stream.

func (*StreamError) Descriptor deprecated

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

Deprecated: Use StreamError.ProtoReflect.Descriptor instead.

func (*StreamError) GetCode

func (x *StreamError) GetCode() int32

func (*StreamError) GetMessage

func (x *StreamError) GetMessage() string

func (*StreamError) ProtoMessage

func (*StreamError) ProtoMessage()

func (*StreamError) ProtoReflect

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

func (*StreamError) Reset

func (x *StreamError) Reset()

func (*StreamError) String

func (x *StreamError) String() string

type ToolApprovalAction

type ToolApprovalAction int32

Enum for Tool Approval Policies

const (
	ToolApprovalAction_TOOL_APPROVAL_ACTION_UNSPECIFIED             ToolApprovalAction = 0 // Default, server decides or uses a global default.
	ToolApprovalAction_TOOL_APPROVAL_ACTION_APPROVE                 ToolApprovalAction = 1 // Automatically approve the tool call.
	ToolApprovalAction_TOOL_APPROVAL_ACTION_DENY                    ToolApprovalAction = 2 // Automatically deny the tool call.
	ToolApprovalAction_TOOL_APPROVAL_ACTION_REQUIRE_CLIENT_APPROVAL ToolApprovalAction = 3 // Send to client for explicit approval.
)

func (ToolApprovalAction) Descriptor

func (ToolApprovalAction) Enum

func (ToolApprovalAction) EnumDescriptor deprecated

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

Deprecated: Use ToolApprovalAction.Descriptor instead.

func (ToolApprovalAction) Number

func (ToolApprovalAction) String

func (x ToolApprovalAction) String() string

func (ToolApprovalAction) Type

type ToolApprovalPolicy

type ToolApprovalPolicy struct {
	DefaultAction ToolApprovalAction `` // Default action if no specific policy matches a tool.
	/* 142-byte string literal not displayed */
	ToolSpecificPolicies []*ToolSpecificApprovalPolicy `protobuf:"bytes,2,rep,name=tool_specific_policies,json=toolSpecificPolicies,proto3" json:"tool_specific_policies,omitempty"` // Policies for specific tools.
	// contains filtered or unexported fields
}

Defines the overall tool approval policy for the agent.

func (*ToolApprovalPolicy) Descriptor deprecated

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

Deprecated: Use ToolApprovalPolicy.ProtoReflect.Descriptor instead.

func (*ToolApprovalPolicy) GetDefaultAction

func (x *ToolApprovalPolicy) GetDefaultAction() ToolApprovalAction

func (*ToolApprovalPolicy) GetToolSpecificPolicies

func (x *ToolApprovalPolicy) GetToolSpecificPolicies() []*ToolSpecificApprovalPolicy

func (*ToolApprovalPolicy) ProtoMessage

func (*ToolApprovalPolicy) ProtoMessage()

func (*ToolApprovalPolicy) ProtoReflect

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

func (*ToolApprovalPolicy) Reset

func (x *ToolApprovalPolicy) Reset()

func (*ToolApprovalPolicy) String

func (x *ToolApprovalPolicy) String() string

type ToolCall

type ToolCall struct {

	// A unique identifier for this tool call.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of the tool call (e.g., function).
	Type ToolCallType `protobuf:"varint,2,opt,name=type,proto3,enum=madsrc.aigent.v1.ToolCallType" json:"type,omitempty"`
	// Details of the function to be called, if type is FUNCTION.
	Function *ToolCallFunction `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"`
	// contains filtered or unexported fields
}

ToolCall represents a request from the LLM to call a tool.

func (*ToolCall) Descriptor deprecated

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

Deprecated: Use ToolCall.ProtoReflect.Descriptor instead.

func (*ToolCall) GetFunction

func (x *ToolCall) GetFunction() *ToolCallFunction

func (*ToolCall) GetId

func (x *ToolCall) GetId() string

func (*ToolCall) GetType

func (x *ToolCall) GetType() ToolCallType

func (*ToolCall) ProtoMessage

func (*ToolCall) ProtoMessage()

func (*ToolCall) ProtoReflect

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

func (*ToolCall) Reset

func (x *ToolCall) Reset()

func (*ToolCall) String

func (x *ToolCall) String() string

type ToolCallFunction

type ToolCallFunction struct {

	// The name of the function to call.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The arguments to pass to the function, typically a JSON string.
	Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

ToolCallFunction defines the details of a function to be called by a tool.

func (*ToolCallFunction) Descriptor deprecated

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

Deprecated: Use ToolCallFunction.ProtoReflect.Descriptor instead.

func (*ToolCallFunction) GetArguments

func (x *ToolCallFunction) GetArguments() string

func (*ToolCallFunction) GetName

func (x *ToolCallFunction) GetName() string

func (*ToolCallFunction) ProtoMessage

func (*ToolCallFunction) ProtoMessage()

func (*ToolCallFunction) ProtoReflect

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

func (*ToolCallFunction) Reset

func (x *ToolCallFunction) Reset()

func (*ToolCallFunction) String

func (x *ToolCallFunction) String() string

type ToolCallStreamChunk

type ToolCallStreamChunk struct {

	// The index of this tool call chunk in the stream.
	Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// The ID of the tool call, if this chunk starts a new tool call or pertains to an existing one.
	Id *string `protobuf:"bytes,2,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// The type of the tool call (e.g., function).
	Type *ToolCallType `protobuf:"varint,3,opt,name=type,proto3,enum=madsrc.aigent.v1.ToolCallType,oneof" json:"type,omitempty"`
	// A chunk of the function call details.
	Function *FunctionCallChunk `protobuf:"bytes,4,opt,name=function,proto3,oneof" json:"function,omitempty"`
	// contains filtered or unexported fields
}

ToolCallStreamChunk represents a chunk of a streaming tool call. This is part of a `ChatMessagePart` when the LLM streams tool calls.

func (*ToolCallStreamChunk) Descriptor deprecated

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

Deprecated: Use ToolCallStreamChunk.ProtoReflect.Descriptor instead.

func (*ToolCallStreamChunk) GetFunction

func (x *ToolCallStreamChunk) GetFunction() *FunctionCallChunk

func (*ToolCallStreamChunk) GetId

func (x *ToolCallStreamChunk) GetId() string

func (*ToolCallStreamChunk) GetIndex

func (x *ToolCallStreamChunk) GetIndex() int32

func (*ToolCallStreamChunk) GetType

func (x *ToolCallStreamChunk) GetType() ToolCallType

func (*ToolCallStreamChunk) ProtoMessage

func (*ToolCallStreamChunk) ProtoMessage()

func (*ToolCallStreamChunk) ProtoReflect

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

func (*ToolCallStreamChunk) Reset

func (x *ToolCallStreamChunk) Reset()

func (*ToolCallStreamChunk) String

func (x *ToolCallStreamChunk) String() string

type ToolCallType

type ToolCallType int32

ToolCallType specifies the type of a tool call.

const (
	ToolCallType_TOOL_CALL_TYPE_UNSPECIFIED ToolCallType = 0 // Default, unspecified tool call type.
	ToolCallType_TOOL_CALL_TYPE_FUNCTION    ToolCallType = 1 // Tool call is a function call.
)

func (ToolCallType) Descriptor

func (ToolCallType) Enum

func (x ToolCallType) Enum() *ToolCallType

func (ToolCallType) EnumDescriptor deprecated

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

Deprecated: Use ToolCallType.Descriptor instead.

func (ToolCallType) Number

func (ToolCallType) String

func (x ToolCallType) String() string

func (ToolCallType) Type

type ToolDecision

type ToolDecision struct {

	// ID of the ToolCall from the corresponding ToolUseRequest.
	ToolCallId string `protobuf:"bytes,1,opt,name=tool_call_id,json=toolCallId,proto3" json:"tool_call_id,omitempty"`
	// User's decision: true for approved, false for denied.
	Approved bool `protobuf:"varint,2,opt,name=approved,proto3" json:"approved,omitempty"`
	// Optional reason from the user for their decision.
	Reason *string `protobuf:"bytes,3,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

Client -> Server: Client's decision for a tool use requested by the server.

func (*ToolDecision) Descriptor deprecated

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

Deprecated: Use ToolDecision.ProtoReflect.Descriptor instead.

func (*ToolDecision) GetApproved

func (x *ToolDecision) GetApproved() bool

func (*ToolDecision) GetReason

func (x *ToolDecision) GetReason() string

func (*ToolDecision) GetToolCallId

func (x *ToolDecision) GetToolCallId() string

func (*ToolDecision) ProtoMessage

func (*ToolDecision) ProtoMessage()

func (*ToolDecision) ProtoReflect

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

func (*ToolDecision) Reset

func (x *ToolDecision) Reset()

func (*ToolDecision) String

func (x *ToolDecision) String() string

type ToolExecutionResult

type ToolExecutionResult struct {

	// ID of the ToolCall that was executed.
	ToolCallId string `protobuf:"bytes,1,opt,name=tool_call_id,json=toolCallId,proto3" json:"tool_call_id,omitempty"`
	// The result from the tool, as a JSON string.
	ResultJson string `protobuf:"bytes,2,opt,name=result_json,json=resultJson,proto3" json:"result_json,omitempty"`
	// True if the tool execution encountered an error.
	ExecutionFailed *bool `protobuf:"varint,3,opt,name=execution_failed,json=executionFailed,proto3,oneof" json:"execution_failed,omitempty"`
	// Error details if execution_failed is true.
	ErrorMessage *string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Server -> Client: Server sends the result of a tool that was executed.

func (*ToolExecutionResult) Descriptor deprecated

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

Deprecated: Use ToolExecutionResult.ProtoReflect.Descriptor instead.

func (*ToolExecutionResult) GetErrorMessage

func (x *ToolExecutionResult) GetErrorMessage() string

func (*ToolExecutionResult) GetExecutionFailed

func (x *ToolExecutionResult) GetExecutionFailed() bool

func (*ToolExecutionResult) GetResultJson

func (x *ToolExecutionResult) GetResultJson() string

func (*ToolExecutionResult) GetToolCallId

func (x *ToolExecutionResult) GetToolCallId() string

func (*ToolExecutionResult) ProtoMessage

func (*ToolExecutionResult) ProtoMessage()

func (*ToolExecutionResult) ProtoReflect

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

func (*ToolExecutionResult) Reset

func (x *ToolExecutionResult) Reset()

func (*ToolExecutionResult) String

func (x *ToolExecutionResult) String() string

type ToolSpecificApprovalPolicy

type ToolSpecificApprovalPolicy struct {
	ToolName string             `protobuf:"bytes,1,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`                       // The name of the tool (e.g., as identified by the LLM).
	Action   ToolApprovalAction `protobuf:"varint,2,opt,name=action,proto3,enum=madsrc.aigent.v1.ToolApprovalAction" json:"action,omitempty"` // The approval action for this specific tool.
	// contains filtered or unexported fields
}

Defines a policy for a specific tool.

func (*ToolSpecificApprovalPolicy) Descriptor deprecated

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

Deprecated: Use ToolSpecificApprovalPolicy.ProtoReflect.Descriptor instead.

func (*ToolSpecificApprovalPolicy) GetAction

func (*ToolSpecificApprovalPolicy) GetToolName

func (x *ToolSpecificApprovalPolicy) GetToolName() string

func (*ToolSpecificApprovalPolicy) ProtoMessage

func (*ToolSpecificApprovalPolicy) ProtoMessage()

func (*ToolSpecificApprovalPolicy) ProtoReflect

func (*ToolSpecificApprovalPolicy) Reset

func (x *ToolSpecificApprovalPolicy) Reset()

func (*ToolSpecificApprovalPolicy) String

func (x *ToolSpecificApprovalPolicy) String() string

type ToolUseRequest

type ToolUseRequest struct {

	// The complete ToolCall object that requires approval.
	ToolCall *ToolCall `protobuf:"bytes,1,opt,name=tool_call,json=toolCall,proto3" json:"tool_call,omitempty"`
	// Agent's explanation why approval is needed.
	ReasonForRequestingApproval *string `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

Server -> Client: Server requests the client's approval to use a specific tool.

func (*ToolUseRequest) Descriptor deprecated

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

Deprecated: Use ToolUseRequest.ProtoReflect.Descriptor instead.

func (*ToolUseRequest) GetReasonForRequestingApproval

func (x *ToolUseRequest) GetReasonForRequestingApproval() string

func (*ToolUseRequest) GetToolCall

func (x *ToolUseRequest) GetToolCall() *ToolCall

func (*ToolUseRequest) ProtoMessage

func (*ToolUseRequest) ProtoMessage()

func (*ToolUseRequest) ProtoReflect

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

func (*ToolUseRequest) Reset

func (x *ToolUseRequest) Reset()

func (*ToolUseRequest) String

func (x *ToolUseRequest) String() string

type TurnCompletion

type TurnCompletion struct {

	// Why the LLM's turn ended.
	FinishReason FinishReason `` /* 133-byte string literal not displayed */
	// The full, concatenated text content of the LLM's turn.
	FinalAssembledContent *string `` /* 132-byte string literal not displayed */
	// All tool calls made and executed in this turn.
	AllToolCallsInTurn []*ToolCall `protobuf:"bytes,3,rep,name=all_tool_calls_in_turn,json=allToolCallsInTurn,proto3" json:"all_tool_calls_in_turn,omitempty"`
	// If the turn completed due to an error not covered by FinishReason (e.g. an internal server error during response generation).
	ErrorMessage *string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Server -> Client: Signals that the current turn of LLM interaction is complete.

func (*TurnCompletion) Descriptor deprecated

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

Deprecated: Use TurnCompletion.ProtoReflect.Descriptor instead.

func (*TurnCompletion) GetAllToolCallsInTurn

func (x *TurnCompletion) GetAllToolCallsInTurn() []*ToolCall

func (*TurnCompletion) GetErrorMessage

func (x *TurnCompletion) GetErrorMessage() string

func (*TurnCompletion) GetFinalAssembledContent

func (x *TurnCompletion) GetFinalAssembledContent() string

func (*TurnCompletion) GetFinishReason

func (x *TurnCompletion) GetFinishReason() FinishReason

func (*TurnCompletion) ProtoMessage

func (*TurnCompletion) ProtoMessage()

func (*TurnCompletion) ProtoReflect

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

func (*TurnCompletion) Reset

func (x *TurnCompletion) Reset()

func (*TurnCompletion) String

func (x *TurnCompletion) String() string

type UserTextInput

type UserTextInput struct {

	// Subsequent text input from the user.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

Client -> Server: Sends subsequent text input from the user.

func (*UserTextInput) Descriptor deprecated

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

Deprecated: Use UserTextInput.ProtoReflect.Descriptor instead.

func (*UserTextInput) GetText

func (x *UserTextInput) GetText() string

func (*UserTextInput) ProtoMessage

func (*UserTextInput) ProtoMessage()

func (*UserTextInput) ProtoReflect

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

func (*UserTextInput) Reset

func (x *UserTextInput) Reset()

func (*UserTextInput) String

func (x *UserTextInput) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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