Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
from google.adk.agents import BaseAgent
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPServerParams

from agents.matmaster_agent.constant import LOCAL_EXECUTOR, BohriumStorge
from agents.matmaster_agent.core_agents.public_agents.sync_agent import (
BaseSyncAgentWithToolValidator,
)
from agents.matmaster_agent.sub_agents.MrDice_agent.constant import MrDice_Agent_Name
from agents.matmaster_agent.sub_agents.structure_search_agent.constant import (
STRUCTURE_SEARCH_AGENT_NAME,
STRUCTURE_SEARCH_EXECUTOR,
STRUCTURE_SEARCH_STORAGE,
STRUCTURE_SEARCH_URL,
)

Expand All @@ -17,8 +18,8 @@
)
structure_search_toolset = CalculationMCPToolset(
connection_params=mcp_params,
storage=BohriumStorge,
executor=LOCAL_EXECUTOR,
storage=STRUCTURE_SEARCH_STORAGE,
executor=STRUCTURE_SEARCH_EXECUTOR,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from agents.matmaster_agent.constant import CURRENT_ENV
import copy

from agents.matmaster_agent.constant import CURRENT_ENV, BohriumStorge, DFlowExecutor

STRUCTURE_SEARCH_AGENT_NAME = 'structure_search_agent'

if CURRENT_ENV in ['test', 'uat']:
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50001/mcp'
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50002/mcp'
else:
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50002/mcp?token=eGdk3puy52InRnuOuEbJdGACkos34rSOluFbQqL1HDQ'
STRUCTURE_SEARCH_URL = 'http://chvz1424099.bohrium.tech:50001/mcp'

STRUCTURE_SEARCH_EXECUTOR = copy.deepcopy(DFlowExecutor)
STRUCTURE_SEARCH_STORAGE = copy.deepcopy(BohriumStorge)
Loading