-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to use image for Reflexion (#17)
* added images for reflexion * formatting fix * added more comments, fixed regex
- Loading branch information
1 parent
04b6411
commit a6cec71
Showing
5 changed files
with
278 additions
and
44 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
from abc import ABC, abstractmethod | ||
from typing import Dict, List, Union | ||
from pathlib import Path | ||
from typing import Dict, List, Optional, Union | ||
|
||
|
||
class Agent(ABC): | ||
@abstractmethod | ||
def __call__(self, input: Union[List[Dict[str, str]], str]) -> str: | ||
def __call__( | ||
self, | ||
input: Union[List[Dict[str, str]], str], | ||
image: Optional[Union[str, Path]] = None, | ||
) -> str: | ||
pass |
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
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
Oops, something went wrong.