frohzinn's picture
download
raw
623 Bytes
#pragma once
#include "server-common.h"
#include "server-http.h"
struct server_tool {
std::string name;
std::string display_name;
bool permission_write = false;
virtual ~server_tool() = default;
virtual json get_definition() = 0;
virtual json invoke(json params) = 0;
json to_json();
};
struct server_tools {
std::vector<std::unique_ptr<server_tool>> tools;
void setup(const std::vector<std::string> & enabled_tools);
json invoke(const std::string & name, const json & params);
server_http_context::handler_t handle_get;
server_http_context::handler_t handle_post;
};

Xet Storage Details

Size:
623 Bytes
·
Xet hash:
4f4a0337acf91bf9e5083daa97be0d1ca9a0ef03f0a1b2e3c68255c00a0afe41

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.