Run configurations allow you to declare and reuse settings for Runs. This is particularly useful when you want to standardize run behavior across multiple invocations or share configurations between different parts of your application.

Run Configurations are created via the Playground UI. A run configuration can specify all options available to a run.

When triggering a run, the config value can be provided which defines the ID and optional input object.

Options on the Run invocation are merged with those defined in the Run configuration.

Values defined in the Run Configuration take precedence over those provided in the Run.

const run = await inferable.run({
  config: {
    id: 'XXXXXXXX'
  }
  initialPrompt: `Help this customer: ${customerQuery}`
});

Run Configurations need to be enabled in the Playground UI in the “Settings” tab.

Structured Input

You can optionally provide an inputSchema when defining a Run Configuration. This will be validated when creating runs with the configuration.

const run = await inferable.run({
  config: {
    id: "XXXXXXXX",
    input: {
      userName: "John Smith",
    },
  },
});