-
Notifications
You must be signed in to change notification settings - Fork 3
feat: agenting.py type hints and OpenAPI specs #377 #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/aiding_type_hints
Are you sure you want to change the base?
feat: agenting.py type hints and OpenAPI specs #377 #14
Conversation
99a6dd5
to
2756a67
Compare
* @returns {Promise<Operation<any>>} A promise to the long-running operation | ||
*/ | ||
async resolve(oobi: string, alias?: string): Promise<any> { | ||
async resolve(oobi: string, alias?: string): Promise<Operation<any>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used any to avoid some syntax errors in current tests.
Do you think we should using unknown
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think lets do unknown
for now and we can later get more specific operation response types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for other places where we have any
* @returns {Promise<Operation<any>>} A promise to the result | ||
*/ | ||
async responded(source: string, said: string): Promise<Response> { | ||
async responded(source: string, said: string): Promise<Operation<any>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, not sure if we needed to change this file - otherwise we are changing the API
e673933
to
289f56c
Compare
bc7e842
to
7ffb639
Compare
7ffb639
to
65186c9
Compare
No description provided.