Skip to content

Commit 60f59e4

Browse files
p0dejesh3pik
authored andcommitted
fix: syntax error on f-string
Looks like double-quotes are not allowed in f-strings surrounded by double-quotes on Python 3.10. >>> import alumnium Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/p0deje/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/alumnium/__init__.py", line 17, in <module> from .alumni import * File "/Users/p0deje/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/alumnium/alumni.py", line 12, in <module> from .agents import * File "/Users/p0deje/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/alumnium/agents/__init__.py", line 3, in <module> from .retriever_agent import RetrieverAgent File "/Users/p0deje/.asdf/installs/python/3.10.12/lib/python3.10/site-packages/alumnium/agents/retriever_agent.py", line 86 logger.info(f" <- Usage: {message["raw"].usage_metadata}") ^^^ SyntaxError: f-string: unmatched '['
1 parent 9cf95c3 commit 60f59e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
poetry 2.0.1
2-
python 3.12.6
2+
python 3.10.16

alumnium/agents/retriever_agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def invoke(self, information: str, vision: bool) -> RetrievedInformation:
8181

8282
response = message["parsed"]
8383
logger.info(f" <- Result: {response}")
84-
logger.info(f" <- Usage: {message["raw"].usage_metadata}")
84+
logger.info(f" <- Usage: {message['raw'].usage_metadata}")
8585

8686
# Remove when we find a way use `Data` in structured output `value`.
8787
response.value = self.__loosely_typecast(response.value)

0 commit comments

Comments
 (0)