debug

package
v0.0.0-...-cdc720d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PlannerOutput = `` /* 1052-byte string literal not displayed */

Variables

This section is empty.

Functions

func WithDebugOutput

func WithDebugOutput(output *schema.Message) model.Option

Types

type ChatModelDebugDecorator

type ChatModelDebugDecorator struct {
	Model model.ChatModel
}

ChatModelDebugDecorator 给内部的 ChatModel 提供单次 Mock 输出的能力.

func (*ChatModelDebugDecorator) BindTools

func (c *ChatModelDebugDecorator) BindTools(tools []*schema.ToolInfo) error

func (*ChatModelDebugDecorator) Generate

func (c *ChatModelDebugDecorator) Generate(ctx context.Context, input []*schema.Message, opts ...model.Option) (*schema.Message, error)

func (*ChatModelDebugDecorator) IsCallbacksEnabled

func (c *ChatModelDebugDecorator) IsCallbacksEnabled() bool

IsCallbacksEnabled 透出内部的 ChatModel 是否已埋入了回调切面.

func (*ChatModelDebugDecorator) Stream

Jump to

Keyboard shortcuts

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