Files
liqiang b119135836
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
2026-08-20 13:12:50 +00:00

38 lines
1005 B
Python

# coding: utf-8
# Copyright (c) 2025 inclusionAI.
from enum import Enum
package = 'examples.common.tools'
class Tools(Enum):
"""Tool list supported in the framework, pre-defined to avoid spelling errors."""
BROWSER = "browser"
ANDROID = "android"
GYM = "openai_gym"
SEARCH_API = "search_api"
SHELL = "shell"
PYTHON_EXECUTE = "python_execute"
CODE_EXECUTE = "code_execute"
FILE = "file"
IMAGE_ANALYSIS = "image_analysis"
DOCUMENT_ANALYSIS = "document_analysis"
HTML = "html"
MCP = "mcp"
class Agents(Enum):
"""Agent supported in the framework, pre-defined to avoid spelling errors."""
BROWSER = "browser_agent"
ANDROID = "android_agent"
SEARCH = "search_agent"
CODE_EXECUTE = "code_execute_agent"
FILE = "file_agent"
IMAGE_ANALYSIS = "image_analysis_agent"
SHELL = "shell_agent"
DOCUMENT = "document_agent"
GYM = "gym_agent"
PLAN = "plan_agent"
EXECUTE = "execute_agent"
SUMMARY = "summary_agent"