v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiService_Chat_FullMethodName         = "/llmx.api.v1.ApiService/Chat"
	ApiService_ChatStream_FullMethodName   = "/llmx.api.v1.ApiService/ChatStream"
	ApiService_ChatRealtime_FullMethodName = "/llmx.api.v1.ApiService/ChatRealtime"
)

Variables

View Source
var ApiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "llmx.api.v1.ApiService",
	HandlerType: (*ApiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Chat",
			Handler:    _ApiService_Chat_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ChatStream",
			Handler:       _ApiService_ChatStream_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ChatRealtime",
			Handler:       _ApiService_ChatRealtime_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/v1/api.proto",
}

ApiService_ServiceDesc is the grpc.ServiceDesc for ApiService 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 File_api_v1_api_proto protoreflect.FileDescriptor

Functions

func RegisterApiServiceServer

func RegisterApiServiceServer(s grpc.ServiceRegistrar, srv ApiServiceServer)

Types

type ApiServiceClient

ApiServiceClient is the client API for ApiService 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.

func NewApiServiceClient

func NewApiServiceClient(cc grpc.ClientConnInterface) ApiServiceClient

type ApiServiceServer

ApiServiceServer is the server API for ApiService service. All implementations should embed UnimplementedApiServiceServer for forward compatibility.

type ApiService_ChatRealtimeClient

type ApiService_ChatRealtimeClient = grpc.BidiStreamingClient[ChatRealtimeRequest, ChatRealtimeResponse]

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

type ApiService_ChatRealtimeServer

type ApiService_ChatRealtimeServer = grpc.BidiStreamingServer[ChatRealtimeRequest, ChatRealtimeResponse]

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

type ApiService_ChatStreamClient

type ApiService_ChatStreamClient = grpc.ServerStreamingClient[ChatStreamResponse]

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

type ApiService_ChatStreamServer

type ApiService_ChatStreamServer = grpc.ServerStreamingServer[ChatStreamResponse]

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

type ChatCompletion

