POST restapi/personal/ai/responses/v1

Creates a response using the Responses API with optional file search.

Request Information

URI Parameters

None.

Body Parameters

Request with the data needed to create a response.

Itslearning.RestApi.Entities.Personal.Ai.AiResponseRequest
NameDescriptionTypeAdditional information
Feature

The feature to use.

Itslearning.RestApi.Entities.Personal.Ai.AiFeatureType

None.

LocationId

Course or project id.

integer

None.

LocationType

Course or project.

Itsolutions.ItslUtils.Constants.LocationType

None.

PlanId

Plan identifier.

integer

None.

SystemPrompt

System prompt for the AI (template). Normally is empty, only taken into account when the prompt engineering feature is enabled.

string

None.

UserPrompt

User prompt for the AI.

string

None.

Content

Content if already present.

string

None.

PreviousResponseId

The previous response identifier for conversation continuation.

string

None.

StoreToken

Token for the store containing attached files.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Feature": 0,
  "LocationId": 1,
  "LocationType": 1,
  "PlanId": 2,
  "SystemPrompt": "sample string 3",
  "UserPrompt": "sample string 4",
  "Content": "sample string 5",
  "PreviousResponseId": "sample string 6",
  "StoreToken": "sample string 7"
}

application/xml, text/xml

Sample:
<AiResponseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itslearning.RestApi.Entities.Personal.Ai">
  <Content>sample string 5</Content>
  <Feature>None</Feature>
  <LocationId>1</LocationId>
  <LocationType>Course</LocationType>
  <PlanId>2</PlanId>
  <PreviousResponseId>sample string 6</PreviousResponseId>
  <StoreToken>sample string 7</StoreToken>
  <SystemPrompt>sample string 3</SystemPrompt>
  <UserPrompt>sample string 4</UserPrompt>
</AiResponseRequest>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

Text and response reference.

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.