Repository navigation
Add ML Commons agents - #144
Open
esmarkowski wants to merge 2 commits into
Open
esmarkowski wants to merge 2 commits into
esmarkowski wants to merge 2 commits into
Conversation
Agent declares an ML Commons agent with agent_type, llm, memory and a tool DSL, and registers, executes, finds and deletes it through client.ml. Tool `model:` and `index:` options resolve to a model id and index name at register time. Resource gains the shared find, exists?, delete! and remote_id_for, with a per-resource missing_error, and ModelGroup now uses them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stretchy:ml:agent:create, delete and status act on every Agent, or the one named in AGENT. stretchy:up creates agents after models deploy and stretchy:down deletes them before models undeploy. RakeHelpers holds the ENV-or-descendants lookup and the spinner loop so other tasks can share them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents are declared as classes with an agent type, an LLM, memory and tools, then registered, executed and deleted from Ruby or rake. Tool
model:andindex:options resolve to the model id and index name when the agent registers.AGENT=SupportAgent rake stretchy:ml:agent:createcreates one agent.stretchy:upcreates agents after models deploy, andstretchy:downdeletes them before models undeploy.Resourcenow providesfind,exists?anddelete!for every ML resource, raising a resource-specificmissing_error.ModelGroupuses them.A flow agent with
ListIndexToolwas registered, executed and deleted against OpenSearch 3.9.0. Specs pass on OpenSearch 3.9.0, OpenSearch 2.19.7 and Elasticsearch 8.12.2.Closes #137