Skip to content

Commit f672d43

Browse files
Testcases
1 parent 352e88a commit f672d43

File tree

13 files changed

+28
-46
lines changed

13 files changed

+28
-46
lines changed

src/backend/agents/agentutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pydantic import BaseModel
66

77
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
8-
from models.messages import InputTask, PlanStatus, Step, StepStatus
8+
from src.backend.models.messages import InputTask, PlanStatus, Step, StepStatus
99

1010
common_agent_system_message = "If you do not have the information for the arguments of the function you need to call, do not call the function. Instead, respond back to the user requesting further information. You must not hallucinate or invent any of the information used as arguments in the function. For example, if you need to call a function that requires a delivery address, you must not generate 123 Example St. You must skip calling functions and return a clarification message along the lines of: Sorry, I'm missing some information I need to help you with that. Could you please provide the delivery address so I can do that for you?"
1111

src/backend/agents/base_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from autogen_core.components.tool_agent import tool_agent_caller_loop
1111
from autogen_core.components.tools import Tool
1212

13-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
14-
from models.messages import (ActionRequest, ActionResponse,
13+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
14+
from src.backend.models.messages import (ActionRequest, ActionResponse,
1515
AgentMessage, Step, StepStatus)
1616
from azure.monitor.events.extension import track_event
1717

src/backend/agents/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from autogen_core.components.models import AzureOpenAIChatCompletionClient
66
from autogen_core.components.tools import FunctionTool, Tool
77

8-
from agents.base_agent import BaseAgent
9-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
8+
from src.backend.agents.base_agent import BaseAgent
9+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
1010

1111
async def dummy_function() -> str:
1212
# This is a placeholder function, for a proper Azure AI Search RAG process.

src/backend/agents/hr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from autogen_core.components.tools import FunctionTool, Tool
77
from typing_extensions import Annotated
88

9-
from agents.base_agent import BaseAgent
10-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
9+
from src.backend.agents.base_agent import BaseAgent
10+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
1111

1212
formatting_instructions = "Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."
1313

src/backend/agents/human.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from autogen_core.components import (RoutedAgent, default_subscription,
66
message_handler)
77

8-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
9-
from models.messages import (
8+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
9+
from src.backend.models.messages import (
1010
ApprovalRequest,
1111
HumanFeedback,
1212
HumanClarification,

src/backend/agents/marketing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from autogen_core.components.models import AzureOpenAIChatCompletionClient
66
from autogen_core.components.tools import FunctionTool, Tool
77

8-
from agents.base_agent import BaseAgent
9-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
8+
from src.backend.agents.base_agent import BaseAgent
9+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
1010

1111

1212
# Define new Marketing tools (functions)

src/backend/agents/planner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
LLMMessage, UserMessage)
1212
from pydantic import BaseModel
1313

14-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
15-
from models.messages import (
14+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
15+
from src.backend.models.messages import (
1616
ActionRequest,
1717
AgentMessage,
1818
HumanClarification,

src/backend/agents/procurement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from autogen_core.components.tools import FunctionTool, Tool
77
from typing_extensions import Annotated
88

9-
from agents.base_agent import BaseAgent
10-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
9+
from src.backend.agents.base_agent import BaseAgent
10+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
1111

1212

1313
# Define new Procurement tools (functions)

src/backend/agents/product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from autogen_core.components.tools import FunctionTool, Tool
99
from typing_extensions import Annotated
1010

11-
from agents.base_agent import BaseAgent
12-
from context.cosmos_memory import CosmosBufferedChatCompletionContext
11+
from src.backend.agents.base_agent import BaseAgent
12+
from src.backend.context.cosmos_memory import CosmosBufferedChatCompletionContext
1313
from datetime import datetime
1414

1515
formatting_instructions = "Instructions: returning the output of this function call verbatim to the user in markdown. Then write AGENT SUMMARY: and then include a summary of what you did."

src/backend/auth/utils.py

Whitespace-only changes.

0 commit comments

Comments
 (0)