beamlit 0.0.54rc100__py3-none-any.whl → 0.0.55__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. beamlit/agents/chain.py +2 -1
  2. beamlit/agents/chat.py +1 -0
  3. beamlit/agents/decorator.py +3 -2
  4. beamlit/api/integrations/get_integration_connection_model.py +2 -2
  5. beamlit/api/integrations/{list_integration_models.py → get_integration_connection_model_endpoint_configurations.py} +12 -12
  6. beamlit/api/{default/create_account.py → knowledgebases/create_knowledgebase.py} +30 -30
  7. beamlit/api/{accounts/delete_account.py → knowledgebases/delete_knowledgebase.py} +57 -43
  8. beamlit/api/{accounts/get_account.py → knowledgebases/get_knowledgebase.py} +56 -35
  9. beamlit/api/{accounts/list_accounts.py → knowledgebases/list_knowledgebases.py} +57 -25
  10. beamlit/api/{accounts/update_account.py → knowledgebases/update_knowledgebase.py} +43 -43
  11. beamlit/deploy/deploy.py +2 -0
  12. beamlit/deploy/format.py +1 -68
  13. beamlit/models/__init__.py +8 -10
  14. beamlit/models/agent_chain.py +9 -0
  15. beamlit/models/agent_spec.py +10 -1
  16. beamlit/models/integration_model.py +27 -9
  17. beamlit/models/knowledgebase.py +126 -0
  18. beamlit/models/knowledgebase_release.py +70 -0
  19. beamlit/models/knowledgebase_spec.py +143 -0
  20. beamlit/models/{account_spec_address.py → knowledgebase_spec_options.py} +6 -6
  21. beamlit/models/model_spec.py +9 -0
  22. beamlit/models/runtime.py +21 -2
  23. beamlit/models/store_agent.py +9 -0
  24. {beamlit-0.0.54rc100.dist-info → beamlit-0.0.55.dist-info}/METADATA +1 -1
  25. {beamlit-0.0.54rc100.dist-info → beamlit-0.0.55.dist-info}/RECORD +29 -31
  26. beamlit/api/integrations/get_integration_model.py +0 -104
  27. beamlit/models/account.py +0 -224
  28. beamlit/models/account_metadata.py +0 -121
  29. beamlit/models/account_spec.py +0 -123
  30. beamlit/models/billing_address.py +0 -133
  31. /beamlit/api/{accounts → knowledgebases}/__init__.py +0 -0
  32. {beamlit-0.0.54rc100.dist-info → beamlit-0.0.55.dist-info}/WHEEL +0 -0
  33. {beamlit-0.0.54rc100.dist-info → beamlit-0.0.55.dist-info}/entry_points.txt +0 -0
  34. {beamlit-0.0.54rc100.dist-info → beamlit-0.0.55.dist-info}/licenses/LICENSE +0 -0
