Skip to content

Commit c29b26f

Browse files
author
Arjun Balaji
committed
attach empty description to prevent validation errors.
1 parent 10b9573 commit c29b26f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/chat-cli/src/cli/chat/conversation.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ impl ConversationState {
432432
schema_json: &str,
433433
) {
434434
if !tool_name.is_empty() && !server_name.is_empty() {
435+
let description = if description.is_empty() {
436+
"No description available"
437+
} else {
438+
description
439+
};
435440
let json_value: serde_json::Value = serde_json::from_str(schema_json)
436441
.unwrap_or_else(|_| serde_json::json!({"type": "object", "properties": {}}));
437442

0 commit comments

Comments
 (0)