Documentation ¶
Index ¶
- type Event
- type HomeAssistant
- func (ha *HomeAssistant) AwaitResponse(reqID int) ([]byte, error)
- func (ha *HomeAssistant) Done(reqID int) error
- func (ha *HomeAssistant) GetPipelineManager() *PipelineManager
- func (ha *HomeAssistant) NextRequestId() int
- func (ha *HomeAssistant) Request(reqID int, evt interface{}) (chan []byte, error)
- func (ha *HomeAssistant) Run()
- type IntentEnd
- type IntentOutputResponse
- type Pipeline
- type PipelineManager
- type Response
- type RunPipelineCommand
- type RunPipelineInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HomeAssistant ¶
type HomeAssistant struct {
// contains filtered or unexported fields
}
func GetHomeAssistantConnection ¶
func GetHomeAssistantConnection() *HomeAssistant
func NewHomeAssistantConnection ¶
func NewHomeAssistantConnection(conf *config.Config, logger *log.Logger) *HomeAssistant
func (*HomeAssistant) AwaitResponse ¶
func (ha *HomeAssistant) AwaitResponse(reqID int) ([]byte, error)
func (*HomeAssistant) Done ¶
func (ha *HomeAssistant) Done(reqID int) error
func (*HomeAssistant) GetPipelineManager ¶
func (ha *HomeAssistant) GetPipelineManager() *PipelineManager
func (*HomeAssistant) NextRequestId ¶
func (ha *HomeAssistant) NextRequestId() int
func (*HomeAssistant) Request ¶
func (ha *HomeAssistant) Request(reqID int, evt interface{}) (chan []byte, error)
func (*HomeAssistant) Run ¶
func (ha *HomeAssistant) Run()
type IntentEnd ¶
type IntentEnd struct { IntentOutput struct { Response IntentOutputResponse `json:"response"` ConversationID *string `json:"conversation_id"` } `json:"intent_output"` }
type IntentOutputResponse ¶
type Pipeline ¶
type Pipeline struct { ID string `json:"id"` ConversationEngine string `json:"conversation_engine"` ConversationLanguage string `json:"conversation_language"` Language string `json:"language"` Name string `json:"name"` STTEngine string `json:"stt_engine"` SSTLanguage string `json:"stt_language"` TTSEngine string `json:"tts_engine"` TTSLanguage string `json:"tts_language"` WakeWordEntity string `json:"wake_word_entity"` WakeWordID string `json:"wake_word_id"` }
type PipelineManager ¶
type PipelineManager struct { PreferredPipeline string ConversationId *string // contains filtered or unexported fields }
func (*PipelineManager) GetPipeline ¶
func (pm *PipelineManager) GetPipeline(id string) (Pipeline, error)
func (*PipelineManager) ListPipelines ¶
func (pm *PipelineManager) ListPipelines() ([]Pipeline, error)
func (*PipelineManager) RunTextPipeline ¶
func (pm *PipelineManager) RunTextPipeline(id string, text string) (string, error)
type RunPipelineCommand ¶
type RunPipelineInput ¶
type RunPipelineInput struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.