Aggregate-Intellect/sherpa

[BUG] Citation Validation would fail if there is no citation

20001LastOrder opened this issue · 2 comments

Describe the bug
It seems when the citation validation is triggered but there was no action involving a link by the agent, the code will crash with an outbound exception.

To Reproduce
Create an agent with empty actions but citation validation, run any query

Expected behavior
The citation validation will have no effect since there is no links / resources

Screenshots

image

I will work on this one

This error is cause by the inclusion of Google Search action but not selected by the agent.

Revised reproduce steps:

  1. include Google Search action and another action to the agent
  2. Add citation validation
  3. Make sure google search is not selected by the agent
  4. Run citation validation