#include <tool_schema_builder.h>
Static Public Member Functions | |
| static nlohmann::json | BuildFunctionDeclarations (const std::vector< ToolSpecification > &tool_specs) |
| static absl::StatusOr< nlohmann::json > | ResolveFunctionDeclarations (const PromptBuilder &prompt_builder) |
| static absl::StatusOr< nlohmann::json > | ParseFunctionDeclarations (std::string_view schema_json) |
| static absl::StatusOr< nlohmann::json > | LoadFunctionDeclarationsFromAsset (const std::string &relative_path="agent/function_schemas.json") |
| static nlohmann::json | BuildOpenAITools (const nlohmann::json &function_declarations) |
| static nlohmann::json | BuildGeminiTools (const nlohmann::json &function_declarations) |
| static nlohmann::json | BuildAnthropicTools (const nlohmann::json &function_declarations) |
Static Private Member Functions | |
| static absl::StatusOr< nlohmann::json > | NormalizeFunctionDeclarations (const nlohmann::json &schema_json) |
Definition at line 17 of file tool_schema_builder.h.
|
static |
Definition at line 72 of file tool_schema_builder.cc.
Referenced by yaze::cli::PromptBuilder::BuildFunctionCallSchemas(), and ResolveFunctionDeclarations().
|
static |
Definition at line 81 of file tool_schema_builder.cc.
References BuildFunctionDeclarations(), LoadFunctionDeclarationsFromAsset(), and yaze::cli::PromptBuilder::tool_specs().
Referenced by yaze::cli::anonymous_namespace{gemini_ai_service.cc}::BuildGeminiToolPayload().

|
static |
Definition at line 126 of file tool_schema_builder.cc.
References NormalizeFunctionDeclarations().

|
static |
Definition at line 141 of file tool_schema_builder.cc.
References yaze::util::PlatformPaths::FindAsset(), and NormalizeFunctionDeclarations().
Referenced by ResolveFunctionDeclarations().

|
static |
Definition at line 164 of file tool_schema_builder.cc.
|
static |
Definition at line 173 of file tool_schema_builder.cc.
Referenced by yaze::cli::anonymous_namespace{gemini_ai_service.cc}::BuildGeminiToolPayload().
|
static |
Definition at line 183 of file tool_schema_builder.cc.
|
staticprivate |
Definition at line 92 of file tool_schema_builder.cc.
Referenced by LoadFunctionDeclarationsFromAsset(), and ParseFunctionDeclarations().