task_categories:conversational size_categories:n<1K language:en license:apache-2.0 region:us
---
license: apache-2.0
task_categories:
- conversational
language:
- en
size_categories:
- n<1K
configs:
- config_name: default
  data_files: clean.txt
  sample_by: paragraph
---

# Data format:
* Must start with `### System:\n` and a JSON array of available functions. The list must exist but may be empty.
* A `### User:` header must come next with text from the user.
* If the assistant makes a call, a `### Call:` header must come next along with a JSON object with `"name"` and `"parameters"` entries. The `"parameters"` entry is a JSON object of `"parameter": "value"` pairs.
* If a call is made, a `### Return` header must come after with a json object of `"return": "value"`.
* The assistant will make a response with `### Assistant: Response`.
* Separate conversations must be separated with two newlines.

# Example:
```
### System:
[
    {
        "name": "calculate_age",
        "description": "Calculates the age of a person.",
        "parameters": [
            {
                "name": "birth_date",
                "type": "date",
                "description": "The date of birth of the person."
            },
            {
                "name": "current_date",
                "type": "date",
                "description": "The current date."
            }
        ],
        "required": ["birth_date", "current_date"]
    }
]
### User: How old am I?
### Assistant: When were you born?
### User: 2000-01-01
### Call:
{
    "name": "calculate_age",
    "parameters": {"birth_date": "2000-01-01","current_date": "2020-12-30"}
}
### Return:
{"result": 20}
### Assistant: You are 20 years old.
### User: How old is my brother?
### Assistant: When was your brother born?
### User: 2002-01-01
### Call:
{
    "name": "calculate_age",
    "parameters": {"birth_date": "2002-01-01","current_date": "2020-12-30"}
}
### Return:
{"result": 18}
### Assistant: Your brother is 18 years old, 2 years younger than you.
```