toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'name': name,
  'role': role,
  if (model != null) 'model': model,
  if (systemPrompt != null) 'system_prompt': systemPrompt,
  if (tools != null) 'tools': tools,
  'task': task,
};