internal

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIInfo

type APIInfo struct {
	Key string `json:"key"`
}

APIInfo contains API key information.

type ClientInfo

type ClientInfo struct {
	Provider string `json:"provider,omitempty"`
	Title    string `json:"title"`
	Version  string `json:"version,omitempty"`
}

ClientInfo describes the LLM provider client.

type Conversation

type Conversation struct {
	Client   ClientInfo             `json:"client"`
	Query    map[string]interface{} `json:"query"`
	Response map[string]interface{} `json:"response"`
}

Conversation contains request and response data.

type FNFGInfo

type FNFGInfo struct {
	Exc    *string `json:"exc"`
	Status string  `json:"status"`
}

FNFGInfo contains fire-and-forget status.

type Meta

type Meta struct {
	API  APIInfo  `json:"api"`
	FNFG FNFGInfo `json:"fnfg"`
	SDK  SDKInfo  `json:"sdk"`
}

Meta contains metadata about the request.

type Payload

type Payload struct {
	Attribution  interface{}  `json:"attribution,omitempty"`
	Conversation Conversation `json:"conversation"`
	Meta         Meta         `json:"meta"`
	Time         TimeInfo     `json:"time"`
	Tx           Transaction  `json:"tx"`
}

Payload represents analytics data sent to Payloop.

type SDKInfo

type SDKInfo struct {
	Client  string `json:"client"`
	Version string `json:"version"`
}

SDKInfo describes the SDK being used.

type TimeInfo

type TimeInfo struct {
	Start time.Time `json:"start"`
	End   time.Time `json:"end"`
}

TimeInfo contains timing information.

type Transaction

type Transaction struct {
	UUID string `json:"uuid"`
}

Transaction contains transaction UUID.

Jump to

Keyboard shortcuts

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