#include <chat_reply.h>
Definition at line 76 of file chat_reply.h.
◆ ReplyBuilder()
| ember::ReplyBuilder::ReplyBuilder |
( |
int |
call_id, |
|
|
ChatDecode |
decode |
|
) |
| |
|
inline |
◆ finish()
| std::string ember::ReplyBuilder::finish |
( |
ChatReply & |
out | ) |
|
|
inline |
Definition at line 87 of file chat_reply.h.
87 {
90 if (!
out.tool_calls.empty()) {
93 }
95 }
std::ptrdiff_t first_call() const
std::string next(const std::string &full, bool end)
ChatReply reply_of(const std::vector< int > &ids, int call_id, const ChatDecode &decode)
References j, out, and ember::reply_of().
◆ first_call()
| std::ptrdiff_t ember::ReplyBuilder::first_call |
( |
| ) |
const |
|
inlineprivate |
Definition at line 100 of file chat_reply.h.
100 {
101 for (
size_t i = 0;
i <
ids_.size(); ++
i)
103 return static_cast<std::ptrdiff_t
>(
ids_.size());
104 }
References j.
◆ ids()
| const std::vector< int > & ember::ReplyBuilder::ids |
( |
| ) |
const |
|
inline |
◆ next()
| std::string ember::ReplyBuilder::next |
( |
int |
id | ) |
|
|
inline |
◆ call_id_
| int ember::ReplyBuilder::call_id_ |
|
private |
◆ decode_
◆ ids_
| std::vector<int> ember::ReplyBuilder::ids_ |
|
private |
◆ in_call_
◆ stream_
The documentation for this class was generated from the following file: