Skip to content

Conversation

@hannaengel
Copy link
Contributor

missing json template files were causing an error after stepping through the get started tutorial and calling:

TravelAgent.with(
  instructions: "Help users with travel-related queries, using the search, book, and confirm actions.",
  messages: [
    { role: 'user', content: 'I need a hotel in Paris' }
  ]
).search.generate_now

ActionView::MissingTemplate: Missing template travel_agent/confirm, application_agent/confirm, active_agent/base/confirm with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}.

@TonsOfFun
Copy link
Contributor

Awesome, thanks for submitting this!

It was great meeting at the hack space!

I'll take a look at this on the plane later, might try to add some tests, and maybe a jbuilder template, but we can merge it this weekend and I'll probably cut a release with this early next week.

@hannaengel
Copy link
Contributor Author

Yay sounds good!

Copy link
Contributor

@TonsOfFun TonsOfFun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff, I'm going to leave the jbuilder for another issue along with an rspec generator for those inclined to do so.

For now I'm gonna merge and probably cut a release too ✨ thanks for the contribution!

@TonsOfFun TonsOfFun merged commit 679c924 into activeagents:main Jul 15, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants