This functionality for now is not supported when using
async mode.new_interaction context manager, which you can employ to gather a lengthy and intricate sequence of models into a single input-output interaction:
set_input: This method is beneficial for explicitly defining the input for the model chain.set_history: It can be employed to specify the previous history of interactions.set_output: This method is valuable for explicitly defining the output of the model chain.
Example
Let’s illustrate this with an example in which we use two models to assess the sentiment and topic of a LinkedIn post:string
required
An id or username uniquely identifying the end-user. We recommend hashing their username or email address, in order to avoid sending us any identifying information.
dict
Tag user interactions by adding key-value pairs using this parameter. Each key represents the tag name, and the corresponding value is the tag value.For example, if you want to tag an interaction with the model version used to reply to user input, provide it as an argument for nebuly_tags, e.g.
{"version": "v1.0.0"}. You have the flexibility to define custom tags, making them available as potential filters on the Nebuly platform.string
You can use this field to temporarily override the Nebuly API key for the selected model call. The interaction will be stored in the project associated with the provided API key.