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
|
||||
test-requirements.txt
|
||||
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
|
||||
|
||||
@ -31,7 +31,7 @@ class DomainCompanyCreateRequest(BaseModel):
|
||||
functions: Optional[List[DomainCompanyFunction]] = None
|
||||
integration_url: StrictStr
|
||||
name: StrictStr
|
||||
prompt_blocks: Optional[List[DomainPromptBlock]] = None
|
||||
prompt_blocks: List[DomainPromptBlock]
|
||||
token: StrictStr
|
||||
__properties: ClassVar[List[str]] = ["functions", "integration_url", "name", "prompt_blocks", "token"]
|
||||
|
||||
|
||||
@ -27,8 +27,9 @@ class DomainPromptBlock(BaseModel):
|
||||
DomainPromptBlock
|
||||
""" # noqa: E501
|
||||
content: Optional[StrictStr] = None
|
||||
description: Optional[StrictStr] = None
|
||||
name: Optional[StrictStr] = None
|
||||
__properties: ClassVar[List[str]] = ["content", "name"]
|
||||
__properties: ClassVar[List[str]] = ["content", "description", "name"]
|
||||
|
||||
model_config = ConfigDict(
|
||||
populate_by_name=True,
|
||||
@ -82,6 +83,7 @@ class DomainPromptBlock(BaseModel):
|
||||
|
||||
_obj = cls.model_validate({
|
||||
"content": obj.get("content"),
|
||||
"description": obj.get("description"),
|
||||
"name": obj.get("name")
|
||||
})
|
||||
return _obj
|
||||
|
||||
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
||||
**functions** | [**List[DomainCompanyFunction]**](DomainCompanyFunction.md) | | [optional]
|
||||
**integration_url** | **str** | |
|
||||
**name** | **str** | |
|
||||
**prompt_blocks** | [**List[DomainPromptBlock]**](DomainPromptBlock.md) | | [optional]
|
||||
**prompt_blocks** | [**List[DomainPromptBlock]**](DomainPromptBlock.md) | |
|
||||
**token** | **str** | |
|
||||
|
||||
## Example
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | **str** | | [optional]
|
||||
**description** | **str** | | [optional]
|
||||
**name** | **str** | | [optional]
|
||||
|
||||
## Example
|
||||
|
||||
@ -604,6 +604,7 @@
|
||||
"required": [
|
||||
"integration_url",
|
||||
"name",
|
||||
"prompt_blocks",
|
||||
"token"
|
||||
],
|
||||
"properties": {
|
||||
@ -779,6 +780,9 @@
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user