Documentation
¶
Index ¶
- func GetPackages(executablePath string) (string, error)
- type PythonAgent
- func NewDefaultPythonAgentInSandbox(ctx context.Context, model model.ToolCallingChatModel, ...) *PythonAgent
- func NewDefaultPythonAgentLocal(ctx context.Context, model model.ToolCallingChatModel, ...) *PythonAgent
- func NewPythonAgent(ctx context.Context, config *adk.ChatModelAgentConfig) *PythonAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackages ¶
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 ¶
func (a *PythonAgent) Run(ctx context.Context, input *adk.AgentInput, options ...adk.AgentRunOption) *adk.AsyncIterator[*adk.AgentEvent]
Click to show internal directories.
Click to hide internal directories.