Open lemorage opened 1 day ago
Thanks @lemorage , this should be patched in #2117 (will merge in soon)
However if possible I'd recommend using stronger types than dict
(for example a Pydantic model), since you won't be able to use structured outputs w/ dict
(though e.g. List[str]
would work)
Cool! I see, thanks for the amazing job!
Describe the bug I wrote a tool that has the following function signature
def weekly_report_typesetting_print(self: "Agent", weekly_report_data: list[dict]) -> str:
, but after I registered this tool to an agent and started the program, I got the errorFailed to execute source code: Python type list[dict] has no corresponding JSON schema type
. I changed the type annotation tolist
, but it still failed.I think the problem is due to the mappings in
type_to_json_schema_type
here. It only specifiesList[str]: "array"
andList[int]: "array"
. Can we add more mappings?Please describe your setup
pip install letta
letta
? (cmd.exe
/Powershell/Anaconda Shell/Terminal) Iterm2