@@ -1,121 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.metadata_labels import MetadataLabels
10
-
11
-
12
- T = TypeVar("T", bound="AccountMetadata")
13
-
14
-
15
- @_attrs_define
16
- class AccountMetadata:
17
- """AccountMetadata
18
-
19
- Attributes:
20
- created_at (Union[Unset, str]): The date and time when the resource was created
21
- updated_at (Union[Unset, str]): The date and time when the resource was updated
22
- created_by (Union[Unset, str]): The user or service account who created the resource
23
- updated_by (Union[Unset, str]): The user or service account who updated the resource
24
- id (Union[Unset, str]): Account id
25
- labels (Union[Unset, MetadataLabels]): Labels
26
- """
27
-
28
- created_at: Union[Unset, str] = UNSET
29
- updated_at: Union[Unset, str] = UNSET
30
- created_by: Union[Unset, str] = UNSET
31
- updated_by: Union[Unset, str] = UNSET
32
- id: Union[Unset, str] = UNSET
33
- labels: Union[Unset, "MetadataLabels"] = UNSET
34
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
35
-
36
- def to_dict(self) -> dict[str, Any]:
37
- created_at = self.created_at
38
-
39
- updated_at = self.updated_at
40
-
41
- created_by = self.created_by
42
-
43
- updated_by = self.updated_by
44
-
45
- id = self.id
46
-
47
- labels: Union[Unset, dict[str, Any]] = UNSET
48
- if self.labels and not isinstance(self.labels, Unset) and not isinstance(self.labels, dict):
49
- labels = self.labels.to_dict()
50
- elif self.labels and isinstance(self.labels, dict):
51
- labels = self.labels
52
-
53
- field_dict: dict[str, Any] = {}
54
- field_dict.update(self.additional_properties)
55
- field_dict.update({})
56
- if created_at is not UNSET:
57
- field_dict["createdAt"] = created_at
58
- if updated_at is not UNSET:
59
- field_dict["updatedAt"] = updated_at
60
- if created_by is not UNSET:
61
- field_dict["createdBy"] = created_by
62
- if updated_by is not UNSET:
63
- field_dict["updatedBy"] = updated_by
64
- if id is not UNSET:
65
- field_dict["id"] = id
66
- if labels is not UNSET:
67
- field_dict["labels"] = labels
68
-
69
- return field_dict
70
-
71
- @classmethod
72
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
73
- from ..models.metadata_labels import MetadataLabels
74
-
75
- if not src_dict:
76
- return None
77
- d = src_dict.copy()
78
- created_at = d.pop("createdAt", UNSET)
79
-
80
- updated_at = d.pop("updatedAt", UNSET)
81
-
82
- created_by = d.pop("createdBy", UNSET)
83
-
84
- updated_by = d.pop("updatedBy", UNSET)
85
-
86
- id = d.pop("id", UNSET)
87
-
88
- _labels = d.pop("labels", UNSET)
89
- labels: Union[Unset, MetadataLabels]
90
- if isinstance(_labels, Unset):
91
- labels = UNSET
92
- else:
93
- labels = MetadataLabels.from_dict(_labels)
94
-
95
- account_metadata = cls(
96
- created_at=created_at,
97
- updated_at=updated_at,
98
- created_by=created_by,
99
- updated_by=updated_by,
100
- id=id,
101
- labels=labels,
102
- )
103
-
104
- account_metadata.additional_properties = d
105
- return account_metadata
106
-
107
- @property
108
- def additional_keys(self) -> list[str]:
109
- return list(self.additional_properties.keys())
110
-
111
- def __getitem__(self, key: str) -> Any:
112
- return self.additional_properties[key]
113
-
114
- def __setitem__(self, key: str, value: Any) -> None:
115
- self.additional_properties[key] = value
116
-
117
- def __delitem__(self, key: str) -> None:
118
- del self.additional_properties[key]
119
-
120
- def __contains__(self, key: str) -> bool:
121
- return key in self.additional_properties
@@ -1,123 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.account_spec_address import AccountSpecAddress
10
-
11
-
12
- T = TypeVar("T", bound="AccountSpec")
13
-
14
-
15
- @_attrs_define
16
- class AccountSpec:
17
- """AccountSpec
18
-
19
- Attributes:
20
- address (Union[Unset, AccountSpecAddress]): Billing address
21
- admins (Union[Unset, list[Any]]): Admins
22
- currency (Union[Unset, str]): Currency
23
- owner (Union[Unset, str]): Owner
24
- status (Union[Unset, str]): Status
25
- tax_id (Union[Unset, str]): Tax ID
26
- """
27
-
28
- address: Union[Unset, "AccountSpecAddress"] = UNSET
29
- admins: Union[Unset, list[Any]] = UNSET
30
- currency: Union[Unset, str] = UNSET
31
- owner: Union[Unset, str] = UNSET
32
- status: Union[Unset, str] = UNSET
33
- tax_id: Union[Unset, str] = UNSET
34
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
35
-
36
- def to_dict(self) -> dict[str, Any]:
37
- address: Union[Unset, dict[str, Any]] = UNSET
38
- if self.address and not isinstance(self.address, Unset) and not isinstance(self.address, dict):
39
- address = self.address.to_dict()
40
- elif self.address and isinstance(self.address, dict):
41
- address = self.address
42
-
43
- admins: Union[Unset, list[Any]] = UNSET
44
- if not isinstance(self.admins, Unset):
45
- admins = self.admins
46
-
47
- currency = self.currency
48
-
49
- owner = self.owner
50
-
51
- status = self.status
52
-
53
- tax_id = self.tax_id
54
-
55
- field_dict: dict[str, Any] = {}
56
- field_dict.update(self.additional_properties)
57
- field_dict.update({})
58
- if address is not UNSET:
59
- field_dict["address"] = address
60
- if admins is not UNSET:
61
- field_dict["admins"] = admins
62
- if currency is not UNSET:
63
- field_dict["currency"] = currency
64
- if owner is not UNSET:
65
- field_dict["owner"] = owner
66
- if status is not UNSET:
67
- field_dict["status"] = status
68
- if tax_id is not UNSET:
69
- field_dict["tax_id"] = tax_id
70
-
71
- return field_dict
72
-
73
- @classmethod
74
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
75
- from ..models.account_spec_address import AccountSpecAddress
76
-
77
- if not src_dict:
78
- return None
79
- d = src_dict.copy()
80
- _address = d.pop("address", UNSET)
81
- address: Union[Unset, AccountSpecAddress]
82
- if isinstance(_address, Unset):
83
- address = UNSET
84
- else:
85
- address = AccountSpecAddress.from_dict(_address)
86
-
87
- admins = cast(list[Any], d.pop("admins", UNSET))
88
-
89
- currency = d.pop("currency", UNSET)
90
-
91
- owner = d.pop("owner", UNSET)
92
-
93
- status = d.pop("status", UNSET)
94
-
95
- tax_id = d.pop("tax_id", UNSET)
96
-
97
- account_spec = cls(
98
- address=address,
99
- admins=admins,
100
- currency=currency,
101
- owner=owner,
102
- status=status,
103
- tax_id=tax_id,
104
- )
105
-
106
- account_spec.additional_properties = d
107
- return account_spec
108
-
109
- @property
110
- def additional_keys(self) -> list[str]:
111
- return list(self.additional_properties.keys())
112
-
113
- def __getitem__(self, key: str) -> Any:
114
- return self.additional_properties[key]
115
-
116
- def __setitem__(self, key: str, value: Any) -> None:
117
- self.additional_properties[key] = value
118
-
119
- def __delitem__(self, key: str) -> None:
120
- del self.additional_properties[key]
121
-
122
- def __contains__(self, key: str) -> bool:
123
- return key in self.additional_properties
@@ -1,133 +0,0 @@
1
- from typing import Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- T = TypeVar("T", bound="BillingAddress")
9
-
10
-
11
- @_attrs_define
12
- class BillingAddress:
13
- """BillingAddress
14
-
15
- Attributes:
16
- city (Union[Unset, str]): City
17
- country (Union[Unset, str]): Country
18
- first_name (Union[Unset, str]): First name
19
- last_name (Union[Unset, str]): Last name
20
- phone_number (Union[Unset, str]): Phone number
21
- postal_code (Union[Unset, str]): Postal code
22
- state (Union[Unset, str]): State/Province/Region
23
- street1 (Union[Unset, str]): Street 1
24
- street2 (Union[Unset, str]): Street 2
25
- """
26
-
27
- city: Union[Unset, str] = UNSET
28
- country: Union[Unset, str] = UNSET
29
- first_name: Union[Unset, str] = UNSET
30
- last_name: Union[Unset, str] = UNSET
31
- phone_number: Union[Unset, str] = UNSET
32
- postal_code: Union[Unset, str] = UNSET
33
- state: Union[Unset, str] = UNSET
34
- street1: Union[Unset, str] = UNSET
35
- street2: Union[Unset, str] = UNSET
36
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
37
-
38
- def to_dict(self) -> dict[str, Any]:
39
- city = self.city
40
-
41
- country = self.country
42
-
43
- first_name = self.first_name
44
-
45
- last_name = self.last_name
46
-
47
- phone_number = self.phone_number
48
-
49
- postal_code = self.postal_code
50
-
51
- state = self.state
52
-
53
- street1 = self.street1
54
-
55
- street2 = self.street2
56
-
57
- field_dict: dict[str, Any] = {}
58
- field_dict.update(self.additional_properties)
59
- field_dict.update({})
60
- if city is not UNSET:
61
- field_dict["city"] = city
62
- if country is not UNSET:
63
- field_dict["country"] = country
64
- if first_name is not UNSET:
65
- field_dict["firstName"] = first_name
66
- if last_name is not UNSET:
67
- field_dict["lastName"] = last_name
68
- if phone_number is not UNSET:
69
- field_dict["phoneNumber"] = phone_number
70
- if postal_code is not UNSET:
71
- field_dict["postalCode"] = postal_code
72
- if state is not UNSET:
73
- field_dict["state"] = state
74
- if street1 is not UNSET:
75
- field_dict["street1"] = street1
76
- if street2 is not UNSET:
77
- field_dict["street2"] = street2
78
-
79
- return field_dict
80
-
81
- @classmethod
82
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
83
- if not src_dict:
84
- return None
85
- d = src_dict.copy()
86
- city = d.pop("city", UNSET)
87
-
88
- country = d.pop("country", UNSET)
89
-
90
- first_name = d.pop("firstName", UNSET)
91
-
92
- last_name = d.pop("lastName", UNSET)
93
-
94
- phone_number = d.pop("phoneNumber", UNSET)
95
-
96
- postal_code = d.pop("postalCode", UNSET)
97
-
98
- state = d.pop("state", UNSET)
99
-
100
- street1 = d.pop("street1", UNSET)
101
-
102
- street2 = d.pop("street2", UNSET)
103
-
104
- billing_address = cls(
105
- city=city,
106
- country=country,
107
- first_name=first_name,
108
- last_name=last_name,
109
- phone_number=phone_number,
110
- postal_code=postal_code,
111
- state=state,
112
- street1=street1,
113
- street2=street2,
114
- )
115
-
116
- billing_address.additional_properties = d
117
- return billing_address
118
-
119
- @property
120
- def additional_keys(self) -> list[str]:
121
- return list(self.additional_properties.keys())
122
-
123
- def __getitem__(self, key: str) -> Any:
124
- return self.additional_properties[key]
125
-
126
- def __setitem__(self, key: str, value: Any) -> None:
127
- self.additional_properties[key] = value
128
-
129
- def __delitem__(self, key: str) -> None:
130
- del self.additional_properties[key]
131
-
132
- def __contains__(self, key: str) -> bool:
133
- return key in self.additional_properties
File without changes