GetProjectDetailsResponse

class openapi_client.models.get_project_details_response.GetProjectDetailsResponse(**data)[source]

Bases: BaseModel

Response for GET /ai/projects/{project_id} endpoint

project_id: Optional[StrictStr]
project_name: Optional[StrictStr]
project_status: Optional[StrictStr]
message: Optional[StrictStr]
description: Optional[StrictStr]
keywords: Optional[List[StrictStr]]
category: Optional[StrictStr]
enforce_resource_acls: Optional[StrictBool]
chatbot_name: Optional[StrictStr]
instructions: Optional[StrictStr]
greeting: Optional[StrictStr]
chat_suggestions: Optional[List[StrictStr]]
enable_smart_orchestration: Optional[StrictBool]
model: Optional[GetProjectDetailsResponseModel]
guard_rail: Optional[GetProjectDetailsResponseGuardRail]
avatar_url: Optional[StrictStr]
knowledge_bases: Optional[List[GetProjectDetailsResponseKnowledgeBasesInner]]
agents: Optional[List[GetProjectDetailsResponseAgentsInner]]
access_type: Optional[StrictStr]
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_str()[source]

Returns the string representation of the model using alias

Return type:

str

to_json()[source]

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)[source]

Create an instance of GetProjectDetailsResponse from a JSON string

Return type:

Optional[Self]

to_dict()[source]

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)[source]

Create an instance of GetProjectDetailsResponse from a dict

Return type:

Optional[Self]

model_fields: ClassVar[dict[str, FieldInfo]] = {'access_type': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AccessType', alias_priority=2, description='Access type of the project'), 'agents': FieldInfo(annotation=Union[List[GetProjectDetailsResponseAgentsInner], NoneType], required=False, alias='Agents', alias_priority=2, description='List of agents'), 'avatar_url': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='AvatarURL', alias_priority=2, description='URL of the project agent avatar'), 'category': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Category', alias_priority=2, description='Category for the project'), 'chat_suggestions': FieldInfo(annotation=Union[List[Annotated[str, Strict(strict=True)]], NoneType], required=False, alias='ChatSuggestions', alias_priority=2, description='List of chat suggestions'), 'chatbot_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ChatbotName', alias_priority=2, description='Name of the chatbot/project agent'), 'description': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Description', alias_priority=2, description='Project description'), 'enable_smart_orchestration': FieldInfo(annotation=Union[Annotated[bool, Strict(strict=True)], NoneType], required=False, alias='EnableSmartOrchestration', alias_priority=2, description='Whether to enable smart orchestration'), 'enforce_resource_acls': FieldInfo(annotation=Union[Annotated[bool, Strict(strict=True)], NoneType], required=False, alias='EnforceResourceACLs', alias_priority=2, description='Whether resource ACLs are enforced'), 'greeting': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Greeting', alias_priority=2, description='Greeting message for the project agent'), 'guard_rail': FieldInfo(annotation=Union[GetProjectDetailsResponseGuardRail, NoneType], required=False, alias='GuardRail', alias_priority=2), 'instructions': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Instructions', alias_priority=2, description='Instructions for the project agent'), 'keywords': FieldInfo(annotation=Union[List[Annotated[str, Strict(strict=True)]], NoneType], required=False, alias='Keywords', alias_priority=2, description='List of keywords associated with the project'), 'knowledge_bases': FieldInfo(annotation=Union[List[GetProjectDetailsResponseKnowledgeBasesInner], NoneType], required=False, alias='KnowledgeBases', alias_priority=2, description='List of knowledge bases'), 'message': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='Message', alias_priority=2, description='Status message'), 'model': FieldInfo(annotation=Union[GetProjectDetailsResponseModel, NoneType], required=False, alias='Model', alias_priority=2), 'project_id': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ProjectId', alias_priority=2, description='Project identifier'), 'project_name': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ProjectName', alias_priority=2, description='Project name'), 'project_status': FieldInfo(annotation=Union[Annotated[str, Strict(strict=True)], NoneType], required=False, alias='ProjectStatus', alias_priority=2, description='Project status')}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

model_post_init(__context)

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • __context (Any) – The context.

Return type:

None