- Move global config files to globals iso global folder, as the name global conflicts with python language
- Creation of Traicie Vancancy Definition specialist - Allow to invoke non-interaction specialists from withing Evie's mgmt interface (eveai_app) - Improvements to crewai specialized classes - Introduction to json editor for showing specialists arguments and results in a better way - Introduction of more complex pagination (adding extra arguments) by adding a global 'get_pagination_html' - Allow follow-up of ChatSession / Specialist execution - Improvement in logging of Specialists (but needs to be finished)
This commit is contained in:
24
eveai_chat_workers/outputs/globals/spin/spin_v1_0.py
Normal file
24
eveai_chat_workers/outputs/globals/spin/spin_v1_0.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from typing import List, Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class SPINOutput(BaseModel):
|
||||
situation: Optional[str] = Field(None, description="Situation information")
|
||||
problem: Optional[str] = Field(None, description="Problem information")
|
||||
implication: Optional[str] = Field(None, description="Implication information")
|
||||
need: Optional[str] = Field(None, description="Need-payoff information")
|
||||
additional_info: Optional[str] = Field(None, description="Additional sales-related information.")
|
||||
questions: Optional[str] = Field(None, description="Additional questions to further clarify SPIN")
|
||||
potential_customer: Optional[bool] = Field(False, description="Indication if this could be a good customer")
|
||||
|
||||
def __str__(self):
|
||||
"""Custom string output for usage in agents and tasks"""
|
||||
return (f"Situation: {self.situation or 'N/A'}\n"
|
||||
f"Problem: {self.problem or 'N/A'}\n"
|
||||
f"Implication: {self.implication or 'N/A'}\n"
|
||||
f"Need: {self.need or 'N/A'}\n"
|
||||
f"Additional Info: {self.additional_info or 'N/A'}\n"
|
||||
f"Questions: {self.questions or 'N/A'}\n"
|
||||
f"Potential Customer: {self.potential_customer or 'N/A'}\n")
|
||||
|
||||
Reference in New Issue
Block a user