contract

package
v0.0.0-...-0e94699 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationManagerInterface

type ConversationManagerInterface interface {
	StartConversation(robot RobotInterface)
	EndConversation()
	SendMessage(message *model.Message) *model.Job
	ReceiveMessage(job model.Job) *model.Message
}

ConversationManagerInterface 定义接口

type RobotInterface

type RobotInterface interface {
	StartConversation(conversationManager ConversationManagerInterface)
	EndConversation() error
	Introduce() *model.RobotAttributes
	SendMessage(message *model.Message) *model.Job
	ReceiveMessage(job model.Job) *model.Message
}

RobotInterface 定义接口

Jump to

Keyboard shortcuts

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