From 0a0c01fbc2407dc4407e9fb21c226a1e684d01f6 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Thu, 26 Dec 2024 16:32:23 -0800 Subject: [PATCH] test agents imports --- .../providers/tests/agents/test_agents.py | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/llama_stack/providers/tests/agents/test_agents.py b/llama_stack/providers/tests/agents/test_agents.py index ee2f3d29f..dc95fa6a6 100644 --- a/llama_stack/providers/tests/agents/test_agents.py +++ b/llama_stack/providers/tests/agents/test_agents.py @@ -5,11 +5,31 @@ # the root directory of this source tree. import os +from typing import Dict, List import pytest +from llama_models.llama3.api.datatypes import BuiltinTool -from llama_stack.apis.agents import * # noqa: F403 -from llama_stack.providers.datatypes import * # noqa: F403 +from llama_stack.apis.agents import ( + AgentConfig, + AgentTool, + AgentTurnResponseEventType, + AgentTurnResponseStepCompletePayload, + AgentTurnResponseStreamChunk, + AgentTurnResponseTurnCompletePayload, + Attachment, + MemoryToolDefinition, + SearchEngineType, + SearchToolDefinition, + ShieldCallStep, + StepType, + ToolChoice, + ToolExecutionStep, + Turn, +) +from llama_stack.apis.inference import CompletionMessage, SamplingParams, UserMessage +from llama_stack.apis.safety import ViolationLevel +from llama_stack.providers.datatypes import Api # How to run this test: #