Skip to content
Discussion options

You must be logged in to vote

@StefandewitSPS Thanks for asking this question!

Is this the correct way to implement this, or are there better approaches to achieve this?

I think the approach presented by you is correct and should cover your scenario.

It seems that when a JSON schema is defined on the agent, context.Terminate does nothing.

I'm not sure if context.Terminate depends on the format of response, whether it's a text or JSON schema, but I will need to double check. Thanks for providing code snippet for your filter and JSON schema. In order to reproduce this behavior, I will also need an example of your agent initialization as well as the example of agent invocation, if possible. Thank you!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants