adapter

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAssets

func FromAssets(resources []*asset.Resource) []*binding.Document

FromAssets converts file resources into binding.Document items.

func FromSchemaDocs

func FromSchemaDocs(docs []embSchema.Document) []*binding.Document

FromSchemaDocs converts search documents into binding.Document items.

func ToToolDefinition

func ToToolDefinition(t llm.Tool) *llm.ToolDefinition

ToToolDefinition converts an llm.Tool to an llm.ToolDefinition suitable for prompt bindings.

func ToToolDefinitions

func ToToolDefinitions(tools []llm.Tool) []*llm.ToolDefinition

ToToolDefinitions converts a slice of llm.Tool to prompt.ToolDefinition list, skipping entries that cannot be adapted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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