View as Markdown
Lamini icon

Lamini ACTION

Upload Dataset

Upload a dataset to Lamini for training.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Lamini account once, then configure and run Upload Dataset from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "lamini-upload-dataset",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    lamini: { authProvisionId: "apn_xxxxxxx" },
    file: "Dataset File Path or URL",
    inputKey: "Input Key",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Upload Dataset inputs
Property Type Description
file Dataset File Path or URL string
URL or path to a file containing your training data. Supported formats include .jsonl and .jsonlines.
Required
inputKey Input Key string
Key of the JSON dictionary to use as the input. Eg. question.
Required
outputKey Output Key string
Key of the JSON dictionary to use as the output. Eg. answer.
Optional
isPublic Is Public boolean
Whether this dataset should be publicly accessible.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
lamini-upload-dataset
Version
1.0.2
App
Lamini
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes