internal

package
v0.9.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatItems

func ConcatItems[T any](items []T) (T, error)

ConcatItems the caller should ensure len(items) > 1

func ConcatSliceValue

func ConcatSliceValue(val reflect.Value) (reflect.Value, error)

func GetConcatFunc

func GetConcatFunc(typ reflect.Type) func(reflect.Value) (reflect.Value, error)

func GetMergeFunc added in v0.3.26

func GetMergeFunc(typ reflect.Type) func([]any) (any, error)

func RegisterStreamChunkConcatFunc

func RegisterStreamChunkConcatFunc[T any](fn func([]T) (T, error))

func RegisterValuesMergeFunc added in v0.3.26

func RegisterValuesMergeFunc[T any](fn func([]T) (T, error))

Types

type UnboundedChan added in v0.3.23

type UnboundedChan[T any] struct {
	// contains filtered or unexported fields
}

UnboundedChan represents a channel with unlimited capacity

func NewUnboundedChan added in v0.3.23

func NewUnboundedChan[T any]() *UnboundedChan[T]

NewUnboundedChan initializes and returns an UnboundedChan

func (*UnboundedChan[T]) Close added in v0.3.23

func (ch *UnboundedChan[T]) Close()

Close marks the channel as closed

func (*UnboundedChan[T]) PushFront

func (ch *UnboundedChan[T]) PushFront(values []T)

PushFront adds values to the front of the channel. This is useful for recovering values that need to be reprocessed. Does nothing if values is empty.

func (*UnboundedChan[T]) Receive added in v0.3.23

func (ch *UnboundedChan[T]) Receive() (T, bool)

Receive gets an item from the channel (blocks if empty)

func (*UnboundedChan[T]) Send added in v0.3.23

func (ch *UnboundedChan[T]) Send(value T)

Send puts an item into the channel

func (*UnboundedChan[T]) TakeAll

func (ch *UnboundedChan[T]) TakeAll() []T

TakeAll removes and returns all values from the channel atomically. Returns nil if the channel is empty.

func (*UnboundedChan[T]) TrySend

func (ch *UnboundedChan[T]) TrySend(value T) bool

TrySend attempts to put an item into the channel. Returns false if the channel is closed, true otherwise.

Directories

Path Synopsis
Package mock provides mock implementations for testing purposes.
Package mock provides mock implementations for testing purposes.
adk
Package adk is a generated GoMock package.
Package adk is a generated GoMock package.
components/document
Package document is a generated GoMock package.
Package document is a generated GoMock package.
components/embedding
Package embedding is a generated GoMock package.
Package embedding is a generated GoMock package.
components/indexer
Package indexer is a generated GoMock package.
Package indexer is a generated GoMock package.
components/model
Package model is a generated GoMock package.
Package model is a generated GoMock package.
components/retriever
Package retriever is a generated GoMock package.
Package retriever is a generated GoMock package.

Jump to

Keyboard shortcuts

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