Closed jdr0887 closed 1 year ago
Reading the code in reasoner-pydantic, looks like there is a Query & AsyncQuery object that I think I should be using as the parameter for /query & /asyncquery respectively. This would replace Response as the parameter. Is that right?
https://github.com/TranslatorSRI/reasoner-pydantic/blob/1a78c6ad0a09bfee3bd389d9038a43f954bd957d/reasoner_pydantic/message.py#L99
https://github.com/TranslatorSRI/reasoner-pydantic/blob/1a78c6ad0a09bfee3bd389d9038a43f954bd957d/reasoner_pydantic/message.py#L119
Yes, I think that's correct. You can see how we did it in aragorn here: https://github.com/ranking-agent/aragorn/blob/main/src/robokop_app.py#L68
Reading the code in reasoner-pydantic, looks like there is a Query & AsyncQuery object that I think I should be using as the parameter for /query & /asyncquery respectively. This would replace Response as the parameter. Is that right?
https://github.com/TranslatorSRI/reasoner-pydantic/blob/1a78c6ad0a09bfee3bd389d9038a43f954bd957d/reasoner_pydantic/message.py#L99
https://github.com/TranslatorSRI/reasoner-pydantic/blob/1a78c6ad0a09bfee3bd389d9038a43f954bd957d/reasoner_pydantic/message.py#L119