Skip to content

Commit c51f6e4

Browse files
committed
fix: chain_ids for tool
1 parent 5581004 commit c51f6e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openagent/tools/compound/market_analysis.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class CompoundMarketConfig(BaseModel):
3636

3737

3838
class CompoundMarketTool(Tool[CompoundMarketConfig]):
39-
def __init__(self, core_model=None, chain_ids: List[int] = []):
39+
def __init__(self, core_model=None):
4040
super().__init__()
41-
self.chain_ids = chain_ids
41+
self.chain_ids = None
4242
self.core_model = core_model
4343
self.tool_model = None
4444
self.tool_prompt = None
@@ -56,6 +56,8 @@ async def setup(self, config: CompoundMarketConfig) -> None:
5656
if not model_config:
5757
raise RuntimeError("No model configuration provided")
5858

59+
self.chain_ids = config.chain_ids
60+
5961
self.tool_model = init_chat_model(
6062
model=model_config.name,
6163
model_provider=model_config.provider,

0 commit comments

Comments
 (0)