Response Suggestion¶
response_style accepts professional (default), friendly, empathetic,
formal, apologetic, or solution_focused. Each style appears in the
response schema's allowed tone values; unsupported styles raise ValueError.
openaivec.task.customer_support.response_suggestion ¶
Customer response-suggestion task definition.
Classes¶
ResponseSuggestion ¶
Bases: BaseModel
Response suggestion output.
Functions:¶
response_suggestion ¶
response_suggestion(
response_style: str = "professional",
company_name: str = "our company",
business_context: str = "general customer support",
) -> PreparedTask[ResponseSuggestion]
Create a response suggestion task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response_style
|
str
|
One of the supported response tones. |
'professional'
|
company_name
|
str
|
Company name used in the prompt. |
'our company'
|
business_context
|
str
|
Customer-support context. |
'general customer support'
|
Returns:
| Type | Description |
|---|---|
PreparedTask[ResponseSuggestion]
|
PreparedTask[ResponseSuggestion]: Response-suggestion task. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the response style is not a supported tone. |