Skip to content

Commit

Permalink
Fix assistant import to fix a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
payneio committed Nov 6, 2024
1 parent f194b66 commit 6a09a58
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
TEXT_RESPONSE_FORMAT,
ChatDriver,
ChatDriverConfig,
ResponseFormat,
)
from events import BaseEvent, EventProtocol
from openai.types.chat.completion_create_params import (
ResponseFormat,
)

from .run_context import RunContext
from .skill import Skill
Expand Down Expand Up @@ -219,9 +221,7 @@ def list_routines(self, context: RunContext) -> list[str]:
"""Lists all the routines available in the assistant."""
return self.assistant.list_routines()

async def run_routine(
self, context: RunContext, name: str, vars: dict[str, Any] | None = None
) -> Any:
async def run_routine(self, context: RunContext, name: str, vars: dict[str, Any] | None = None) -> Any:
"""
Run an assistant routine.
"""
Expand Down

0 comments on commit 6a09a58

Please sign in to comment.