genai.system_prompt.system_prompt_service module#
- class genai.system_prompt.system_prompt_service.SystemPromptService[source]#
Bases:
BaseService
[BaseServiceConfig
,BaseServiceServices
]- create(*, name, content)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Parameters:
name (str) –
content (str) –
- Return type:
- delete(id)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Parameters:
id (int) –
- Return type:
None
- list(*, limit=None, offset=None)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Parameters:
limit (int | None) –
offset (int | None) –
- Return type:
- retrieve(id)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Parameters:
id (int) –
- Return type:
- update(id, *, name, content)[source]#
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Parameters:
id (int) –
name (str) –
content (str) –
- Return type: