Returns

Returns a list of InferenceResult objects.

Example

conversation = [
    {"input": "Hi", "output": "Hello!"},
    {"input": "How are you?", "output": "I am a bot, I have no feelings."}
]
inference_results = galtea.inference_results.create_batch(
    session_id="YOUR_SESSION_ID",
    conversation_turns=conversation
)

Parameters

session_id
string
required

The session ID to log the inference results to.

conversation_turns
list[dict]
required

A list of dictionaries, where each dictionary represents a conversation turn with “input” and “output” keys.