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

Registry of all tool schemas. More...

#include <tool_schemas.h>

Public Member Functions

void Register (const ToolSchema &schema)
 
const ToolSchemaGet (const std::string &name) const
 
std::vector< ToolSchemaGetAll () const
 
std::vector< ToolSchemaGetByCategory (const std::string &category) const
 
std::string ExportAllAsJson () const
 Export all schemas as JSON array for function calling APIs.
 
std::string ExportAllAsMarkdown () const
 Export all schemas as Markdown documentation.
 
std::string GenerateLLMPrompt () const
 Generate LLM system prompt section for tools.
 

Static Public Member Functions

static ToolSchemaRegistryInstance ()
 

Private Member Functions

 ToolSchemaRegistry ()
 
void RegisterBuiltinSchemas ()
 

Private Attributes

std::map< std::string, ToolSchemaschemas_
 

Detailed Description

Registry of all tool schemas.

Definition at line 190 of file tool_schemas.h.

Constructor & Destructor Documentation

◆ ToolSchemaRegistry()

yaze::cli::agent::ToolSchemaRegistry::ToolSchemaRegistry ( )
inlineprivate

Definition at line 286 of file tool_schemas.h.

References RegisterBuiltinSchemas().

Here is the call graph for this function:

Member Function Documentation

◆ Instance()

static ToolSchemaRegistry & yaze::cli::agent::ToolSchemaRegistry::Instance ( )
inlinestatic

Definition at line 192 of file tool_schemas.h.

◆ Register()

void yaze::cli::agent::ToolSchemaRegistry::Register ( const ToolSchema & schema)
inline

Definition at line 197 of file tool_schemas.h.

References yaze::cli::agent::ToolSchema::name, and schemas_.

Referenced by RegisterBuiltinSchemas().

◆ Get()

const ToolSchema * yaze::cli::agent::ToolSchemaRegistry::Get ( const std::string & name) const
inline

Definition at line 199 of file tool_schemas.h.

References yaze::zelda3::name, and schemas_.

◆ GetAll()

std::vector< ToolSchema > yaze::cli::agent::ToolSchemaRegistry::GetAll ( ) const
inline

Definition at line 204 of file tool_schemas.h.

References schemas_.

◆ GetByCategory()

std::vector< ToolSchema > yaze::cli::agent::ToolSchemaRegistry::GetByCategory ( const std::string & category) const
inline

Definition at line 212 of file tool_schemas.h.

References yaze::zelda3::category, and schemas_.

◆ ExportAllAsJson()

std::string yaze::cli::agent::ToolSchemaRegistry::ExportAllAsJson ( ) const
inline

Export all schemas as JSON array for function calling APIs.

Definition at line 225 of file tool_schemas.h.

References schemas_.

◆ ExportAllAsMarkdown()

std::string yaze::cli::agent::ToolSchemaRegistry::ExportAllAsMarkdown ( ) const
inline

Export all schemas as Markdown documentation.

Definition at line 240 of file tool_schemas.h.

References yaze::zelda3::category, and schemas_.

◆ GenerateLLMPrompt()

std::string yaze::cli::agent::ToolSchemaRegistry::GenerateLLMPrompt ( ) const
inline

Generate LLM system prompt section for tools.

Definition at line 262 of file tool_schemas.h.

References schemas_.

◆ RegisterBuiltinSchemas()

void yaze::cli::agent::ToolSchemaRegistry::RegisterBuiltinSchemas ( )
inlineprivate

Definition at line 288 of file tool_schemas.h.

References Register().

Referenced by ToolSchemaRegistry().

Here is the call graph for this function:

Member Data Documentation

◆ schemas_

std::map<std::string, ToolSchema> yaze::cli::agent::ToolSchemaRegistry::schemas_
private

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