I am getting the same error using the example in the thread when using Gpt-4-turbo.
Is it possible for you to reconfirm once?
Any leads is highly appreciated! Thanks.
Agents
technical_support_agent = Agent(
role=“Technical Support Specialist”,
goal="Resolve technical issues reported by customers promptly and "
“effectively”,
backstory=(
"You are a highly skilled technical support specialist with a "
"strong background in troubleshooting software and hardware "
"issues. Your primary responsibility is to assist customers "
"in resolving technical problems, ensuring their satisfaction "
“and the smooth operation of their products.”
),
llm=llm,
allow_delegation=False,
verbose=True
)
billing_support_agent = Agent(
role=“Billing Support Specialist”,
goal="Address customer inquiries related to billing, payments, "
“and account management”,
backstory=(
"You are an experienced billing support specialist with "
"expertise in handling customer billing inquiries. Your main "
"objective is to provide clear and accurate information "
"regarding billing processes, resolve payment issues, and "
"assist with account management to ensure customer "
“satisfaction.”
),
llm=llm,
allow_delegation=False,
verbose=True
)
Tasks
resolve_technical_issues = Task(
description="Resolve only technical issues described in the "
“ticket: {ticket}”,
expected_output="Provide a solution in up to 400 characters if "
"it is something technical, otherwise state that it is not "
“something technical.”,
agent=technical_support_agent
)
resolve_billing_issues = Task(
description="Resolve only billing issues described in the ticket: "
“{ticket}”,
expected_output="Provide a solution in up to 400 characters if "
"it is something related to billing, otherwise inform that it "
“is not something related to billing.”,
agent=billing_support_agent
)
Manager
manager = Agent(
role=“Customer Support Manager”,
goal="Oversee the support team to ensure timely and effective "
“resolution of customer inquiries”,
backstory=(
"You are a seasoned customer support manager with extensive "
"experience in leading support teams. Your primary "
"responsibility is to coordinate the efforts of support "
"agents, ensuring that customer issues are addressed "
"promptly and satisfactorily. You excel in task delegation, "
"performance monitoring, and maintaining high standards of "
“customer service.”
),
llm=llm,
allow_delegation=True,
verbose=True
)
Crew
crew = Crew(
agents=[technical_support_agent, billing_support_agent],
tasks=[resolve_technical_issues, resolve_billing_issues],
manager_agent=manager,
process=Process.hierarchical
)
NOTE : I’m using gpt-4-turbo/gpt-4o with this import rom langchain_openai import AzureChatOpenAI
Error -