GenAI (Noizu Labs, GenAI Wrapper v0.0.3)

Link to this section Summary

Link to this section Functions

Link to this function

chat(thread_provider \\ :default)

Creates a new chat context.

Link to this function

stream(context, handler)

See GenAI.ThreadProtocol.stream/2.

Link to this function

with_api_key(context, provider, api_key)

See GenAI.ThreadProtocol.with_api_key/3.

Link to this function

with_api_org(context, provider, api_org)

See GenAI.ThreadProtocol.with_api_org/3.

Link to this function

with_message(context, message, options \\ nil)

See GenAI.ThreadProtocol.with_message/3.

Link to this function

with_messages(context, messages, options \\ nil)

See GenAI.ThreadProtocol.with_messages/3.

Link to this function

with_model(context, model)

See GenAI.ThreadProtocol.with_model/2.

Link to this function

with_safety_setting(context, safety_setting, threshold)

See GenAI.ThreadProtocol.with_safety_setting/3.

Link to this function

with_setting(context, setting, value)

See GenAI.ThreadProtocol.with_setting/3.

Link to this function

with_tool(context, tool)

See GenAI.ThreadProtocol.with_tool/2.

Link to this function

with_tools(context, tools)

See GenAI.ThreadProtocol.with_tools/2.