-
Notifications
You must be signed in to change notification settings - Fork 23
ENG-1962: composio #547
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
ENG-1962: composio #547
Conversation
| from typing import Dict, Optional, Text | ||
|
|
||
|
|
||
| def create_model_from_response(response: Dict) -> Model: |
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.
lets create model_factory/utils and move this to there
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.
Would say it is better than keeping on the designated mixin?
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.
done
| ) | ||
|
|
||
|
|
||
| def get_assets_from_page( |
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.
lets create model_factory/utils and move this to there
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.
done
| raise Exception(error_message) | ||
|
|
||
|
|
||
| def get_model_from_ids(model_ids: List[str], api_key: Optional[str] = None) -> List[Model]: |
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.
lets create model_factory/utils and move this to there
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.
done
ahmetgunduz
left a comment
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.
Can we please have unit and functional tests for this?
ahmetgunduz
left a comment
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.
ScriptModel -> UtilityModel
aixplain/enums/function_type.py
Outdated
| UTILITY = "utility" | ||
| METRIC = "metric" | ||
| SEARCH = "search" | ||
| CONNECTOR = "connector" |
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.
must be renamed as integration
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.
done
| function: Optional[Function] = None, | ||
| is_subscribed: bool = False, | ||
| cost: Optional[Dict] = None, | ||
| function_type: Optional[FunctionType] = FunctionType.CONNECTOR, |
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.
Integration
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.
done
|
|
||
|
|
||
| class UtilityModel(Model, DeployableMixin): | ||
| class ScriptModel(Model, DeployableMixin): |
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.
This must be done by mistake?
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.
Reverted
| METRIC = "metric" | ||
| SEARCH = "search" | ||
| CONNECTOR = "connector" | ||
| INTEGRATION = "connector" |
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 not the value to be 'integration'?
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.
the value is given by model serving. There it is connector yet.
No description provided.