Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/xt765/langchain-chinese-comment/typesgit clone --depth 1 https://github.com/xt765/LangChain-Chinese-CommentWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00578 |
| Opus 5 | $0.00000 | $0.00289 |
| Sonnet 5 | $0.00000 | $0.00116 |
| Haiku 4.5 | $0.00000 | $0.00058 |
Grade A, and why
types scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
libs\langchain\langchain_classic\agents\types.py
此文档提供了 libs\langchain\langchain_classic\agents\types.py 文件的详细中文注释。该模块定义了代理类型枚举与其实际实现类之间的映射。
功能描述
该模块是 langchain_classic 代理系统的注册表。它将 AgentType 枚举值与具体的代理实现类(如 ZeroShotAgent)关联起来。
核心映射表:AGENT_TO_CLASS
这是整个经典代理框架的核心查找表:
| AgentType | 实现类 | 备注 |
|---|---|---|
ZERO_SHOT_REACT_DESCRIPTION |
ZeroShotAgent |
标准 ReAct 代理。 |
REACT_DOCSTORE |
ReActDocstoreAgent |
结合文档存储。 |
SELF_ASK_WITH_SEARCH |
SelfAskWithSearchAgent |
多步推理 + 搜索。 |
CONVERSATIONAL_REACT_DESCRIPTION |
ConversationalAgent |
基础对话 ReAct。 |
CHAT_ZERO_SHOT_REACT_DESCRIPTION |
ChatAgent |
聊天模型版 ReAct。 |
CHAT_CONVERSATIONAL_REACT_DESCRIPTION |
ConversationalChatAgent |
聊天模型版对话 ReAct。 |
STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION |
StructuredChatAgent |
JSON 格式结构化代理。 |
OPENAI_FUNCTIONS |
OpenAIFunctionsAgent |
基于 OpenAI 函数。 |
OPENAI_MULTI_FUNCTIONS |
OpenAIMultiFunctionsAgent |
支持多函数调用。 |
类型定义
AGENT_TYPE: 这是一个联合类型,定义了所有合法的代理类类型(支持单动作和 OpenAI 多动作代理)。
设计意图
- 解耦: 允许
initialize_agent函数根据字符串或枚举动态选择算法,而无需在初始化函数内部硬编码所有代理类的逻辑。 - 工厂模式: 为代理系统的动态构建提供了基础。
现状与弃用
由于 initialize_agent 和 AgentType 已被标记为弃用,此映射表目前主要为了维持向后兼容性。现代代码建议直接导入具体的代理类或使用专用的 create_*_agent 工厂函数。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 39 lines · 0 tokens per session scan A 00f97d56ba84
types is an agent published in the GitHub repository xt765/LangChain-Chinese-Comment (20 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 578 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
build-error-resolver
빌드 실패·타입 에러·컴파일 오류·import 에러·의존성 이슈를 최소 변경으로 그린 복구. 리팩토링·아키텍처 변경 절대 금지. Use proactively when CI/빌드가 빨간불이거나, 터미널에 타입 에러·컴파일 에러가 표시될 때 즉시. 런타임 로직 버그는 systematic-debugger, 아키텍처 변경은 architect 사용.
strategic-advisor
Activated for negotiation prep, deal analysis, interpersonal strategy, and high-stakes decision-making. Combines game theory with psychological awareness.
integration-reviewer
Runtime integration validator — read-only. Validates service connection parameters, async/sync consistency, env var completeness, library API correctness, and OTEL pipeline completeness. Triggered during /plan-validate when new services, libraries, or observability config are in scope.
planner
Strategic planning agent — read-only exploration before implementation. Use to decompose tasks, analyze codebases, and produce a detailed plan. Never modifies files.
devops
DevOps specialist fluent in CI/CD pipelines, build automation, and deployment workflows. Thinks in reliability, security, and developer experience. Designs GitHub Actions, configures build systems, manages secrets. Use for pipeline configuration, infrastructure automation, and anything involving environments…
ticket-gate
Ticket readiness gate for actual-mcp-server (forge-kit ticket-gate v6). Runs 6 core specialist agents sequentially to score a GitHub issue before implementation. Each agent scores 1-10; ALL must score 10 to pass. An agent whose domain the ticket does not touch auto-scores 10 (N/A). Extra specialists are added by…