LLMConversationInput
Python template · sinapsis_chatbots_base.templates.llm_conversation_input
Overview
A template for adding an LLM conversation packet to a data container.
This class uses the provided attributes to create an `LLMConversationPacket` and appends it to `container.llm_conversations`.
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
Terminalbash
pip install sinapsis-chatbots-base==1.0.0uv pip install sinapsis-chatbots-base==1.0.0uv add sinapsis-chatbots-base==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
promptRequired
The main prompt text or a path to a `.txt` file containing it.
str | pathlib._local.Path
Required
Default: null
Required
Default: null
run_id
str | None
Optional
Default: null
Optional
Default: null
user_id
str | None
Optional
Default: null
Optional
Default: null
agent_id
str | None
Optional
Default: null
Optional
Default: null
metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
Optional
Default: null
session_id
str | None
Optional
Default: null
Optional
Default: null
system_prompt
Optional system prompt text or a path to a `.txt` file containing it.
str | pathlib._local.Path | None
Optional
Default: null
Optional
Default: null
Configuration example
Example from the Python docstring:
yaml
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: LLMConversationInput
class_name: LLMConversationInput
template_input: InputTemplate
attributes:
prompt: 'prompt to be added to the LLMConversationPacket'
system_prompt: 'system prompt to be added to the LLMConversationPacket'Show schema-based configuration skeleton
yaml
templates:
- template_name: "LLMConversationInput"
class_name: "LLMConversationInput"
attributes:
prompt: "<required>"
run_id: null
user_id: null
agent_id: null
session_id: null
system_prompt: null
Inheritance
Immediate parent:
sinapsis_core.template_base.template.TemplateEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.