Tool
Object Hierarchy:
Description:
public class Tool :
BaseTool
Main tool class that executes agent requests.
Each agent from resources/agents/ is registered as a separate tool using this class. The tool accepts a query parameter and executes the
agent with that query.
Content:
Properties:
- public string agent_description { get; set; }
Agent description (from frontmatter).
- public string agent_example { get; set; }
Example call JSON (from agent frontmatter example:). When set,
example_call returns this; otherwise a default with agent_name is used.
- public string agent_instructions { get; set; }
Agent instructions (from agent file, after frontmatter).
- public string agent_model { get; set; }
Agent model preference (from frontmatter, may be empty).
- public string agent_name { get; set; }
Agent name (from frontmatter).
- public string agent_title { get; set; }
Display title for the agent tool (e.g. from frontmatter title or name
+ " (Agent)"). When empty, title falls back to agent_name.
- public ArrayList<string> agent_tools { get; set; }
List of tool names the agent can use.
- public override string description { get; }
Tool description (returns agent_description).
- public override string example_call { get; }
- public override string name { get; }
Tool name (returns agent_name).
- public override string parameter_description { get; }
Parameter description for the tool.
- public ProjectManager? project_manager { get; set; }
ProjectManager instance for accessing project context. Optional - set
to null if not available.
- public override string title { get; }
Creation methods:
Methods:
- public override Type config_class ()
Config class for this tool. TODO: Will be implemented in Phase 5 with
Child.Config
- protected override RequestBase? deserialize (Node parameters_node)
Deserializes request parameters from JSON.
- public override void setup_tool_config_default (Config2 config)
Sets up the agent tool configuration with default connection.
Inherited Members:
All known members inherited from class OLLMchat.Tool.BaseTool
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Json.Serializable
- default_deserialize_property
- default_serialize_property
- deserialize_property
- find_property
- get_property
- list_properties
- serialize_property
- set_property