The interact command launches a prompt for submitting questions to the AI assistant.

JSON Input Data Format
{
    "id": string,
    "prompt": string
}
id * Specifies the ID of the instance.
prompt * Defines the interaction text that will be sent to the AI assistant.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": {
        "result": "OK",
        "payload": "{\"model\":\"apicaller:latest\",\"created_at\":\"2025-06-20T05:43:50.61446401Z\",\"response\":\"\\u003cthink\\u003e\\nOkay, the user asked, \\\"Hi, What is your name?\\\" I need to respond appropriately.\\n\\nFirst, I should acknowledge their greeting. Since I'm a language model, I can't have a name, but I can say I'm Ingenia. Then, I should ask them to confirm or provide more information. It's good to keep the conversation friendly and open-ended. Let me make sure the response is polite and helpful.\\n\\u003c/think\\u003e\\n\\nHello! My name is Ingenia. How can I assist you today? 😊\",\"done\":true,\"done_reason\":\"stop\",\"context\":[151644,8948,1406,334,16899,14,17,16,3070,374,8241,8975,3516,198,151645,198,151644,77091,271,13936,0,358,1079,94468,685,11,1128,646,358,1492,498,448,5267,151645,198,151644,872,198,13048,11,3555,374,697,829,30,151645,198,151644,77091,198,151667,198,32313,11,279,1196,4588,11,330,13048,11,3555,374,697,829,7521,358,1184,311,5889,34901,382,5338,11,358,1265,24645,862,42113,13,8704,358,2776,264,4128,1614,11,358,646,944,614,264,829,11,714,358,646,1977,358,2776,94468,685,13,5005,11,358,1265,2548,1105,311,7683,476,3410,803,1995,13,1084,594,1661,311,2506,279,10435,11657,323,1787,83075,13,6771,752,1281,2704,279,2033,374,47787,323,10950,624,151668,271,9707,0,3017,829,374,94468,685,13,2585,646,358,7789,498,3351,30,26525,232],\"total_duration\":6784799823,\"load_duration\":3388542442,\"prompt_eval_count\":50,\"prompt_eval_duration\":475431500,\"eval_count\":109,\"eval_duration\":2919481793}"
    }
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}