agent

package
v1.43.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChatRole_name = map[int32]string{
		0: "DEVELOPER",
		1: "SYSTEM",
		2: "USER",
		3: "ASSISTANT",
	}
	ChatRole_value = map[string]int32{
		"DEVELOPER": 0,
		"SYSTEM":    1,
		"USER":      2,
		"ASSISTANT": 3,
	}
)

Enum value maps for ChatRole.

View Source
var File_agent_livekit_agent_session_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AgentHandoff

type AgentHandoff struct {
	Id         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OldAgentId *string                `protobuf:"bytes,2,opt,name=old_agent_id,json=oldAgentId,proto3,oneof" json:"old_agent_id,omitempty"`
	NewAgentId string                 `protobuf:"bytes,3,opt,name=new_agent_id,json=newAgentId,proto3" json:"new_agent_id,omitempty"`
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentHandoff) Descriptor deprecated

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

Deprecated: Use AgentHandoff.ProtoReflect.Descriptor instead.

func (*AgentHandoff) GetCreatedAt

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

func (*AgentHandoff) GetId

func (x *AgentHandoff) GetId() string

func (*AgentHandoff) GetNewAgentId

func (x *AgentHandoff) GetNewAgentId() string

func (*AgentHandoff) GetOldAgentId

func (x *AgentHandoff) GetOldAgentId() string

func (*AgentHandoff) ProtoMessage

func (*AgentHandoff) ProtoMessage()

func (*AgentHandoff) ProtoReflect

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

func (*AgentHandoff) Reset

func (x *AgentHandoff) Reset()

func (*AgentHandoff) String

func (x *AgentHandoff) String() string

type ChatContext

type ChatContext struct {
	Items []*ChatContext_ChatItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatContext) Descriptor deprecated

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

Deprecated: Use ChatContext.ProtoReflect.Descriptor instead.

func (*ChatContext) GetItems

func (x *ChatContext) GetItems() []*ChatContext_ChatItem

func (*ChatContext) ProtoMessage

func (*ChatContext) ProtoMessage()

func (*ChatContext) ProtoReflect

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

func (*ChatContext) Reset

func (x *ChatContext) Reset()

func (*ChatContext) String

func (x *ChatContext) String() string

type ChatContext_ChatItem

type ChatContext_ChatItem struct {

	// Types that are valid to be assigned to Item:
	//
	//	*ChatContext_ChatItem_Message
	//	*ChatContext_ChatItem_FunctionCall
	//	*ChatContext_ChatItem_FunctionCallOutput
	//	*ChatContext_ChatItem_AgentHandoff
	Item isChatContext_ChatItem_Item `protobuf_oneof:"item"`
	// contains filtered or unexported fields
}

func (*ChatContext_ChatItem) Descriptor deprecated

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

Deprecated: Use ChatContext_ChatItem.ProtoReflect.Descriptor instead.

func (*ChatContext_ChatItem) GetAgentHandoff

func (x *ChatContext_ChatItem) GetAgentHandoff() *AgentHandoff

func (*ChatContext_ChatItem) GetFunctionCall

func (x *ChatContext_ChatItem) GetFunctionCall() *FunctionCall

func (*ChatContext_ChatItem) GetFunctionCallOutput

func (x *ChatContext_ChatItem) GetFunctionCallOutput() *FunctionCallOutput

func (*ChatContext_ChatItem) GetItem

func (x *ChatContext_ChatItem) GetItem() isChatContext_ChatItem_Item

func (*ChatContext_ChatItem) GetMessage

func (x *ChatContext_ChatItem) GetMessage() *ChatMessage

func (*ChatContext_ChatItem) ProtoMessage

func (*ChatContext_ChatItem) ProtoMessage()

func (*ChatContext_ChatItem) ProtoReflect

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

func (*ChatContext_ChatItem) Reset

func (x *ChatContext_ChatItem) Reset()

func (*ChatContext_ChatItem) String

func (x *ChatContext_ChatItem) String() string

type ChatContext_ChatItem_AgentHandoff

type ChatContext_ChatItem_AgentHandoff struct {
	AgentHandoff *AgentHandoff `protobuf:"bytes,4,opt,name=agent_handoff,json=agentHandoff,proto3,oneof"`
}

type ChatContext_ChatItem_FunctionCall

type ChatContext_ChatItem_FunctionCall struct {
	FunctionCall *FunctionCall `protobuf:"bytes,2,opt,name=function_call,json=functionCall,proto3,oneof"`
}

type ChatContext_ChatItem_FunctionCallOutput

type ChatContext_ChatItem_FunctionCallOutput struct {
	FunctionCallOutput *FunctionCallOutput `protobuf:"bytes,3,opt,name=function_call_output,json=functionCallOutput,proto3,oneof"`
}

type ChatContext_ChatItem_Message

type ChatContext_ChatItem_Message struct {
	Message *ChatMessage `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}

type ChatMessage

type ChatMessage struct {
	Id                   string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Role                 ChatRole                   `protobuf:"varint,2,opt,name=role,proto3,enum=livekit.agent.ChatRole" json:"role,omitempty"`
	Content              []*ChatMessage_ChatContent `protobuf:"bytes,3,rep,name=content,proto3" json:"content,omitempty"`
	Interrupted          bool                       `protobuf:"varint,4,opt,name=interrupted,proto3" json:"interrupted,omitempty"`
	TranscriptConfidence *float64                   `` /* 129-byte string literal not displayed */
	Extra                map[string]string          `` /* 137-byte string literal not displayed */
	Metrics              *MetricsReport             `protobuf:"bytes,7,opt,name=metrics,proto3" json:"metrics,omitempty"`
	CreatedAt            *timestamppb.Timestamp     `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMessage) Descriptor deprecated

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

Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.

func (*ChatMessage) GetContent

func (x *ChatMessage) GetContent() []*ChatMessage_ChatContent

func (*ChatMessage) GetCreatedAt

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

func (*ChatMessage) GetExtra

func (x *ChatMessage) GetExtra() map[string]string

func (*ChatMessage) GetId

func (x *ChatMessage) GetId() string

func (*ChatMessage) GetInterrupted

func (x *ChatMessage) GetInterrupted() bool

func (*ChatMessage) GetMetrics

func (x *ChatMessage) GetMetrics() *MetricsReport

func (*ChatMessage) GetRole

func (x *ChatMessage) GetRole() ChatRole

func (*ChatMessage) GetTranscriptConfidence

func (x *ChatMessage) GetTranscriptConfidence() float64

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 ChatMessage_ChatContent

type ChatMessage_ChatContent struct {

	// Types that are valid to be assigned to Payload:
	//
	//	*ChatMessage_ChatContent_Text
	Payload isChatMessage_ChatContent_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*ChatMessage_ChatContent) Descriptor deprecated

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

Deprecated: Use ChatMessage_ChatContent.ProtoReflect.Descriptor instead.

func (*ChatMessage_ChatContent) GetPayload

func (x *ChatMessage_ChatContent) GetPayload() isChatMessage_ChatContent_Payload

func (*ChatMessage_ChatContent) GetText

func (x *ChatMessage_ChatContent) GetText() string

func (*ChatMessage_ChatContent) ProtoMessage

func (*ChatMessage_ChatContent) ProtoMessage()

func (*ChatMessage_ChatContent) ProtoReflect

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

func (*ChatMessage_ChatContent) Reset

func (x *ChatMessage_ChatContent) Reset()

func (*ChatMessage_ChatContent) String

func (x *ChatMessage_ChatContent) String() string

type ChatMessage_ChatContent_Text

type ChatMessage_ChatContent_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type ChatRole

type ChatRole int32
const (
	ChatRole_DEVELOPER ChatRole = 0
	ChatRole_SYSTEM    ChatRole = 1
	ChatRole_USER      ChatRole = 2
	ChatRole_ASSISTANT ChatRole = 3
)

func (ChatRole) Descriptor

func (ChatRole) Descriptor() protoreflect.EnumDescriptor

func (ChatRole) Enum

func (x ChatRole) Enum() *ChatRole

func (ChatRole) EnumDescriptor deprecated

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

Deprecated: Use ChatRole.Descriptor instead.

func (ChatRole) Number

func (x ChatRole) Number() protoreflect.EnumNumber

func (ChatRole) String

func (x ChatRole) String() string

func (ChatRole) Type

type FunctionCall

type FunctionCall struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CallId    string                 `protobuf:"bytes,2,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	Arguments string                 `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
	Name      string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*FunctionCall) Descriptor deprecated

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

Deprecated: Use FunctionCall.ProtoReflect.Descriptor instead.

func (*FunctionCall) GetArguments

func (x *FunctionCall) GetArguments() string

func (*FunctionCall) GetCallId

func (x *FunctionCall) GetCallId() string

func (*FunctionCall) GetCreatedAt

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

func (*FunctionCall) GetId

func (x *FunctionCall) GetId() string

func (*FunctionCall) GetName

