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
Message.user([TextContent(text="Write a one-line haiku about code.")])
84
+
])
85
+
print(resp.message)
86
+
except LLMContextWindowExceedError:
87
+
print("Context window exceeded. Consider enabling a condenser.")
88
+
except LLMError as e:
89
+
print(f"LLM error: {e}")
90
+
```
91
+
71
92
## Using agents and conversations
72
93
73
94
When you use `Agent` and `Conversation`, LLM exceptions propagate out of `conversation.run()` and `conversation.send_message(...)` if a condenser is not present.
0 commit comments