-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Agents #160
Comments
Why do we want to pass tools directly to Agent(). Can't we just get developers to add tools to agent_config? |
#142 (review) is related |
I see this as the high-level question of how to unify the concept of "client tools" + "server tools". IIRC, right now we can have tools be defined as I think the proposal simplifies the amount of code user have to write. The llama-stack-client-python/src/llama_stack_client/lib/agents/react/agent.py Lines 31 to 47 in 08ab5df
However, the downside of this user may not have the full picture of agent_config = Agent.get_config_from_tools(tools) -> AgentConfig
react_agent_config = ReActAgent.get_config_from_tools(tools) -> AgentConfig
# modify config with models, sampling params etc
agent = Agent(client, agent_config, client_tools) -- we would still need to pass in tools to the agent in any case though (unless we introduce some notion of client side tools registration) |
Yea, I like having it in agent_config. Also going one step further, I don't think user should care whether a tool is client or server. They should all be passed in to a Also relatedly, I'm thinking of just changing
Created separate discussion: #165 |
Multiple places where client_tools are needed
[2] Provide tool def in the config
[3] again pass client tools here
Step [2] should not be necessary and we should just take client tools provided in [3] and inject them into the config before sending to server.
Proposal
The text was updated successfully, but these errors were encountered: