类的用途(Uses of the Class)
com.google.adk.agents.ConfigAgentUtils.ConfigurationException
Packages that use ConfigAgentUtils.ConfigurationException
-
**用途:** ConfigAgentUtils.ConfigurationException 在……里面;处于……状态 com.google.adk.agents
Methods in com.google.adk.agents that throw ConfigAgentUtils.ConfigurationExceptionModifier and TypeMethodDescriptionstatic BaseAgentConfigAgentUtils.fromConfig(String configPath) 从 YAML 配置文件路径中加载代理程序。static LlmAgentLlmAgent.fromConfig(LlmAgentConfig config, String configAbsPath) 根据配置创建一个 LLMAgent,该 LLMAgent 支持完整的子代理功能(full subagent support)。static LoopAgentLoopAgent.fromConfig(LoopAgentConfig config, String configAbsPath) 根据配置创建一个 LoopAgent。static ParallelAgentParallelAgent.fromConfig(ParallelAgentConfig config, String configAbsPath) 根据配置创建一个 ParallelAgent。static SequentialAgentSequentialAgent.fromConfig(SequentialAgentConfig config, String configAbsPath) 根据配置创建一个 SequentialAgent 对象。static <T> voidConfigAgentUtils.resolveAndSetCallback(@Nullable List<BaseAgentConfig.CallbackRef> refs, Class<T> callbackBaseClass, String callbackTypeName, Consumer<com.google.common.collect.ImmutableList<T>> builderSetter) 根据配置解决相关问题并设置回调函数。static voidConfigAgentUtils.resolveAndSetCommonAgentFields(BaseAgent.Builder<?> builder, BaseAgentConfig config, String configAbsPath) 根据配置文件来设置代理构建器(agent builder)的通用属性。static com.google.common.collect.ImmutableList<BaseAgent> ConfigAgentUtils.resolveSubAgents(List<BaseAgentConfig.AgentRefConfig> subAgentConfigs, String configAbsPath) 将子代理(subagent)的配置信息转换为实际的 BaseAgent 实例。static voidConfigAgentUtils.setBaseAgentCallbacks(BaseAgentConfig config, Consumer<com.google.common.collect.ImmutableList<com.google.adk.agents.Callbacks.BeforeAgentCallbackBase>> beforeSetter, Consumer<com.google.common.collect.ImmutableList<com.google.adk.agents.Callbacks.AfterAgentCallbackBase>> afterSetter) 将配置文件中定义的通用代理回调函数(代理执行前/执行后的回调函数)设置到构建器的相应设置项中。 -
**用途:** ConfigAgentUtils.ConfigurationException 在……里面;处于……状态 com.google.adk.tools
Methods in com.google.adk.tools that throw ConfigAgentUtils.ConfigurationExceptionModifier and TypeMethodDescriptionstatic BaseToolAgentTool.fromConfig(BaseTool.ToolArgsConfig args, String configAbsPath) static BaseToolBaseTool.fromConfig(BaseTool.ToolConfig config, String configAbsPath) 根据配置文件创建一个工具实例。static ExampleToolExampleTool.fromConfig(BaseTool.ToolArgsConfig args) 进行重载,以匹配仅传递 `ToolArgsConfig` 的解析器。static ExampleToolExampleTool.fromConfig(BaseTool.ToolArgsConfig args, String configAbsPath) 根据 YAML 工具参数生成工厂对象(Factory object)。 -
**用途:** ConfigAgentUtils.ConfigurationException 在……里面;处于……状态 com.google.adk.tools.mcp
Methods in com.google.adk.tools.mcp that throw ConfigAgentUtils.ConfigurationExceptionModifier and TypeMethodDescriptionstatic McpToolsetMcpToolset.fromConfig(BaseTool.ToolConfig config, String configAbsPath) 根据配置文件创建一个 McpToolset 实例。