type ChatCompletion struct {
	Delta   bool         `protobuf:"varint,1,opt,name=delta,proto3" json:"delta,omitempty"`
	Model   string       `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
	Message *ChatMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Usage   *ChatUsage   `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"`
	Id      string       `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatCompletion) Descriptor deprecated

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

Deprecated: Use ChatCompletion.ProtoReflect.Descriptor instead.

func (*ChatCompletion) GetDelta

func (x *ChatCompletion) GetDelta() bool

func (*ChatCompletion) GetId

func (x *ChatCompletion) GetId() string

func (*ChatCompletion) GetMessage

func (x *ChatCompletion) GetMessage() *ChatMessage

func (*ChatCompletion) GetModel

func (x *ChatCompletion) GetModel() string

func (*ChatCompletion) GetUsage

func (x *ChatCompletion) GetUsage() *ChatUsage

func (*ChatCompletion) ProtoMessage

func (*ChatCompletion) ProtoMessage()

func (*ChatCompletion) ProtoReflect

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

func (*ChatCompletion) Reset

func (x *ChatCompletion) Reset()

func (*ChatCompletion) String

func (x *ChatCompletion) String() string

type ChatContent

type ChatContent struct {

	// Types that are valid to be assigned to Content:
	//
	//	*ChatContent_Text
	//	*ChatContent_Reasoning
	//	*ChatContent_Refusal
	//	*ChatContent_ToolCall
	//	*ChatContent_ToolResult
	//	*ChatContent_Audio
	Content isChatContent_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*ChatContent) Descriptor deprecated

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

Deprecated: Use ChatContent.ProtoReflect.Descriptor instead.

func (*ChatContent) GetAudio

func (x *ChatContent) GetAudio() *ChatContentAudio

func (*ChatContent) GetContent

func (x *ChatContent) GetContent() isChatContent_Content

func (*ChatContent) GetReasoning

func (x *ChatContent) GetReasoning() *ChatContentReasoning

func (*ChatContent) GetRefusal

func (x *ChatContent) GetRefusal() *ChatContentRefusal

func (*ChatContent) GetText

func (x *ChatContent) GetText() *ChatContentText

func (*ChatContent) GetToolCall

func (x *ChatContent) GetToolCall() *ChatContentToolCall

func (*ChatContent) GetToolResult

func (x *ChatContent) GetToolResult() *ChatContentToolResult

func (*ChatContent) ProtoMessage

func (*ChatContent) ProtoMessage()

func (*ChatContent) ProtoReflect

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

func (*ChatContent) Reset

func (x *ChatContent) Reset()

func (*ChatContent) String

func (x *ChatContent) String() string

type ChatContentAudio

type ChatContentAudio struct {
	Delta      bool   `protobuf:"varint,1,opt,name=delta,proto3" json:"delta,omitempty"`
	Data       string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Format     string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
	Transcript string `protobuf:"bytes,4,opt,name=transcript,proto3" json:"transcript,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatContentAudio) Descriptor deprecated

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

Deprecated: Use ChatContentAudio.ProtoReflect.Descriptor instead.

func (*ChatContentAudio) GetData

func (x *ChatContentAudio) GetData() string

func (*ChatContentAudio) GetDelta

func (x *ChatContentAudio) GetDelta() bool

func (*ChatContentAudio) GetFormat

func (x *ChatContentAudio) GetFormat() string

func (*ChatContentAudio) GetTranscript

func (x *ChatContentAudio) GetTranscript() string

func (*ChatContentAudio) ProtoMessage

func (*ChatContentAudio) ProtoMessage()

func (*ChatContentAudio) ProtoReflect

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

func (*ChatContentAudio) Reset

func (x *ChatContentAudio) Reset()

func (*ChatContentAudio) String

func (x *ChatContentAudio) String() string

type ChatContentReasoning

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

func (*ChatContentReasoning) Descriptor deprecated

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

Deprecated: Use ChatContentReasoning.ProtoReflect.Descriptor instead.

func (*ChatContentReasoning) GetText

func (x *ChatContentReasoning) GetText() string

func (*ChatContentReasoning) GetThoughtSignature

func (x *ChatContentReasoning) GetThoughtSignature() string

func (*ChatContentReasoning) ProtoMessage

func (*ChatContentReasoning) ProtoMessage()

func (*ChatContentReasoning) ProtoReflect

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

func (*ChatContentReasoning) Reset

func (x *ChatContentReasoning) Reset()

func (*ChatContentReasoning) String

func (x *ChatContentReasoning) String() string

type ChatContentRefusal

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

func (*ChatContentRefusal) Descriptor deprecated

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

Deprecated: Use ChatContentRefusal.ProtoReflect.Descriptor instead.

func (*ChatContentRefusal) GetText

func (x *ChatContentRefusal) GetText() string

func (*ChatContentRefusal) ProtoMessage

func (*ChatContentRefusal) ProtoMessage()

func (*ChatContentRefusal) ProtoReflect

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

func (*ChatContentRefusal) Reset

func (x *ChatContentRefusal) Reset()

func (*ChatContentRefusal) String

func (x *ChatContentRefusal) String() string

type ChatContentText

type ChatContentText struct {
	Delta bool   `protobuf:"varint,1,opt,name=delta,proto3" json:"delta,omitempty"`
	Text  string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatContentText) Descriptor deprecated

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

Deprecated: Use ChatContentText.ProtoReflect.Descriptor instead.

func (*ChatContentText) GetDelta

func (x *ChatContentText) GetDelta() bool

func (*ChatContentText) GetText

func (x *ChatContentText) GetText() string

func (*ChatContentText) ProtoMessage

func (*ChatContentText) ProtoMessage()

func (*ChatContentText) ProtoReflect

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

func (*ChatContentText) Reset

func (x *ChatContentText) Reset()

func (*ChatContentText) String

func (x *ChatContentText) String() string

type ChatContentToolCall

type ChatContentToolCall struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Arguments string `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatContentToolCall) Descriptor deprecated

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

Deprecated: Use ChatContentToolCall.ProtoReflect.Descriptor instead.

func (*ChatContentToolCall) GetArguments

func (x *ChatContentToolCall) GetArguments() string

func (*ChatContentToolCall) GetId

func (x *ChatContentToolCall) GetId() string

func (*ChatContentToolCall) GetName

func (x *ChatContentToolCall) GetName() string

func (*ChatContentToolCall) ProtoMessage

func (*ChatContentToolCall) ProtoMessage()

func (*ChatContentToolCall) ProtoReflect

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

func (*ChatContentToolCall) Reset

func (x *ChatContentToolCall) Reset()

func (*ChatContentToolCall) String

func (x *ChatContentToolCall) String() string

type ChatContentToolResult

type ChatContentToolResult struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Result string `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatContentToolResult) Descriptor deprecated

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

Deprecated: Use ChatContentToolResult.ProtoReflect.Descriptor instead.

func (*ChatContentToolResult) GetId

func (x *ChatContentToolResult) GetId() string

func (*ChatContentToolResult) GetName

func (x *ChatContentToolResult) GetName() string

func (*ChatContentToolResult) GetResult

func (x *ChatContentToolResult) GetResult() string

func (*ChatContentToolResult) ProtoMessage

func (*ChatContentToolResult) ProtoMessage()

func (*ChatContentToolResult) ProtoReflect

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

func (*ChatContentToolResult) Reset

func (x *ChatContentToolResult) Reset()

func (*ChatContentToolResult) String

func (x *ChatContentToolResult) String() string

type ChatContent_Audio

type ChatContent_Audio struct {
	Audio *ChatContentAudio `protobuf:"bytes,25,opt,name=audio,proto3,oneof"`
}

type ChatContent_Reasoning

type ChatContent_Reasoning struct {
	Reasoning *ChatContentReasoning `protobuf:"bytes,21,opt,name=reasoning,proto3,oneof"`
}

type ChatContent_Refusal

type ChatContent_Refusal struct {
	Refusal *ChatContentRefusal `protobuf:"bytes,22,opt,name=refusal,proto3,oneof"`
}

type ChatContent_Text

type ChatContent_Text struct {
	Text *ChatContentText `protobuf:"bytes,20,opt,name=text,proto3,oneof"`
}

type ChatContent_ToolCall

type ChatContent_ToolCall struct {
	ToolCall *ChatContentToolCall `protobuf:"bytes,23,opt,name=tool_call,json=toolCall,proto3,oneof"`
}

type ChatContent_ToolResult

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

type ChatMessage

type ChatMessage struct {
	Id       string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Role     string         `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	Contents []*ChatContent `protobuf:"bytes,3,rep,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMessage) Descriptor deprecated

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

Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.

func (*ChatMessage) GetContents

func (x *ChatMessage) GetContents() []*ChatContent

func (*ChatMessage) GetId

func (x *ChatMessage) GetId() string

func (*ChatMessage) GetRole

func (x *ChatMessage) GetRole() string

func (*ChatMessage) ProtoMessage

func (*ChatMessage) ProtoMessage()

func (*ChatMessage) ProtoReflect

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

func (*ChatMessage) Reset

func (x *ChatMessage) Reset()

func (*ChatMessage) String

func (x *ChatMessage) String() string

type ChatParams

type ChatParams struct {
	Model          string         `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	Tools          []*ChatTool    `protobuf:"bytes,2,rep,name=tools,proto3" json:"tools,omitempty"`
	Instructions   string         `protobuf:"bytes,3,opt,name=instructions,proto3" json:"instructions,omitempty"`
	Messages       []*ChatMessage `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"`
	Voice          string         `protobuf:"bytes,5,opt,name=voice,proto3" json:"voice,omitempty"`
	Temperature    *float32       `protobuf:"fixed32,6,opt,name=temperature,proto3,oneof" json:"temperature,omitempty"`
	TopP           *float32       `protobuf:"fixed32,7,opt,name=top_p,json=topP,proto3,oneof" json:"top_p,omitempty"`
	TopK           *int32         `protobuf:"varint,8,opt,name=top_k,json=topK,proto3,oneof" json:"top_k,omitempty"`
	MaxTokens      *int64         `protobuf:"varint,9,opt,name=max_tokens,json=maxTokens,proto3,oneof" json:"max_tokens,omitempty"`
	StopSequences  []string       `protobuf:"bytes,10,rep,name=stop_sequences,json=stopSequences,proto3" json:"stop_sequences,omitempty"`
	ReasoningLevel *int32         `protobuf:"varint,11,opt,name=reasoning_level,json=reasoningLevel,proto3,oneof" json:"reasoning_level,omitempty"`
	// contains filtered or unexported fields
}

others

func (*ChatParams) Descriptor deprecated

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

Deprecated: Use ChatParams.ProtoReflect.Descriptor instead.

func (*ChatParams) GetInstructions

func (x *ChatParams) GetInstructions() string

func (*ChatParams) GetMaxTokens

func (x *ChatParams) GetMaxTokens() int64

func (*ChatParams) GetMessages

func (x *ChatParams) GetMessages() []*ChatMessage

func (*ChatParams) GetModel

func (x *ChatParams) GetModel() string

func (*ChatParams) GetReasoningLevel

func (x *ChatParams) GetReasoningLevel() int32

func (*ChatParams) GetStopSequences

func (x *ChatParams) GetStopSequences() []string

func (*ChatParams) GetTemperature

func (x *ChatParams) GetTemperature() float32

func (*ChatParams) GetTools

func (x *ChatParams) GetTools() []*ChatTool

func (*ChatParams) GetTopK

func (x *ChatParams) GetTopK() int32

func (*ChatParams) GetTopP

func (x *ChatParams) GetTopP() float32

func (*ChatParams) GetVoice

func (x *ChatParams) GetVoice() string

func (*ChatParams) ProtoMessage

func (*ChatParams) ProtoMessage()

func (*ChatParams) ProtoReflect

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

func (*ChatParams) Reset

func (x *ChatParams) Reset()

func (*ChatParams) String

func (x *ChatParams) String() string

type ChatRealtimeRequest

type ChatRealtimeRequest struct {
	Init    *ChatRealtimeRequest_Init `protobuf:"bytes,1,opt,name=init,proto3" json:"init,omitempty"`
	Message *ChatMessage              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatRealtimeRequest) Descriptor deprecated

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

Deprecated: Use ChatRealtimeRequest.ProtoReflect.Descriptor instead.

func (*ChatRealtimeRequest) GetInit

func (*ChatRealtimeRequest) GetMessage

func (x *ChatRealtimeRequest) GetMessage() *ChatMessage

func (*ChatRealtimeRequest) ProtoMessage

func (*ChatRealtimeRequest) ProtoMessage()

func (*ChatRealtimeRequest) ProtoReflect

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

func (*ChatRealtimeRequest) Reset

func (x *ChatRealtimeRequest) Reset()

func (*ChatRealtimeRequest) String

func (x *ChatRealtimeRequest) String() string

type ChatRealtimeRequest_Init

type ChatRealtimeRequest_Init struct {
	ChatParams *ChatParams `protobuf:"bytes,1,opt,name=chat_params,json=chatParams,proto3" json:"chat_params,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatRealtimeRequest_Init) Descriptor deprecated

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

Deprecated: Use ChatRealtimeRequest_Init.ProtoReflect.Descriptor instead.

func (*ChatRealtimeRequest_Init) GetChatParams

func (x *ChatRealtimeRequest_Init) GetChatParams() *ChatParams

func (*ChatRealtimeRequest_Init) ProtoMessage

func (*ChatRealtimeRequest_Init) ProtoMessage()

func (*ChatRealtimeRequest_Init) ProtoReflect

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

func (*ChatRealtimeRequest_Init) Reset

func (x *ChatRealtimeRequest_Init) Reset()

func (*ChatRealtimeRequest_Init) String

func (x *ChatRealtimeRequest_Init) String() string

type ChatRealtimeResponse

type ChatRealtimeResponse struct {
	ChatCompletion *ChatCompletion `protobuf:"bytes,1,opt,name=chat_completion,json=chatCompletion,proto3" json:"chat_completion,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatRealtimeResponse) Descriptor deprecated

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

Deprecated: Use ChatRealtimeResponse.ProtoReflect.Descriptor instead.

func (*ChatRealtimeResponse) GetChatCompletion

func (x *ChatRealtimeResponse) GetChatCompletion() *ChatCompletion

func (*ChatRealtimeResponse) ProtoMessage

func (*ChatRealtimeResponse) ProtoMessage()

func (*ChatRealtimeResponse) ProtoReflect

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

func (*ChatRealtimeResponse) Reset

func (x *ChatRealtimeResponse) Reset()

func (*ChatRealtimeResponse) String

func (x *ChatRealtimeResponse) String() string

type ChatRequest

type ChatRequest struct {
	ChatParams *ChatParams `protobuf:"bytes,1,opt,name=chat_params,json=chatParams,proto3" json:"chat_params,omitempty"`
	// contains filtered or unexported fields
}

rpc messages

func (*ChatRequest) Descriptor deprecated

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

Deprecated: Use ChatRequest.ProtoReflect.Descriptor instead.

func (*ChatRequest) GetChatParams

func (x *ChatRequest) GetChatParams() *ChatParams

func (*ChatRequest) ProtoMessage

func (*ChatRequest) ProtoMessage()

func (*ChatRequest) ProtoReflect

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

func (*ChatRequest) Reset

func (x *ChatRequest) Reset()

func (*ChatRequest) String

func (x *ChatRequest) String() string

type ChatResponse

type ChatResponse struct {
	ChatCompletion *ChatCompletion `protobuf:"bytes,1,opt,name=chat_completion,json=chatCompletion,proto3" json:"chat_completion,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatResponse) Descriptor deprecated

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

Deprecated: Use ChatResponse.ProtoReflect.Descriptor instead.

func (*ChatResponse) GetChatCompletion

func (x *ChatResponse) GetChatCompletion() *ChatCompletion

func (*ChatResponse) ProtoMessage

func (*ChatResponse) ProtoMessage()

func (*ChatResponse) ProtoReflect

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

func (*ChatResponse) Reset

func (x *ChatResponse) Reset()

func (*ChatResponse) String

func (x *ChatResponse) String() string

type ChatStreamRequest

type ChatStreamRequest struct {
	ChatParams *ChatParams `protobuf:"bytes,1,opt,name=chat_params,json=chatParams,proto3" json:"chat_params,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatStreamRequest) Descriptor deprecated

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

Deprecated: Use ChatStreamRequest.ProtoReflect.Descriptor instead.

func (*ChatStreamRequest) GetChatParams

func (x *ChatStreamRequest) GetChatParams() *ChatParams

func (*ChatStreamRequest) ProtoMessage

func (*ChatStreamRequest) ProtoMessage()

func (*ChatStreamRequest) ProtoReflect

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

func (*ChatStreamRequest) Reset

func (x *ChatStreamRequest) Reset()

func (*ChatStreamRequest) String

func (x *ChatStreamRequest) String() string

type ChatStreamResponse

type ChatStreamResponse struct {
	ChatCompletion *ChatCompletion `protobuf:"bytes,1,opt,name=chat_completion,json=chatCompletion,proto3" json:"chat_completion,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatStreamResponse) Descriptor deprecated

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

Deprecated: Use ChatStreamResponse.ProtoReflect.Descriptor instead.

func (*ChatStreamResponse) GetChatCompletion

func (x *ChatStreamResponse) GetChatCompletion() *ChatCompletion

func (*ChatStreamResponse) ProtoMessage

func (*ChatStreamResponse) ProtoMessage()

func (*ChatStreamResponse) ProtoReflect

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

func (*ChatStreamResponse) Reset

func (x *ChatStreamResponse) Reset()

func (*ChatStreamResponse) String

func (x *ChatStreamResponse) String() string

type ChatTool

type ChatTool struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Desc   string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	Params string `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatTool) Descriptor deprecated

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

Deprecated: Use ChatTool.ProtoReflect.Descriptor instead.

func (*ChatTool) GetDesc

func (x *ChatTool) GetDesc() string

func (*ChatTool) GetName

func (x *ChatTool) GetName() string

func (*ChatTool) GetParams

func (x *ChatTool) GetParams() string

func (*ChatTool) ProtoMessage

func (*ChatTool) ProtoMessage()

func (*ChatTool) ProtoReflect

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

func (*ChatTool) Reset

func (x *ChatTool) Reset()

func (*ChatTool) String

func (x *ChatTool) String() string

type ChatUsage

type ChatUsage struct {
	PromptTokens     int64 `protobuf:"varint,1,opt,name=prompt_tokens,json=promptTokens,proto3" json:"prompt_tokens,omitempty"`
	CompletionTokens int64 `protobuf:"varint,2,opt,name=completion_tokens,json=completionTokens,proto3" json:"completion_tokens,omitempty"`
	TotalTokens      int64 `protobuf:"varint,3,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`
	ReasoningTokens  int64 `protobuf:"varint,4,opt,name=reasoning_tokens,json=reasoningTokens,proto3" json:"reasoning_tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatUsage) Descriptor deprecated

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

Deprecated: Use ChatUsage.ProtoReflect.Descriptor instead.

func (*ChatUsage) GetCompletionTokens

func (x *ChatUsage) GetCompletionTokens() int64

func (*ChatUsage) GetPromptTokens

func (x *ChatUsage) GetPromptTokens() int64

func (*ChatUsage) GetReasoningTokens

func (x *ChatUsage) GetReasoningTokens() int64

func (*ChatUsage) GetTotalTokens

func (x *ChatUsage) GetTotalTokens() int64

func (*ChatUsage) ProtoMessage

func (*ChatUsage) ProtoMessage()

func (*ChatUsage) ProtoReflect

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

func (*ChatUsage) Reset

func (x *ChatUsage) Reset()

func (*ChatUsage) String

func (x *ChatUsage) String() string

type UnimplementedApiServiceServer

type UnimplementedApiServiceServer struct{}

UnimplementedApiServiceServer should 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 (UnimplementedApiServiceServer) Chat

type UnsafeApiServiceServer

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

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

Jump to

Keyboard shortcuts

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