AS AgentScopeAPI 手册 / API Reference

RAGMode

@Deprecated(forRemoval = true, since = "2.0.0") public enum RAGMode
源码Source io/agentscope/core/rag/RAGMode.java:31–56

定义RAG 模式相关取值的枚举。位于 io.agentscope.core.rag 包。核心成员包括 GENERIC、AGENTIC、NONE。

RAG (Retrieval-Augmented Generation) mode enumeration.

Defines how knowledge retrieval is integrated with the agent:

  • GENERIC: Knowledge is automatically retrieved and injected before each reasoning step via Hook

  • AGENTIC: Agent actively decides when to retrieve knowledge via Tool

  • NONE: No RAG functionality enabled

枚举常量摘要Enum Constant Summary

常量Constant说明Description
GENERIC
执行泛型相关操作。
Generic mode: Knowledge is automatically retrieved and injected before each reasoning step via Hook.
AGENTIC
执行 `AGENTIC` 方法。
Agentic mode: Agent decides when to retrieve knowledge via Tool.
NONE
执行 `NONE` 方法。
Disabled mode: No RAG functionality.

枚举常量详情Enum Constant Detail

GENERIC

GENERIC
staticfinal

执行泛型相关操作。

Generic mode: Knowledge is automatically retrieved and injected before each reasoning step via Hook.

源码Source io/agentscope/core/rag/RAGMode.java:40

AGENTIC

AGENTIC
staticfinal

执行 AGENTIC 方法。

Agentic mode: Agent decides when to retrieve knowledge via Tool.

源码Source io/agentscope/core/rag/RAGMode.java:48

NONE

NONE
staticfinal

执行 NONE 方法。

Disabled mode: No RAG functionality.

源码Source io/agentscope/core/rag/RAGMode.java:55
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.