Documentation ¶
Index ¶
- type ConversationStreamResponseItem
- type Helper
- func (h *Helper) ClosePage(id string, page playwright.Page)
- func (h *Helper) GetPage(id string) (playwright.Page, error)
- func (h *Helper) GetPlusPage(id string) (playwright.Page, error)
- func (h *Helper) IsLocked() bool
- func (h *Helper) LaunchBrowser() error
- func (h *Helper) MustGetPage(id string) playwright.Page
- func (h *Helper) NewPage(id string) (playwright.Page, error)
- func (h *Helper) NewPlusPage(id string) (playwright.Page, error)
- func (h *Helper) SendMsg(page playwright.Page, inputText string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConversationStreamResponseItem ¶
type ConversationStreamResponseItem struct { Message struct { Id string `json:"id"` Author struct { Role string `json:"role"` Name interface{} `json:"name"` Metadata struct { } `json:"metadata"` } `json:"author"` CreateTime interface{} `json:"create_time"` UpdateTime interface{} `json:"update_time"` Content struct { ContentType string `json:"content_type"` Parts []string `json:"parts"` } `json:"content"` EndTurn bool `json:"end_turn"` Weight float64 `json:"weight"` Metadata struct { MessageType string `json:"message_type"` ModelSlug string `json:"model_slug"` FinishDetails struct { Type string `json:"type"` Stop string `json:"stop"` } `json:"finish_details"` } `json:"metadata"` Recipient string `json:"recipient"` } `json:"message"` ConversationId string `json:"conversation_id"` Error interface{} `json:"error"` }
func (*ConversationStreamResponseItem) String ¶
func (i *ConversationStreamResponseItem) String() string
func (*ConversationStreamResponseItem) Text ¶
func (i *ConversationStreamResponseItem) Text() string
type Helper ¶
type Helper struct { CookiePath string // contains filtered or unexported fields }
func (*Helper) GetPlusPage ¶
func (*Helper) LaunchBrowser ¶
func (*Helper) MustGetPage ¶
Deprecated 请使用GetPage
func (*Helper) NewPlusPage ¶
Click to show internal directories.
Click to hide internal directories.