func (x *FunctionCall) GetName() string

func (*FunctionCall) ProtoMessage

func (*FunctionCall) ProtoMessage()

func (*FunctionCall) ProtoReflect

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

func (*FunctionCall) Reset

func (x *FunctionCall) Reset()

func (*FunctionCall) String

func (x *FunctionCall) String() string

type FunctionCallOutput

type FunctionCallOutput 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"`
	CallId    string                 `protobuf:"bytes,3,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	Output    string                 `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
	IsError   bool                   `protobuf:"varint,5,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*FunctionCallOutput) Descriptor deprecated

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

Deprecated: Use FunctionCallOutput.ProtoReflect.Descriptor instead.

func (*FunctionCallOutput) GetCallId

func (x *FunctionCallOutput) GetCallId() string

func (*FunctionCallOutput) GetCreatedAt

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

func (*FunctionCallOutput) GetId

func (x *FunctionCallOutput) GetId() string

func (*FunctionCallOutput) GetIsError

func (x *FunctionCallOutput) GetIsError() bool

func (*FunctionCallOutput) GetName

func (x *FunctionCallOutput) GetName() string

func (*FunctionCallOutput) GetOutput

func (x *FunctionCallOutput) GetOutput() string

func (*FunctionCallOutput) ProtoMessage

func (*FunctionCallOutput) ProtoMessage()

func (*FunctionCallOutput) ProtoReflect

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

func (*FunctionCallOutput) Reset

func (x *FunctionCallOutput) Reset()

func (*FunctionCallOutput) String

func (x *FunctionCallOutput) String() string

type MetricsReport

type MetricsReport struct {
	StartedSpeakingAt        *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=started_speaking_at,json=startedSpeakingAt,proto3" json:"started_speaking_at,omitempty"`
	StoppedSpeakingAt        *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=stopped_speaking_at,json=stoppedSpeakingAt,proto3" json:"stopped_speaking_at,omitempty"`
	TranscriptionDelay       *float64               `protobuf:"fixed64,3,opt,name=transcription_delay,json=transcriptionDelay,proto3,oneof" json:"transcription_delay,omitempty"`
	EndOfTurnDelay           *float64               `protobuf:"fixed64,4,opt,name=end_of_turn_delay,json=endOfTurnDelay,proto3,oneof" json:"end_of_turn_delay,omitempty"`
	OnUserTurnCompletedDelay *float64               `` /* 147-byte string literal not displayed */
	LlmNodeTtft              *float64               `protobuf:"fixed64,6,opt,name=llm_node_ttft,json=llmNodeTtft,proto3,oneof" json:"llm_node_ttft,omitempty"`
	TtsNodeTtfb              *float64               `protobuf:"fixed64,7,opt,name=tts_node_ttfb,json=ttsNodeTtfb,proto3,oneof" json:"tts_node_ttfb,omitempty"`
	E2ELatency               *float64               `protobuf:"fixed64,8,opt,name=e2e_latency,json=e2eLatency,proto3,oneof" json:"e2e_latency,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricsReport) Descriptor deprecated

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

Deprecated: Use MetricsReport.ProtoReflect.Descriptor instead.

func (*MetricsReport) GetE2ELatency

func (x *MetricsReport) GetE2ELatency() float64

func (*MetricsReport) GetEndOfTurnDelay

func (x *MetricsReport) GetEndOfTurnDelay() float64

func (*MetricsReport) GetLlmNodeTtft

func (x *MetricsReport) GetLlmNodeTtft() float64

func (*MetricsReport) GetOnUserTurnCompletedDelay

func (x *MetricsReport) GetOnUserTurnCompletedDelay() float64

func (*MetricsReport) GetStartedSpeakingAt

func (x *MetricsReport) GetStartedSpeakingAt() *timestamppb.Timestamp

func (*MetricsReport) GetStoppedSpeakingAt

func (x *MetricsReport) GetStoppedSpeakingAt() *timestamppb.Timestamp

func (*MetricsReport) GetTranscriptionDelay

func (x *MetricsReport) GetTranscriptionDelay() float64

func (*MetricsReport) GetTtsNodeTtfb

func (x *MetricsReport) GetTtsNodeTtfb() float64

func (*MetricsReport) ProtoMessage

func (*MetricsReport) ProtoMessage()

func (*MetricsReport) ProtoReflect

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

func (*MetricsReport) Reset

func (x *MetricsReport) Reset()

func (*MetricsReport) String

func (x *MetricsReport) String() string

Jump to

Keyboard shortcuts

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