Skip to content

Quickstart agentos CLI example doesn't work #89

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

Closed
trush opened this issue Feb 9, 2021 · 0 comments · Fixed by #93
Closed

Quickstart agentos CLI example doesn't work #89

trush opened this issue Feb 9, 2021 · 0 comments · Fixed by #93
Assignees
Labels
bug Something isn't working cli Related to AgentOS command line interface

Comments

@trush
Copy link
Contributor

trush commented Feb 9, 2021

Using the example code from simple_agent in the Quickstart, the CLI example using agentos run doesn't work. The error complains about advance not being implemented:

Found first subclass class <class 'agentos.core.Agent'>; returning it.
Traceback (most recent call last):
...
NotImplementedError

It appears to be using the wrong subclass of Agent.

With the provided simple_agent.py, in the python interpreter we see:

>>> import simple_agent
>>> dir(simple_agent)
['Agent', 'SimpleAgent', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']

We can change the first two lines of simple_agent.py to be

import agentos
class SimpleAgent(agentos.Agent):

Then in the interpreter we see:

>>> import simple_agent
>>> dir(simple_agent)
['SimpleAgent', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'agentos']

With this version, with SimpleAgent first in the list, the CLI example works.

@trush trush added the cli Related to AgentOS command line interface label Feb 9, 2021
@trush trush added the bug Something isn't working label Feb 9, 2021
andyk added a commit to andyk/agentos that referenced this issue Feb 19, 2021
@trush trush closed this as completed in #93 Feb 20, 2021
trush added a commit that referenced this issue Feb 20, 2021
fix bugs in quickstart code. fixes #88, #89, #90
nickjalbert pushed a commit to nickjalbert/agentos that referenced this issue Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to AgentOS command line interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants