Enha: agent request builder

This commit is contained in:
Grail Finder
2025-12-19 15:39:55 +03:00
parent a875abcf19
commit f779f03974
5 changed files with 431 additions and 31 deletions

View File

@@ -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)
}