Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.llm.IntentTool Class Reference
Inheritance diagram for homeassistant.helpers.llm.IntentTool:
[legend]
Collaboration diagram for homeassistant.helpers.llm.IntentTool:
[legend]

Public Member Functions

None __init__ (self, str name, intent.IntentHandler intent_handler)
 
JsonObjectType async_call (self, HomeAssistant hass, ToolInput tool_input, LLMContext llm_context)
 

Public Attributes

 description
 
 extra_slots
 
 name
 
 parameters
 

Additional Inherited Members

- Static Public Attributes inherited from homeassistant.helpers.llm.Tool
 None
 
 Schema
 

Detailed Description

LLM Tool representing an Intent.

Definition at line 195 of file llm.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.llm.IntentTool.__init__ (   self,
str  name,
intent.IntentHandler  intent_handler 
)
Init the class.

Definition at line 198 of file llm.py.

Member Function Documentation

◆ async_call()

JsonObjectType homeassistant.helpers.llm.IntentTool.async_call (   self,
HomeAssistant  hass,
ToolInput  tool_input,
LLMContext   llm_context 
)
Handle the intent.

Reimplemented from homeassistant.helpers.llm.Tool.

Definition at line 224 of file llm.py.

Member Data Documentation

◆ description

homeassistant.helpers.llm.IntentTool.description

Definition at line 205 of file llm.py.

◆ extra_slots

homeassistant.helpers.llm.IntentTool.extra_slots

Definition at line 208 of file llm.py.

◆ name

homeassistant.helpers.llm.IntentTool.name

Definition at line 204 of file llm.py.

◆ parameters

homeassistant.helpers.llm.IntentTool.parameters

Definition at line 220 of file llm.py.


The documentation for this class was generated from the following file: