|
|
| chat (const std::string &system_message, const std::string &api_key, Model model=Model::gpt_5, float temperature=0.7, ImageDetail image_detail=ImageDetail::automatic) |
| |
| continuation | operator() (message_ptr msg, const message_callbacks &emit_message) override |
| | Executes transform operation for given node data. More...
|
| |
| bool | is_leaf () const override |
| | Check if chain element is a leaf (last element which doesn't produce any messages). At this moment only exporters are leafs. More...
|
| |
|
| chain_element (chain_element &&)=default |
| |
|
chain_element & | operator= (chain_element &&)=default |
| |
|
virtual bool | is_generator () const |
| |
Definition at line 66 of file chat.h.
◆ is_leaf()
| bool docwire::openai::chat::is_leaf |
( |
| ) |
const |
|
inlineoverridevirtual |
Check if chain element is a leaf (last element which doesn't produce any messages). At this moment only exporters are leafs.
- Returns
- true if leaf
Implements docwire::chain_element.
Definition at line 80 of file chat.h.
◆ operator()()
| continuation docwire::openai::chat::operator() |
( |
message_ptr |
msg, |
|
|
const message_callbacks & |
emit_message |
|
) |
| |
|
overridevirtual |
Executes transform operation for given node data.
- See also
- docwire::message_ptr
-
docwire::message_callbacks
- Parameters
-
| msg | The input message to process. |
| emit_message | Callback invoked to emit produced messages. |
Implements docwire::chain_element.
The documentation for this class was generated from the following file: