pythonAgent

package
v0.0.0-...-8fd6f82 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPackages

func GetPackages(executablePath string) (string, error)

GetPipPackages 通过 pip 获取当前 Python 环境的包列表

Types

type PythonAgent

type PythonAgent struct {
	Agent *adk.ChatModelAgent
}

func NewDefaultPythonAgentInSandbox

func NewDefaultPythonAgentInSandbox(ctx context.Context, model model.ToolCallingChatModel, sandboxConfig *sandbox.Config) *PythonAgent

func NewDefaultPythonAgentLocal

func NewDefaultPythonAgentLocal(ctx context.Context, model model.ToolCallingChatModel, localConfig *local.OperatorConfig) *PythonAgent

func NewPythonAgent

func NewPythonAgent(ctx context.Context, config *adk.ChatModelAgentConfig) *PythonAgent

func (*PythonAgent) OutputMessage

func (a *PythonAgent) OutputMessage(ctx context.Context, input string, withReasoning bool, withStreaming bool, options ...adk.AgentRunOption)

func (*PythonAgent) Run

Jump to

Keyboard shortcuts

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