DF-0
DF-0: Data processing Framework with Zero-overhead
Loading...
Searching...
No Matches
df0::openai::embed< auditor_type > Class Template Reference
Inheritance diagram for df0::openai::embed< auditor_type >:
df0::with_pimpl< embed< audit::null_auditor > > df0::with_pimpl_base

Public Member Functions

template<audit::stateless_auditor stateless_auditor_type = auditor_type>
 embed (const std::string &api_key, embed_model model=embed_model::text_embedding_3_small)
 Constructs the component with the default stateless auditing policy.
 embed (const std::string &api_key, embed_model model, audit::auditor_ref< auditor_type > auditor)
continuation operator() (message_ptr msg, const message_callbacks &emit_message)
 Executes transform operation for given node data.

Additional Inherited Members

Protected Types inherited from df0::with_pimpl< embed< audit::null_auditor > >
using impl_type
Protected Member Functions inherited from df0::with_pimpl< embed< audit::null_auditor > >
impl_type * create_impl (Args &&... args)
 with_pimpl (Args &&... args)
with_pimpl & operator= (with_pimpl &&other) noexcept
impl_type & impl ()

Detailed Description

template<typename auditor_type = audit::null_auditor>
class df0::openai::embed< auditor_type >

Definition at line 38 of file embed.h.

Constructor & Destructor Documentation

◆ embed()

template<typename auditor_type = audit::null_auditor>
template<audit::stateless_auditor stateless_auditor_type = auditor_type>
df0::openai::embed< auditor_type >::embed ( const std::string & api_key,
embed_model model = embed_model::text_embedding_3_small )
inline

Constructs the component with the default stateless auditing policy.

This overload is available only when the configured auditor is stateless and therefore default-constructible.

Template Parameters
stateless_auditor_typeInjected auditor type selected by this overload.

Definition at line 53 of file embed.h.

Member Function Documentation

◆ operator()()

template<typename auditor_type = audit::null_auditor>
continuation df0::openai::embed< auditor_type >::operator() ( message_ptr msg,
const message_callbacks & emit_message )

Executes transform operation for given node data.

See also
df0::message_ptr
Parameters
tag
callback

The documentation for this class was generated from the following file: