Skip to content
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

Implement new create() methods for the Agent(), Environment(), Orchestrator(), Tool() classes #45

Closed
richardblythman opened this issue Nov 29, 2024 · 0 comments · Fixed by #52
Assignees

Comments

@richardblythman
Copy link
Contributor

Depends on #43.
Partially depends on #41 and #44.

Implement new create() methods for the Agent(), Environment(), Orchestrator(), Tool() classes for downloading and installing a module to a node. These new methods will use the corresponding new create_* methods of the node client (from #43).

Here is an example of how it will be used:

from naptha_sdk.agent import Agent

agent_deployment = {
    "module": {"name": "simple_chat_agent"},
    "worker_node_url": "https://node.naptha.ai"
}

agent = Agent()

response = agent.create(agent_deployment)

response = await agent.call_agent_func(
    tool_name="chat", 
    tool_input_data="What is an AI agent?", 
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants