Browse Source

Merge e0d0be1d75 into abb462e53c

pull/133/merge
Roger Gomez Olivares 4 weeks ago committed by GitHub
parent
commit
9dfa2af5ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 80
      week8/agent_framework.md

80
week8/agent_framework.md

@ -0,0 +1,80 @@
```mermaid
---
title: Deal Agent Framework Classes
---
classDiagram
class DealAgentFramework{
collection
memory
planner [PlanningAgent]
read_memory()
write_memory()
log(message) PlanningAgent
run(message)
}
class PlanningAgent{
scanner [ScannerAgent]
ensemble [EnsembleAgent]
run(Deal) Opportunity
plan(memory) Opportunity
}
class Scanner{
fetch_deals(memory) List[ScrapedDeal]
make_user_prompt(scraped) str
scan(memory) DealSelection
}
class Ensemble{
specialist [SpecialistAgent]
frontier_agent [FrontierAgent]
random_forestAgent [RandomForestAgent]
model
price(description) float
}
class DealSelection {
product_description
price
url
}
class ScrapeDeal {
title
summary
url
}
```
```mermaid
---
title: Deal Agent Framework Flow
---
sequenceDiagram
participant DealAgentFramework
participant PlanningAgent
participant Scanner
participant Ensemble
participant SpecialistAgent
participant FrontierAgent
participant RandomForest
activate DealAgentFramework
DealAgentFramework->>PlanningAgent: run the plan
activate PlanningAgent
PlanningAgent->>Scanner: run the scan
activate Scanner
Scanner-->>Scanner: fetch deals
Scanner-->>PlanningAgent: return DealSelection
deactivate Scanner
PlanningAgent-->>PlanningAgent: run the workflow of the deals
PlanningAgent->>Ensemble: run the price prediction
activate Ensemble
Ensemble<<->>SpecialistAgent: estimate the price
Ensemble<<->>FrontierAgent: estimate the price
Ensemble<<->>RandomForest: estimate the price
Ensemble->>PlanningAgent: return the prediction
deactivate Ensemble
PlanningAgent-->>PlanningAgent: send the notification
deactivate PlanningAgent
DealAgentFramework->>PlanningAgent: send the notification
DealAgentFramework-->>DealAgentFramework: udate the memory
deactivate DealAgentFramework
```
Loading…
Cancel
Save