server: improve tools, remove apply_diff (#25498)
* server: improve tools, remove apply_diff * improve edit tool * add tools_io abstraction * add tools_io_basic * fix build * move utils to class member * add const
This commit is contained in:
@@ -9,10 +9,10 @@ struct server_tool {
|
||||
bool permission_write = false;
|
||||
|
||||
virtual ~server_tool() = default;
|
||||
virtual json get_definition() = 0;
|
||||
virtual json invoke(json params) = 0;
|
||||
virtual json get_definition() const = 0;
|
||||
virtual json invoke(json params) const = 0;
|
||||
|
||||
json to_json();
|
||||
json to_json() const;
|
||||
};
|
||||
|
||||
struct server_tools {
|
||||
|
||||
Reference in New Issue
Block a user