Add description field to prompt blocks
Some checks failed
openapi_client Python package / build (3.11) (push) Failing after 46s
openapi_client Python package / build (3.10) (push) Failing after 48s
openapi_client Python package / build (3.7) (push) Failing after 5s
openapi_client Python package / build (3.8) (push) Failing after 5s
openapi_client Python package / build (3.9) (push) Failing after 5s
Some checks failed
openapi_client Python package / build (3.11) (push) Failing after 46s
openapi_client Python package / build (3.10) (push) Failing after 48s
openapi_client Python package / build (3.7) (push) Failing after 5s
openapi_client Python package / build (3.8) (push) Failing after 5s
openapi_client Python package / build (3.9) (push) Failing after 5s
This commit is contained in:
parent
f4acd7dfd1
commit
4f1fcde0ce
@ -69,16 +69,4 @@ setup.cfg
|
|||||||
setup.py
|
setup.py
|
||||||
test-requirements.txt
|
test-requirements.txt
|
||||||
test/__init__.py
|
test/__init__.py
|
||||||
test/test_chats_api.py
|
|
||||||
test/test_domain_client_chat.py
|
|
||||||
test/test_domain_client_message.py
|
|
||||||
test/test_domain_company_create_request.py
|
|
||||||
test/test_domain_company_function.py
|
|
||||||
test/test_domain_company_update_request.py
|
|
||||||
test/test_domain_get_chats_response.py
|
|
||||||
test/test_domain_get_me_response.py
|
|
||||||
test/test_domain_metrics_response.py
|
|
||||||
test/test_domain_prompt_block.py
|
|
||||||
test/test_get_me_api.py
|
|
||||||
test/test_metrics_api.py
|
|
||||||
tox.ini
|
tox.ini
|
||||||
|
|||||||
@ -31,7 +31,7 @@ class DomainCompanyCreateRequest(BaseModel):
|
|||||||
functions: Optional[List[DomainCompanyFunction]] = None
|
functions: Optional[List[DomainCompanyFunction]] = None
|
||||||
integration_url: StrictStr
|
integration_url: StrictStr
|
||||||
name: StrictStr
|
name: StrictStr
|
||||||
prompt_blocks: Optional[List[DomainPromptBlock]] = None
|
prompt_blocks: List[DomainPromptBlock]
|
||||||
token: StrictStr
|
token: StrictStr
|
||||||
__properties: ClassVar[List[str]] = ["functions", "integration_url", "name", "prompt_blocks", "token"]
|
__properties: ClassVar[List[str]] = ["functions", "integration_url", "name", "prompt_blocks", "token"]
|
||||||
|
|
||||||
|
|||||||
@ -27,8 +27,9 @@ class DomainPromptBlock(BaseModel):
|
|||||||
DomainPromptBlock
|
DomainPromptBlock
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
content: Optional[StrictStr] = None
|
content: Optional[StrictStr] = None
|
||||||
|
description: Optional[StrictStr] = None
|
||||||
name: Optional[StrictStr] = None
|
name: Optional[StrictStr] = None
|
||||||
__properties: ClassVar[List[str]] = ["content", "name"]
|
__properties: ClassVar[List[str]] = ["content", "description", "name"]
|
||||||
|
|
||||||
model_config = ConfigDict(
|
model_config = ConfigDict(
|
||||||
populate_by_name=True,
|
populate_by_name=True,
|
||||||
@ -82,6 +83,7 @@ class DomainPromptBlock(BaseModel):
|
|||||||
|
|
||||||
_obj = cls.model_validate({
|
_obj = cls.model_validate({
|
||||||
"content": obj.get("content"),
|
"content": obj.get("content"),
|
||||||
|
"description": obj.get("description"),
|
||||||
"name": obj.get("name")
|
"name": obj.get("name")
|
||||||
})
|
})
|
||||||
return _obj
|
return _obj
|
||||||
|
|||||||
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**functions** | [**List[DomainCompanyFunction]**](DomainCompanyFunction.md) | | [optional]
|
**functions** | [**List[DomainCompanyFunction]**](DomainCompanyFunction.md) | | [optional]
|
||||||
**integration_url** | **str** | |
|
**integration_url** | **str** | |
|
||||||
**name** | **str** | |
|
**name** | **str** | |
|
||||||
**prompt_blocks** | [**List[DomainPromptBlock]**](DomainPromptBlock.md) | | [optional]
|
**prompt_blocks** | [**List[DomainPromptBlock]**](DomainPromptBlock.md) | |
|
||||||
**token** | **str** | |
|
**token** | **str** | |
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**content** | **str** | | [optional]
|
**content** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
**name** | **str** | | [optional]
|
**name** | **str** | | [optional]
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|||||||
@ -604,6 +604,7 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"integration_url",
|
"integration_url",
|
||||||
"name",
|
"name",
|
||||||
|
"prompt_blocks",
|
||||||
"token"
|
"token"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -779,6 +780,9 @@
|
|||||||
"content": {
|
"content": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|||||||
# prerequisite: setuptools
|
# prerequisite: setuptools
|
||||||
# http://pypi.python.org/pypi/setuptools
|
# http://pypi.python.org/pypi/setuptools
|
||||||
NAME = "openapi-client"
|
NAME = "openapi-client"
|
||||||
VERSION = "1.3.0"
|
VERSION = "1.4.0"
|
||||||
PYTHON_REQUIRES = ">=3.7"
|
PYTHON_REQUIRES = ">=3.7"
|
||||||
REQUIRES = [
|
REQUIRES = [
|
||||||
"urllib3 >= 1.25.3, < 2.1.0",
|
"urllib3 >= 1.25.3, < 2.1.0",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user