cheshire-cat-ai/core

`agent_fast_reply` output missing `intermediate_steps`

Closed this issue · 1 comments

When using agent_fast_reply one should be able to return:

  • a dictionary or
  • an AgentOutput instance

In the case of a dictionary, if the plugin does not add an intermediate_steps to the output, the Cat errors when building the why here:

why.intermediate_steps = agent_output.intermediate_steps

It is easily fixed by converting the dict in output from agentfast_reply in an AgentOutput instance, that assigns intermediate_steps automatically empty.
Here the place to convert:

return fast_reply

Fixed in develop