Download backend/agents/knowledge_agent.py from sawabedarain/adaptive-elearning-backend: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/sawabedarain/adaptive-elearning-backend/resolve/main/backend/agents/knowledge_agent.py
- Command line
-
hf download hf://spaces/sawabedarain/adaptive-elearning-backend/backend/agents/knowledge_agent.py
-
curl -L -o knowledge_agent.py https://huggingface.co/spaces/sawabedarain/adaptive-elearning-backend/resolve/main/backend/agents/knowledge_agent.py
333 Bytes
| """KnowledgeAgent: builds the learner model every other agent conditions on.""" | |
| from .metrics import tracked | |
| def make_nodes(ctx): | |
| def profile_learner(state): | |
| profile = ctx.knowledge.profile(state['user_id']) | |
| return {'profile': profile} | |
| return {'profile_learner': profile_learner} | |