You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I kept running into an list index out of range error when calling a function in my pipeline. (def get_weather(self, location_key: str) -> str:) [DEBUG 9] pipeline name: Weather Pipeline [DEBUG 10] Number of messages: 1 [DEBUG 11] user_message extracted: hows the weather in troy mi list index out of range INFO: 127.0.0.1:58512 - "POST /weather/filter/inlet HTTP/1.1" 500 Internal Server Error
Also, I updated the main.py to also handle these silly issues
def doc_to_dict(docstring):
lines = docstring.split("\n")
if len(lines) < 2:
# Fallback: If there's only one line, treat that as your description
return {
"description": lines[0].strip() if lines else "",
"params": {}
}
description = lines[1].strip()
All is well now.
The text was updated successfully, but these errors were encountered:
I kept running into an list index out of range error when calling a function in my pipeline. (def get_weather(self, location_key: str) -> str:)
[DEBUG 9] pipeline name: Weather Pipeline [DEBUG 10] Number of messages: 1 [DEBUG 11] user_message extracted: hows the weather in troy mi list index out of range INFO: 127.0.0.1:58512 - "POST /weather/filter/inlet HTTP/1.1" 500 Internal Server Error
Also, I updated the main.py to also handle these silly issues
def doc_to_dict(docstring):
lines = docstring.split("\n")
if len(lines) < 2:
# Fallback: If there's only one line, treat that as your description
return {
"description": lines[0].strip() if lines else "",
"params": {}
}
All is well now.
The text was updated successfully, but these errors were encountered: