Skip to content

Commit

Permalink
Removes run routine and action from skill assistant chat driver so it… (
Browse files Browse the repository at this point in the history
#298)

… can respond to text messages again.
  • Loading branch information
payneio authored Jan 8, 2025
1 parent 68ffd7e commit ede3e3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/python/skills/skill-library/skill_library/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ def __init__(
)

# Configure the assistant chat interface.
if chat_driver_config.message_provider is None:
chat_driver_config.message_provider = LocalMessageHistoryProvider(
LocalMessageHistoryProviderConfig(session_id=self.assistant_id, formatter=format_with_liquid)
)
self.chat_driver = self._register_chat_driver(chat_driver_config)

self.startup_action = startup_action
Expand Down Expand Up @@ -207,9 +203,13 @@ def _register_chat_driver(self, chat_driver_config: ChatDriverConfig) -> ChatDri
"and arguments."
"Available routines: {routines}. "
)
if chat_driver_config.message_provider is None:
chat_driver_config.message_provider = LocalMessageHistoryProvider(
LocalMessageHistoryProviderConfig(session_id=self.assistant_id, formatter=format_with_liquid)
)
chat_functions = ChatFunctions(self)
config.commands = chat_functions.list_functions()
config.functions = chat_functions.list_functions()
config.functions = [chat_functions.list_actions, chat_functions.list_routines]
return ChatDriver(config)

async def generate_response(
Expand Down

0 comments on commit ede3e3f

Please sign in to comment.