thread

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

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

func CreateThread() (*Thread, error)

NewThereadinicializa um novo assistente, opcionalmente com um ID de assistente existente.

func RetrieveThread

func RetrieveThread(thredId string) (*Thread, error)

Retrieve assistan

func UpdateThread

func UpdateThread(threads Thread) (*Thread, error)

Modifies an Thread.

Jump to

Keyboard shortcuts

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