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

agentstack run checks for valid project #60

Closed
bboynton97 opened this issue Nov 26, 2024 · 1 comment
Closed

agentstack run checks for valid project #60

bboynton97 opened this issue Nov 26, 2024 · 1 comment

Comments

@bboynton97
Copy link
Contributor

When running agentstack run, the CLI should first check that the project is valid.

At this time, "valid" means that the project has at least one agent and one task.

@bboynton97
Copy link
Contributor Author

This is in response to a discord support question from a user that ran

agentstack init
agentstack run

and received this error

/home/vscode/.cache/pypoetry/virtualenvs/silly-agent-d-U8PDVS-py3.12/lib/python3.12/site-packages/pysbd/segmenter.py:66: SyntaxWarning: invalid escape sequence '\s'
  for match in re.finditer('{0}\s*'.format(re.escape(sent)), self.original_text):
/home/vscode/.cache/pypoetry/virtualenvs/silly-agent-d-U8PDVS-py3.12/lib/python3.12/site-packages/pysbd/lang/arabic.py:29: SyntaxWarning: invalid escape sequence '\.'
  txt = re.sub('(?<={0})\.'.format(am), '∯', txt)
/home/vscode/.cache/pypoetry/virtualenvs/silly-agent-d-U8PDVS-py3.12/lib/python3.12/site-packages/pysbd/lang/persian.py:29: SyntaxWarning: invalid escape sequence '\.'
  txt = re.sub('(?<={0})\.'.format(am), '∯', txt)
🖇 AgentOps: Session Replay: https://app.agentops.ai/drilldown?session_id=d1551dfb-60f6-43cd-b024-0ad4e414cf76
🖇 AgentOps: Session Stats - Duration: 0.8s | Cost: $0.00 | LLMs: 0 | Tools: 0 | Actions: 0 | Errors: 0
🖇 AgentOps: Session Replay: https://app.agentops.ai/drilldown?session_id=d1551dfb-60f6-43cd-b024-0ad4e414cf76
Traceback (most recent call last):
  File "/workspaces/agentops-playground/silly_agent/src/main.py", line 65, in <module>
    run()
  File "/workspaces/agentops-playground/silly_agent/src/main.py", line 22, in run
    SillyagentCrew().crew().kickoff(inputs=inputs)
    ^^^^^^^^^^^^^^^^
  File "/home/vscode/.cache/pypoetry/virtualenvs/silly-agent-d-U8PDVS-py3.12/lib/python3.12/site-packages/crewai/project/crew_base.py", line 32, in __init__
    self.map_all_agent_variables()
  File "/home/vscode/.cache/pypoetry/virtualenvs/silly-agent-d-U8PDVS-py3.12/lib/python3.12/site-packages/crewai/project/crew_base.py", line 70, in map_all_agent_variables
    for agent_name, agent_info in self.agents_config.items():
                                  ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'items'

tcdent added a commit to tcdent/AgentStack that referenced this issue Dec 2, 2024
Start to build frameworks abstraction module.
@bboynton97 bboynton97 mentioned this issue Dec 7, 2024
@tcdent tcdent closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants