- Issue created by @marcus_johansson
We have a module currently called AI Test that have some hard coded mocks on some requests and responses to make sure that we can pretend to be an provider. This works well when used in the context of AI core module, since we have the power to change this.
In discussions with the XB AI team we found that they also want to do something similar. But why reinvent the wheel.
The idea is this instead:
The files should map to the InputInterfaces and OutputInterfaces of the provider types in Yaml. We could also add that all operation types from now on should have an FromArray and ToArray function to make it simpler.
This means that you can do kernel testing and functional testing on a contrib module, without having to connect to a real LLM or mock responses via Guzzle etc.
Active
1.2
AI Test