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
2 changes: 1 addition & 1 deletion examples/portfolio/agents/intent_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class IntentAgent(object):
def __init__(self):
self.tools = [self.parse]
self.model_id = os.environ.get(
"BEDROCK_MODEL_ID", "openai.gpt-5.4"
"BEDROCK_MODEL_ID", "meta.llama3-8b-instruct-v1:0"
)
self.region = os.environ.get("AWS_REGION", "us-east-1")

Expand Down
14 changes: 12 additions & 2 deletions examples/portfolio/agents/price_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,21 @@ def __init__(self):
def get_history(self, ticker: str, lookback_days: int = 365) -> dict:
"""Fetch daily closing prices for a ticker over the lookback window."""
try:
import math

import yfinance as yf

hist = yf.Ticker(ticker).history(period=f"{lookback_days}d")
closes = [float(c) for c in hist["Close"].tolist()]
dates = [str(d.date()) for d in hist.index]
raw_closes = hist["Close"].tolist()
# Yahoo sometimes appends the newest trading day before its close has
# settled, leaving that row's Close as NaN -- drop it rather than let
# NaN poison every downstream metric.
closes = [float(c) for c in raw_closes if not math.isnan(c)]
dates = [
str(d.date())
for d, c in zip(hist.index, raw_closes)
if not math.isnan(c)
]
if closes:
return {
"ticker": ticker,
Expand Down
15 changes: 0 additions & 15 deletions examples/portfolio/config/global_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,3 @@ redis:
port: 6379
db: 0

database:
url: postgresql://postgres:RaDitLIHsdPAhrSpjOYzDAxFFMPtDvSW@tokaido.proxy.rlwy.net:10279/railway

# EC2 infra config, required by ventis's EC2 deploy preflight check
ec2:
region: us-east-1
ami_id: ami-01ac7077de2a109d3
subnet_id: subnet-099cc5963830b9bb8
security_group_ids:
- sg-025daf3a98e06cef3
ssh_user: ubuntu
ssh_private_key_path: ~/.ssh/ventis_ec2


project_id: 00000000-0000-0000-0000-000000000000
15 changes: 1 addition & 14 deletions examples/text2sql/config/global_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,4 @@ poll_interval: 5
redis:
host: localhost
port: 6379
db: 0

database:
url: postgresql://postgres:RaDitLIHsdPAhrSpjOYzDAxFFMPtDvSW@tokaido.proxy.rlwy.net:10279/railway


ec2:
region: us-east-1
ami_id: ami-01ac7077de2a109d3
subnet_id: subnet-099cc5963830b9bb8
security_group_ids:
- sg-025daf3a98e06cef3
ssh_user: ubuntu
ssh_private_key_path: ~/.ssh/ventis_ec2
db: 0
194 changes: 0 additions & 194 deletions tests/test_demo_obfuscation.py

This file was deleted.

Loading