-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from gumberss/feat/llm-client
feat: adapter out
- Loading branch information
Showing
6 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from wires.outputs.interactions import Interaction as WireOutInteraction | ||
from models.interactions import InteractionRequest | ||
|
||
def model_to_dto(interaction_request: InteractionRequest) -> WireOutInteraction: | ||
return WireOutInteraction(request_id=interaction_request.id, response=interaction_request.response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-19 Bytes
(99%)
services/llm-client/flows/__pycache__/interactions.cpython-39.pyc
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from uuid import UUID | ||
|
||
class Interaction(): | ||
def __init__(self, request_id: UUID, response:str): | ||
self.requestId = request_id | ||
self.response = response | ||
|
||
|