Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests_integ/models/test_model_mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
pytestmark = providers.mistral.mark


@pytest.fixture(scope="module")
@pytest.fixture()
def streaming_model():
return MistralModel(
model_id="mistral-medium-latest",
Expand All @@ -24,7 +24,7 @@ def streaming_model():
)


@pytest.fixture(scope="module")
@pytest.fixture()
def non_streaming_model():
return MistralModel(
model_id="mistral-medium-latest",
Expand All @@ -36,12 +36,12 @@ def non_streaming_model():
)


@pytest.fixture(scope="module")
@pytest.fixture()
def system_prompt():
return "You are an AI assistant that provides helpful and accurate information."


@pytest.fixture(scope="module")
@pytest.fixture()
def tools():
@strands.tool
def tool_time() -> str:
Expand All @@ -54,12 +54,12 @@ def tool_weather() -> str:
return [tool_time, tool_weather]


@pytest.fixture(scope="module")
@pytest.fixture()
def streaming_agent(streaming_model, tools):
return Agent(model=streaming_model, tools=tools)


@pytest.fixture(scope="module")
@pytest.fixture()
def non_streaming_agent(non_streaming_model, tools):
return Agent(model=non_streaming_model, tools=tools)

Expand All @@ -69,7 +69,7 @@ def agent(request):
return request.getfixturevalue(request.param)


@pytest.fixture(scope="module")
@pytest.fixture()
def weather():
class Weather(BaseModel):
"""Extracts the time and weather from the user's message with the exact strings."""
Expand Down