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

agent raises when no triggers are defined #83

Open
swerner opened this issue Aug 20, 2024 · 0 comments
Open

agent raises when no triggers are defined #83

swerner opened this issue Aug 20, 2024 · 0 comments

Comments

@swerner
Copy link
Contributor

swerner commented Aug 20, 2024

if a user plans to trigger their agent manually, an error is raised:

gems/sublayer-0.2.3/lib/sublayer/agents/base.rb:45:in `setup_triggers': undefined method `each' for nil (NoMethodError)

        self.class.triggers.each do |trigger|

Two things planned here, one with no triggers defined it shouldn't error out, but we should also have a built in trigger subclass for manually triggering an agent

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

1 participant