Versions in this module Expand all Collapse all v0 v0.0.1 Aug 10, 2026 Changes in this version + const ApiService_ChatRealtime_FullMethodName + const ApiService_ChatStream_FullMethodName + const ApiService_Chat_FullMethodName + var ApiService_ServiceDesc = grpc.ServiceDesc + var File_api_v1_api_proto protoreflect.FileDescriptor + func RegisterApiServiceServer(s grpc.ServiceRegistrar, srv ApiServiceServer) + type ApiServiceClient interface + Chat func(ctx context.Context, in *ChatRequest, opts ...grpc.CallOption) (*ChatResponse, error) + ChatRealtime func(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ChatRealtimeRequest, ChatRealtimeResponse], error) + ChatStream func(ctx context.Context, in *ChatStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ChatStreamResponse], error) + func NewApiServiceClient(cc grpc.ClientConnInterface) ApiServiceClient + type ApiServiceServer interface + Chat func(context.Context, *ChatRequest) (*ChatResponse, error) + ChatRealtime func(grpc.BidiStreamingServer[ChatRealtimeRequest, ChatRealtimeResponse]) error + ChatStream func(*ChatStreamRequest, grpc.ServerStreamingServer[ChatStreamResponse]) error + type ApiService_ChatRealtimeClient = grpc.BidiStreamingClient[ChatRealtimeRequest, ChatRealtimeResponse] + type ApiService_ChatRealtimeServer = grpc.BidiStreamingServer[ChatRealtimeRequest, ChatRealtimeResponse] + type ApiService_ChatStreamClient = grpc.ServerStreamingClient[ChatStreamResponse] + type ApiService_ChatStreamServer = grpc.ServerStreamingServer[ChatStreamResponse] + type ChatCompletion struct + Delta bool + Id string + Message *ChatMessage + Model string + Usage *ChatUsage + func (*ChatCompletion) Descriptor() ([]byte, []int) + func (*ChatCompletion) ProtoMessage() + func (x *ChatCompletion) GetDelta() bool + func (x *ChatCompletion) GetId() string + func (x *ChatCompletion) GetMessage() *ChatMessage + func (x *ChatCompletion) GetModel() string + func (x *ChatCompletion) GetUsage() *ChatUsage + func (x *ChatCompletion) ProtoReflect() protoreflect.Message + func (x *ChatCompletion) Reset() + func (x *ChatCompletion) String() string + type ChatContent struct + Content isChatContent_Content + func (*ChatContent) Descriptor() ([]byte, []int) + func (*ChatContent) ProtoMessage() + func (x *ChatContent) GetAudio() *ChatContentAudio + func (x *ChatContent) GetContent() isChatContent_Content + func (x *ChatContent) GetReasoning() *ChatContentReasoning + func (x *ChatContent) GetRefusal() *ChatContentRefusal + func (x *ChatContent) GetText() *ChatContentText + func (x *ChatContent) GetToolCall() *ChatContentToolCall + func (x *ChatContent) GetToolResult() *ChatContentToolResult + func (x *ChatContent) ProtoReflect() protoreflect.Message + func (x *ChatContent) Reset() + func (x *ChatContent) String() string + type ChatContentAudio struct + Data string + Delta bool + Format string + Transcript string + func (*ChatContentAudio) Descriptor() ([]byte, []int) + func (*ChatContentAudio) ProtoMessage() + func (x *ChatContentAudio) GetData() string + func (x *ChatContentAudio) GetDelta() bool + func (x *ChatContentAudio) GetFormat() string + func (x *ChatContentAudio) GetTranscript() string + func (x *ChatContentAudio) ProtoReflect() protoreflect.Message + func (x *ChatContentAudio) Reset() + func (x *ChatContentAudio) String() string + type ChatContentReasoning struct + Text string + ThoughtSignature string + func (*ChatContentReasoning) Descriptor() ([]byte, []int) + func (*ChatContentReasoning) ProtoMessage() + func (x *ChatContentReasoning) GetText() string + func (x *ChatContentReasoning) GetThoughtSignature() string + func (x *ChatContentReasoning) ProtoReflect() protoreflect.Message + func (x *ChatContentReasoning) Reset() + func (x *ChatContentReasoning) String() string + type ChatContentRefusal struct + Text string + func (*ChatContentRefusal) Descriptor() ([]byte, []int) + func (*ChatContentRefusal) ProtoMessage() + func (x *ChatContentRefusal) GetText() string + func (x *ChatContentRefusal) ProtoReflect() protoreflect.Message + func (x *ChatContentRefusal) Reset() + func (x *ChatContentRefusal) String() string + type ChatContentText struct + Delta bool + Text string + func (*ChatContentText) Descriptor() ([]byte, []int) + func (*ChatContentText) ProtoMessage() + func (x *ChatContentText) GetDelta() bool + func (x *ChatContentText) GetText() string + func (x *ChatContentText) ProtoReflect() protoreflect.Message + func (x *ChatContentText) Reset() + func (x *ChatContentText) String() string + type ChatContentToolCall struct + Arguments string + Id string + Name string + func (*ChatContentToolCall) Descriptor() ([]byte, []int) + func (*ChatContentToolCall) ProtoMessage() + func (x *ChatContentToolCall) GetArguments() string + func (x *ChatContentToolCall) GetId() string + func (x *ChatContentToolCall) GetName() string + func (x *ChatContentToolCall) ProtoReflect() protoreflect.Message + func (x *ChatContentToolCall) Reset() + func (x *ChatContentToolCall) String() string + type ChatContentToolResult struct + Id string + Name string + Result string + func (*ChatContentToolResult) Descriptor() ([]byte, []int) + func (*ChatContentToolResult) ProtoMessage() + func (x *ChatContentToolResult) GetId() string + func (x *ChatContentToolResult) GetName() string + func (x *ChatContentToolResult) GetResult() string + func (x *ChatContentToolResult) ProtoReflect() protoreflect.Message + func (x *ChatContentToolResult) Reset() + func (x *ChatContentToolResult) String() string + type ChatContent_Audio struct + Audio *ChatContentAudio + type ChatContent_Reasoning struct + Reasoning *ChatContentReasoning + type ChatContent_Refusal struct + Refusal *ChatContentRefusal + type ChatContent_Text struct + Text *ChatContentText + type ChatContent_ToolCall struct + ToolCall *ChatContentToolCall + type ChatContent_ToolResult struct + ToolResult *ChatContentToolResult + type ChatMessage struct + Contents []*ChatContent + Id string + Role string + func (*ChatMessage) Descriptor() ([]byte, []int) + func (*ChatMessage) ProtoMessage() + func (x *ChatMessage) GetContents() []*ChatContent + func (x *ChatMessage) GetId() string + func (x *ChatMessage) GetRole() string + func (x *ChatMessage) ProtoReflect() protoreflect.Message + func (x *ChatMessage) Reset() + func (x *ChatMessage) String() string + type ChatParams struct + Instructions string + MaxTokens *int64 + Messages []*ChatMessage + Model string + ReasoningLevel *int32 + StopSequences []string + Temperature *float32 + Tools []*ChatTool + TopK *int32 + TopP *float32 + Voice string + func (*ChatParams) Descriptor() ([]byte, []int) + func (*ChatParams) ProtoMessage() + func (x *ChatParams) GetInstructions() string + func (x *ChatParams) GetMaxTokens() int64 + func (x *ChatParams) GetMessages() []*ChatMessage + func (x *ChatParams) GetModel() string + func (x *ChatParams) GetReasoningLevel() int32 + func (x *ChatParams) GetStopSequences() []string + func (x *ChatParams) GetTemperature() float32 + func (x *ChatParams) GetTools() []*ChatTool + func (x *ChatParams) GetTopK() int32 + func (x *ChatParams) GetTopP() float32 + func (x *ChatParams) GetVoice() string + func (x *ChatParams) ProtoReflect() protoreflect.Message + func (x *ChatParams) Reset() + func (x *ChatParams) String() string + type ChatRealtimeRequest struct + Init *ChatRealtimeRequest_Init + Message *ChatMessage + func (*ChatRealtimeRequest) Descriptor() ([]byte, []int) + func (*ChatRealtimeRequest) ProtoMessage() + func (x *ChatRealtimeRequest) GetInit() *ChatRealtimeRequest_Init + func (x *ChatRealtimeRequest) GetMessage() *ChatMessage + func (x *ChatRealtimeRequest) ProtoReflect() protoreflect.Message + func (x *ChatRealtimeRequest) Reset() + func (x *ChatRealtimeRequest) String() string + type ChatRealtimeRequest_Init struct + ChatParams *ChatParams + func (*ChatRealtimeRequest_Init) Descriptor() ([]byte, []int) + func (*ChatRealtimeRequest_Init) ProtoMessage() + func (x *ChatRealtimeRequest_Init) GetChatParams() *ChatParams + func (x *ChatRealtimeRequest_Init) ProtoReflect() protoreflect.Message + func (x *ChatRealtimeRequest_Init) Reset() + func (x *ChatRealtimeRequest_Init) String() string + type ChatRealtimeResponse struct + ChatCompletion *ChatCompletion + func (*ChatRealtimeResponse) Descriptor() ([]byte, []int) + func (*ChatRealtimeResponse) ProtoMessage() + func (x *ChatRealtimeResponse) GetChatCompletion() *ChatCompletion + func (x *ChatRealtimeResponse) ProtoReflect() protoreflect.Message + func (x *ChatRealtimeResponse) Reset() + func (x *ChatRealtimeResponse) String() string + type ChatRequest struct + ChatParams *ChatParams + func (*ChatRequest) Descriptor() ([]byte, []int) + func (*ChatRequest) ProtoMessage() + func (x *ChatRequest) GetChatParams() *ChatParams + func (x *ChatRequest) ProtoReflect() protoreflect.Message + func (x *ChatRequest) Reset() + func (x *ChatRequest) String() string + type ChatResponse struct + ChatCompletion *ChatCompletion + func (*ChatResponse) Descriptor() ([]byte, []int) + func (*ChatResponse) ProtoMessage() + func (x *ChatResponse) GetChatCompletion() *ChatCompletion + func (x *ChatResponse) ProtoReflect() protoreflect.Message + func (x *ChatResponse) Reset() + func (x *ChatResponse) String() string + type ChatStreamRequest struct + ChatParams *ChatParams + func (*ChatStreamRequest) Descriptor() ([]byte, []int) + func (*ChatStreamRequest) ProtoMessage() + func (x *ChatStreamRequest) GetChatParams() *ChatParams + func (x *ChatStreamRequest) ProtoReflect() protoreflect.Message + func (x *ChatStreamRequest) Reset() + func (x *ChatStreamRequest) String() string + type ChatStreamResponse struct + ChatCompletion *ChatCompletion + func (*ChatStreamResponse) Descriptor() ([]byte, []int) + func (*ChatStreamResponse) ProtoMessage() + func (x *ChatStreamResponse) GetChatCompletion() *ChatCompletion + func (x *ChatStreamResponse) ProtoReflect() protoreflect.Message + func (x *ChatStreamResponse) Reset() + func (x *ChatStreamResponse) String() string + type ChatTool struct + Desc string + Name string + Params string + func (*ChatTool) Descriptor() ([]byte, []int) + func (*ChatTool) ProtoMessage() + func (x *ChatTool) GetDesc() string + func (x *ChatTool) GetName() string + func (x *ChatTool) GetParams() string + func (x *ChatTool) ProtoReflect() protoreflect.Message + func (x *ChatTool) Reset() + func (x *ChatTool) String() string + type ChatUsage struct + CompletionTokens int64 + PromptTokens int64 + ReasoningTokens int64 + TotalTokens int64 + func (*ChatUsage) Descriptor() ([]byte, []int) + func (*ChatUsage) ProtoMessage() + func (x *ChatUsage) GetCompletionTokens() int64 + func (x *ChatUsage) GetPromptTokens() int64 + func (x *ChatUsage) GetReasoningTokens() int64 + func (x *ChatUsage) GetTotalTokens() int64 + func (x *ChatUsage) ProtoReflect() protoreflect.Message + func (x *ChatUsage) Reset() + func (x *ChatUsage) String() string + type UnimplementedApiServiceServer struct + func (UnimplementedApiServiceServer) Chat(context.Context, *ChatRequest) (*ChatResponse, error) + func (UnimplementedApiServiceServer) ChatRealtime(grpc.BidiStreamingServer[ChatRealtimeRequest, ChatRealtimeResponse]) error + func (UnimplementedApiServiceServer) ChatStream(*ChatStreamRequest, grpc.ServerStreamingServer[ChatStreamResponse]) error + type UnsafeApiServiceServer interface