15 lines
403 B
C
15 lines
403 B
C
#ifndef DIDACTYL_TOOLS_H
|
|
#define DIDACTYL_TOOLS_H
|
|
|
|
#include "config.h"
|
|
|
|
typedef struct {
|
|
didactyl_config_t* cfg;
|
|
} tools_context_t;
|
|
|
|
int tools_init(tools_context_t* ctx, didactyl_config_t* cfg);
|
|
void tools_cleanup(tools_context_t* ctx);
|
|
char* tools_build_openai_schema_json(const tools_context_t* ctx);
|
|
char* tools_execute(tools_context_t* ctx, const char* tool_name, const char* args_json);
|
|
|
|
#endif |