debug

package
v0.0.0-...-a80cde9 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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.ToolCallingChatModel
}

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

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

func (*ChatModelDebugDecorator) WithTools

Jump to

Keyboard shortcuts

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