You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Workflow(OpenAISchema):
"""Request to the assistant to help the case to flow to the next step in a workflow."""
workflow: str
class Assign(Workflow):
"""Request to assign a case to another user."""
target_user: str
The openai_schema class method only accounts for the docstring of Assign, but not the parent (Workflow).
Current output: {'function': {'description': 'Request to assign a case to another user.', 'name': 'Assign', 'parameters': {'properties': {'target_user': {'title': 'Target ' 'User', 'type': 'string'}, 'workflow': {'title': 'Workflow', 'type': 'string'}}, 'required': ['target_user', 'workflow'], 'type': 'object'}}, 'type': 'function'}
Desired output: {'function': {'description': 'Request to the assistant to help the case to flow to the next step in a workflow. Request to assign a case to another user.', 'name': 'Assign', 'parameters': {'properties': {'target_user': {'title': 'Target ' 'User', 'type': 'string'}, 'workflow': {'title': 'Workflow', 'type': 'string'}}, 'required': ['target_user', 'workflow'], 'type': 'object'}}, 'type': 'function'}
The text was updated successfully, but these errors were encountered:
The
openai_schema
class method only accounts for the docstring of Assign, but not the parent (Workflow).Current output:
{'function': {'description': 'Request to assign a case to another user.', 'name': 'Assign', 'parameters': {'properties': {'target_user': {'title': 'Target ' 'User', 'type': 'string'}, 'workflow': {'title': 'Workflow', 'type': 'string'}}, 'required': ['target_user', 'workflow'], 'type': 'object'}}, 'type': 'function'}
Desired output:
{'function': {'description': 'Request to the assistant to help the case to flow to the next step in a workflow. Request to assign a case to another user.', 'name': 'Assign', 'parameters': {'properties': {'target_user': {'title': 'Target ' 'User', 'type': 'string'}, 'workflow': {'title': 'Workflow', 'type': 'string'}}, 'required': ['target_user', 'workflow'], 'type': 'object'}}, 'type': 'function'}
The text was updated successfully, but these errors were encountered: