Create a grounded response (streaming)
client.responses.create(ResponseCreateParams { input, effort, model, 2 more } body, RequestOptionsoptions?): ResponseCreateResponse
POST/v1/responses
Runs the grounded search pipeline (Plan → Collect → Process → Analyze) and streams results as Server-Sent Events following the OpenAI Responses API format.
Parameters
Returns
Create a grounded response (streaming)
import CementedAI from 'cemented.ai';
const client = new CementedAI({
apiKey: process.env['CEMENTED_AI_API_KEY'], // This is the default and can be omitted
});
const response = await client.responses.create({ input: 'string' });
console.log(response);{
"response": {
"id": "id",
"created_at": 0,
"model": "model",
"object": "response",
"output": [
{}
],
"status": "in_progress"
},
"type": "response.created"
}Returns Examples
{
"response": {
"id": "id",
"created_at": 0,
"model": "model",
"object": "response",
"output": [
{}
],
"status": "in_progress"
},
"type": "response.created"
}