summaryrefslogtreecommitdiff
path: root/agent/agent.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-19 15:39:55 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-19 15:39:55 +0300
commitf779f039745f97f08f25967214d07716ce213326 (patch)
tree9868dfe5e77845e27d4fe8b36f993a5fade2ea7b /agent/agent.go
parenta875abcf198dd2f85c518f8bf2c599db66d3e69f (diff)
Enha: agent request builder
Diffstat (limited to 'agent/agent.go')
-rw-r--r--agent/agent.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/agent/agent.go b/agent/agent.go
index 5ad1ef1..8824ecb 100644
--- a/agent/agent.go
+++ b/agent/agent.go
@@ -33,3 +33,13 @@ func RegisterB(toolName string, a AgenterB) {
func RegisterA(toolNames []string, a AgenterA) {
RegistryA[a] = toolNames
}
+
+// Get returns the agent registered for the given tool name, or nil if none.
+func Get(toolName string) AgenterB {
+ return RegistryB[toolName]
+}
+
+// Register is a convenience wrapper for RegisterB.
+func Register(toolName string, a AgenterB) {
+ RegisterB(toolName, a)
+}