Skip to content
Merged
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
32 changes: 32 additions & 0 deletions services/agent/learning/integration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from dataclasses import dataclass
from datetime import datetime, UTC


@dataclass
class AgentLearningState:
agent_id: str
memory_score: float
collaboration_score: float
reward_score: float
evolution_score: float
updated_at: datetime = datetime.now(UTC)


class AgentLearningIntegrator:

def integrate(
self,
agent_id: str,
memory_score: float,
collaboration_score: float,
reward_score: float,
evolution_score: float,
) -> AgentLearningState:

return AgentLearningState(
agent_id=agent_id,
memory_score=memory_score,
collaboration_score=collaboration_score,
reward_score=reward_score,
evolution_score=evolution_score,
)
17 changes: 17 additions & 0 deletions tests/agent/test_learning_integration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from services.agent.learning.integration import AgentLearningIntegrator


def test_agent_learning_integration():

integrator = AgentLearningIntegrator()

state = integrator.integrate(
agent_id="AEON-001",
memory_score=0.9,
collaboration_score=0.85,
reward_score=0.95,
evolution_score=0.88,
)

assert state.agent_id == "AEON-001"
assert state.reward_score == 0.95
Loading