File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
llmstack/connections/handlers Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import logging
3- from typing import Iterator , Union
3+ from typing import Iterator , List , Union
44
55import grpc
66from django .conf import settings
@@ -24,11 +24,21 @@ class WebLoginBaseConfiguration(BaseSchema):
2424 _storage_state : str
2525
2626
27+ class WebLoginCredentials (BaseSchema ):
28+ domain : str = Field (description = "Domain of the website" )
29+ username : str = Field (description = "Username" )
30+ password : str = Field (description = "Password" , json_schema_extra = {"widget" : "password" })
31+
32+
2733class WebLoginConfiguration (WebLoginBaseConfiguration ):
2834 start_url : str = Field (
2935 description = "URL to login to" ,
3036 default = "https://google.com" ,
3137 )
38+ credentials : List [WebLoginCredentials ] = Field (
39+ description = "Credentials to login to the website" ,
40+ default = [],
41+ )
3242
3343
3444class WebLogin (ConnectionTypeInterface [WebLoginConfiguration ]):
You can’t perform that action at this time.
0 commit comments