Skip to content

Commit

Permalink
Refactoring abstract to base
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchatmangpt committed Apr 26, 2024
1 parent dd5d38e commit 20e6ff6
Show file tree
Hide file tree
Showing 190 changed files with 560 additions and 2,277 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,6 @@ node_modules/
.rspec_failed
.rubocop.yml
.rubocop_*.yml

project-with-doublehyphen
projectwithhyphenatend
13 changes: 7 additions & 6 deletions src/dspygen/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from fastapi import FastAPI, Depends
from fastapi.middleware.cors import CORSMiddleware # Import CORS middleware

from dspygen.experiments.convo_ddd.abstract_aggregate.conversation_aggregate import ConversationAggregate
from dspygen.experiments.convo_ddd.abstract_event.user_input_received_event import UserInputReceivedEvent
from dspygen.rdddy.abstract_command import AbstractCommand
# from dspygen.experiments.convo_ddd.abstract_aggregate.conversation_aggregate import ConversationAggregate
# from dspygen.experiments.convo_ddd.abstract_event.user_input_received_event import UserInputReceivedEvent
from dspygen.rdddy.base_command import BaseCommand
from dspygen.rdddy.actor_system import ActorSystem
from dspygen.utils.file_tools import dspy_modules_dir
from dspygen.workflow.workflow_router import router as workflow_router
Expand Down Expand Up @@ -53,9 +53,10 @@ async def get_actor_system():
@app.get("/")
async def read_root(user_input: str, asys: ActorSystem = Depends(get_actor_system)):
"""Read root."""
convo_agg: ConversationAggregate = await asys.actor_of(ConversationAggregate)
msg = await convo_agg.handle_user_input(UserInputReceivedEvent(content=user_input))
return msg.model_dump()
return "Hello, world!"
# convo_agg: ConversationAggregate = await asys.actor_of(ConversationAggregate)
# msg = await convo_agg.handle_user_input(UserInputReceivedEvent(content=user_input))
# return msg.model_dump()


# Define endpoint
Expand Down
File renamed without changes.
13 changes: 0 additions & 13 deletions src/dspygen/experiments/convo_ddd/__init__.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 20e6ff6

Please sign in to comment.