You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an entity of a type water_hater. Currently with the example prompt the assistant is only aware of its state (in my example on or off). How can I make it aware and read more of the properties / attributes this type of entity carries? For example there is current_temperature.
The text was updated successfully, but these errors were encountered:
I use a spec function call to expose attributes to OpenAI on demand; I don’t need all attributes from every object exposed in my prompt (this consumes way too many tokens for generally unneeded information). Make sure your prompt exposes entities by listing an entity_id or modify the spec function to use whichever variable name you care to refer to your entities by.
- spec:
name: get_attributes
description: Get attributes of entity or multiple entities.
parameters:
type: object
properties:
entity_id:
type: array
description: entity_id of entity or multiple entities
items:
type: string
required:
- entity_id
function:
type: template
value_template: >-
```csv
entity,attributes
{%for entity in entity_id%}
{{entity}},{{states[entity].attributes}}
{%endfor%}
```
I have an entity of a type water_hater. Currently with the example prompt the assistant is only aware of its state (in my example on or off). How can I make it aware and read more of the properties / attributes this type of entity carries? For example there is current_temperature.
The text was updated successfully, but these errors were encountered: