interactions

package
v7.2.76 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertGeminiRequestToInteractions

func ConvertGeminiRequestToInteractions(modelName string, inputRawJSON []byte, stream bool) []byte

func ConvertGeminiResponseToInteractions

func ConvertGeminiResponseToInteractions(ctx context.Context, modelName string, originalRequestRawJSON, requestRawJSON, rawJSON []byte, param *any) [][]byte

func ConvertGeminiResponseToInteractionsNonStream

func ConvertGeminiResponseToInteractionsNonStream(_ context.Context, modelName string, originalRequestRawJSON, requestRawJSON, rawJSON []byte, _ *any) []byte

func ConvertGeminiResponseToInteractionsStream

func ConvertGeminiResponseToInteractionsStream(ctx context.Context, modelName string, originalRequestRawJSON, requestRawJSON, rawJSON []byte, param *any) [][]byte

func ConvertInteractionsRequestToGemini

func ConvertInteractionsRequestToGemini(modelName string, inputRawJSON []byte, stream bool) []byte

func ConvertInteractionsRequestToInteractions

func ConvertInteractionsRequestToInteractions(modelName string, inputRawJSON []byte, stream bool) []byte

func ConvertInteractionsResponsePassthrough

func ConvertInteractionsResponsePassthrough(_ context.Context, _ string, _, _, rawJSON []byte, _ *any) [][]byte

func ConvertInteractionsResponsePassthroughNonStream

func ConvertInteractionsResponsePassthroughNonStream(_ context.Context, _ string, _, _, rawJSON []byte, _ *any) []byte

func ConvertInteractionsResponseToGemini

func ConvertInteractionsResponseToGemini(_ context.Context, modelName string, _, _, rawJSON []byte, param *any) [][]byte

func ConvertInteractionsResponseToGeminiNonStream

func ConvertInteractionsResponseToGeminiNonStream(_ context.Context, modelName string, _, _, rawJSON []byte, _ *any) []byte

Types

type StreamState

type StreamState struct {
	Started         bool
	Finished        bool
	Completed       bool
	Done            bool
	ActiveStepOpen  bool
	ID              string
	StepID          string
	ActiveStepType  string
	ActiveStepIndex int
	StepIndex       int
}

Jump to

Keyboard shortcuts

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