GenAI.Provider.Anthropic.Encoder (Noizu Labs, GenAI Wrapper v0.2.3)

Link to this section Summary

Functions

Format message for provider/model type.

Format tool for provider/model type.

Prepare endpoint and method to make inference call to

Prepare endpoint and method to make inference call to

Obtain list of hyper params supported by given model including mapping and conditional rules/alterations

Prepare request body to be passed to inference call.

Set setting with dynamic model based logic.

Set setting as_setting with dynamic model based logic.

Link to this section Functions

Link to this function

completion_choice(id, json, model, settings, session, context, options)

Link to this function

completion_choices(id, json, model, settings, session, context, options)

Link to this function

completion_content(json)

Link to this function

completion_message(map)

Link to this function

completion_response(json, model, settings, session, context, options)

Callback implementation for GenAI.Model.EncoderBehaviour.completion_response/6.

Link to this function

default_hyper_params(model, settings, session, context, options)

Callback implementation for GenAI.Model.EncoderBehaviour.default_hyper_params/5.

Link to this function

encode_message(message, model, session, context, options)

Format message for provider/model type.

Link to this function

encode_tool(tool, model, session, context, options)

Format tool for provider/model type.

Link to this function

encoder_protocol(model, session, context, options)

Prepare endpoint and method to make inference call to

Link to this function

endpoint(model, settings, session, context, options)

Prepare endpoint and method to make inference call to

Link to this function

headers(model, settings, session, context, options)

Prepare request headers

Link to this function

hyper_params(model, settings, session, context, options)

Obtain list of hyper params supported by given model including mapping and conditional rules/alterations

Link to this function

normalize_messages(messages, model, session, context, options)

Callback implementation for GenAI.Model.EncoderBehaviour.normalize_messages/5.

Link to this function

request_body(model, messages, tools, settings, session, context, options)

Prepare request body to be passed to inference call.

Link to this function

with_dynamic_setting(body, setting, model, settings)

Set setting with dynamic model based logic.

Link to this function

with_dynamic_setting(body, setting, model, settings, default)

Callback implementation for GenAI.Model.EncoderBehaviour.with_dynamic_setting/5.

Link to this function

with_dynamic_setting_as(body, as_setting, setting, model, settings)

Set setting as_setting with dynamic model based logic.

Link to this function

with_dynamic_setting_as(body, as_setting, setting, model, settings, default)

Callback implementation for GenAI.Model.EncoderBehaviour.with_dynamic_setting_as/6.