Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteThread ¶
func DeleteThread(thredId string) (*assistant.AssistantResponse, error)
Delete an Thread.
Types ¶
type Thread ¶
type Thread struct {
ID string `json:"id,omitempty"`
Object string `json:"object,omitempty"`
CreatedAt int `json:"created_at,omitempty"`
Messages []message.Message `json:"messages,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
ToolResource assistant.ToolResource `json:"tool_resources,omitempty"`
}
func CreateThread ¶ added in v0.0.7
NewThereadinicializa um novo assistente, opcionalmente com um ID de assistente existente.
Click to show internal directories.
Click to hide internal directories.