|
|
@ -178,7 +178,7 @@ class AgentNode:
|
|
|
|
logging.error(f"Failed to create agent node: {e}")
|
|
|
|
logging.error(f"Failed to create agent node: {e}")
|
|
|
|
raise
|
|
|
|
raise
|
|
|
|
|
|
|
|
|
|
|
|
def agent(openai_api_key, ojective, model_type, model_id):
|
|
|
|
def agent(openai_api_key, objective, model_type, model_id):
|
|
|
|
if not objective or not isinstance(objective, str):
|
|
|
|
if not objective or not isinstance(objective, str):
|
|
|
|
logging.error("Invalid objective")
|
|
|
|
logging.error("Invalid objective")
|
|
|
|
raise ValueError("A valid objective is required")
|
|
|
|
raise ValueError("A valid objective is required")
|
|
|
|