yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::cli::ToolSchemaBuilder Class Reference

#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)
 

Detailed Description

Definition at line 17 of file tool_schema_builder.h.

Member Function Documentation

◆ BuildFunctionDeclarations()

nlohmann::json yaze::cli::ToolSchemaBuilder::BuildFunctionDeclarations ( const std::vector< ToolSpecification > & tool_specs)
static

◆ ResolveFunctionDeclarations()

absl::StatusOr< nlohmann::json > yaze::cli::ToolSchemaBuilder::ResolveFunctionDeclarations ( const PromptBuilder & prompt_builder)
static

◆ ParseFunctionDeclarations()

absl::StatusOr< nlohmann::json > yaze::cli::ToolSchemaBuilder::ParseFunctionDeclarations ( std::string_view schema_json)
static

Definition at line 126 of file tool_schema_builder.cc.

References NormalizeFunctionDeclarations().

Here is the call graph for this function:

◆ LoadFunctionDeclarationsFromAsset()

absl::StatusOr< nlohmann::json > yaze::cli::ToolSchemaBuilder::LoadFunctionDeclarationsFromAsset ( const std::string & relative_path = "agent/function_schemas.json")
static

Definition at line 141 of file tool_schema_builder.cc.

References yaze::util::PlatformPaths::FindAsset(), and NormalizeFunctionDeclarations().

Referenced by ResolveFunctionDeclarations().

Here is the call graph for this function:

◆ BuildOpenAITools()

nlohmann::json yaze::cli::ToolSchemaBuilder::BuildOpenAITools ( const nlohmann::json & function_declarations)
static

Definition at line 164 of file tool_schema_builder.cc.

◆ BuildGeminiTools()

nlohmann::json yaze::cli::ToolSchemaBuilder::BuildGeminiTools ( const nlohmann::json & function_declarations)
static

◆ BuildAnthropicTools()

nlohmann::json yaze::cli::ToolSchemaBuilder::BuildAnthropicTools ( const nlohmann::json & function_declarations)
static

Definition at line 183 of file tool_schema_builder.cc.

◆ NormalizeFunctionDeclarations()

absl::StatusOr< nlohmann::json > yaze::cli::ToolSchemaBuilder::NormalizeFunctionDeclarations ( const nlohmann::json & schema_json)
staticprivate

The documentation for this class was generated from the following files: