@@ -74,17 +74,24 @@ pub async fn output_error(
74
74
e : impl std:: fmt:: Display ,
75
75
output : & mut BufWriter < tokio:: io:: Stdout > ,
76
76
) -> std:: io:: Result < ( ) > {
77
- output. write_all ( b"\x1b [31mERROR: \x1b [0m" ) . await ?;
77
+ output
78
+ . write_all ( b"\x1b [1;31m\xE2 \x9D \x8C ERROR: \x1b [0m" )
79
+ . await ?;
78
80
output. write_all ( e. to_string ( ) . as_bytes ( ) ) . await ?;
79
81
output. write_all ( b"\n " ) . await ?;
82
+ output. flush ( ) . await ?;
80
83
Ok ( ( ) )
81
84
}
82
85
83
86
pub async fn output_agent (
84
87
content : impl std:: fmt:: Display ,
85
88
output : & mut BufWriter < tokio:: io:: Stdout > ,
86
89
) -> std:: io:: Result < ( ) > {
90
+ output
91
+ . write_all ( b"\x1b [1;34m\xF0 \x9F \xA4 \x96 Agent: \x1b [0m" )
92
+ . await ?;
87
93
output. write_all ( content. to_string ( ) . as_bytes ( ) ) . await ?;
94
+ output. write_all ( b"\n " ) . await ?;
88
95
output. flush ( ) . await ?;
89
96
Ok ( ( ) )
90
97
}
@@ -93,22 +100,29 @@ pub async fn stream_output_toolcall(
93
100
content : impl std:: fmt:: Display ,
94
101
output : & mut BufWriter < tokio:: io:: Stdout > ,
95
102
) -> std:: io:: Result < ( ) > {
96
- output. write_all ( b"\x1b [33mtool>\x1b [0m " ) . await ?;
103
+ output
104
+ . write_all ( b"\x1b [1;33m\xF0 \x9F \x9B \xA0 Tool Call: \x1b [0m" )
105
+ . await ?;
97
106
output. write_all ( content. to_string ( ) . as_bytes ( ) ) . await ?;
98
107
output. write_all ( b"\n " ) . await ?;
108
+ output. flush ( ) . await ?;
99
109
Ok ( ( ) )
100
110
}
101
111
102
112
pub async fn stream_output_agent_start (
103
113
output : & mut BufWriter < tokio:: io:: Stdout > ,
104
114
) -> std:: io:: Result < ( ) > {
105
- output. write_all ( b"\x1b [34magent>\x1b [0m " ) . await ?;
115
+ output
116
+ . write_all ( b"\x1b [1;34m\xF0 \x9F \xA4 \x96 Agent: \x1b [0m" )
117
+ . await ?;
118
+ output. flush ( ) . await ?;
106
119
Ok ( ( ) )
107
120
}
108
121
109
122
pub async fn stream_output_agent_finished (
110
123
output : & mut BufWriter < tokio:: io:: Stdout > ,
111
124
) -> std:: io:: Result < ( ) > {
112
125
output. write_all ( b"\n " ) . await ?;
126
+ output. flush ( ) . await ?;
113
127
Ok ( ( ) )
114
128
}
0 commit comments