toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'toolsText': ?toolsText,
  'tools': ?tools?.toJson(),
  if (agentId.isNotDefault) 'agentId': agentId,
  if (agentType.isNotDefault) 'agentType': agentType,
  if (description.isNotDefault) 'description': description,
  if (subAgents.isNotDefault) 'subAgents': subAgents,
  'developerInstruction': ?developerInstruction?.toJson(),
};