example

command
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package main 演示 bamboo-agent 框架的 Agent + SubAgent 协作模式。

本示例展示 "Agent as Tool" 模式:主 Agent 通过工具调用激活 SubAgent, SubAgent 独立执行子任务(使用自己的工具集),并将结果返回给主 Agent。

运行方式:

go run ./example/

无需任何外部依赖或 API Key,使用内置 Mock 客户端模拟完整的 AI 交互。 如需连接真实 AI 服务,参见底部 createRealClient() 的注释。

Directories

Path Synopsis
Package main 演示 bamboo-agent 连接真实 LLM 的快速启动示例。
Package main 演示 bamboo-agent 连接真实 LLM 的快速启动示例。

Jump to

Keyboard shortcuts

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