Hierarchy

Properties

prompt?: {
    instructions?: string;
    schema?: object;
}

Specifies the agent instructions provided to GenAI Bridge

Type declaration

  • Optional instructions?: string

    Default Value

    You are a recommendation agent, specialized in finding the perfect match for a user. Answer the question from the user extensivelly. You will be provided with a user input and an array of products. Based on the user input and products, determine a maximum of 3 of the most relevant products based on the user input. Do not provide any information about amount of products you're returning.

  • Optional schema?: object

    Default Value

    { "name": "smartresponse_summary", "description": "Recommedation message and product details which includes name, description, url, price and imageUrl", "strict": true, "schema": { "type": "object", "properties": { "recommendation": { "type": "string" }, "products": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" }, "description": { "type": "string" }, "price": { "type": "number" }, "imageUrl": { "type": "string" } }, "required": [ "name", "url", "description", "price", "imageUrl" ], "additionalProperties": false } } }, "required": [ "recommendation", "products" ], "additionalProperties": false } }

shadowDom?: boolean

Specifies whether the component should be rendered in the Shadow DOM. This is highly recommended to avoid CSS conflicts.

Default Value

true

strings?: {
    header?: string;
    noresults?: string;
}

Type declaration

template?: string

Specifies a custom template to be used instead of the default template.

For more information, see Components.