Auto-generated content

This page is automatically generated from the OpenAPI specification.

ModelsApi

All URIs are relative to http://localhost:8000/v1

MethodHTTP requestDescription
attach_events_to_episodePOST /models/i/{instanceid}/episodes/{episodename}/attach-eventsAttach events to an episode
attach_metadata_to_eventPOST /models/i/{instanceid}/episodes/{episodename}/events/{event_id}/attach-metadataAttach metadata to an event
create_episodePOST /models/i/{instance_id}/create-episodeCreate a new episode for a model instance
create_model_instancePOST /models/create-instanceCreate a new model instance
delete_episodeDELETE /models/i/{instanceid}/episodes/{episodename}Delete an episode for a model
delete_model_instanceDELETE /models/i/{instance_id}Delete a model instance
get_available_modelGET /models/available/{model_name}Get information about a specific model available for creation
get_available_modelsGET /models/availableGet models available for creation
get_episode_infoGET /models/i/{instanceid}/episodes/{episodename}Get episode information
get_episodesGET /models/i/{instance_id}/episodesGet all episodes for a model instance
get_model_instanceGET /models/i/{instance_id}Get model instance information
get_model_instanceParametersGET /models/i/{instance_id}/parametersGet the parameters of a model instance
get_model_instanceStateGET /models/i/{instance_id}/stateGet the state of a model instance
get_model_instancesGET /models/instancesGet all created model instances
run_inferencePOST /models/i/{instance_id}/inferRun inference
run_learningPOST /models/i/{instance_id}/learnLearn from previous observations
wipe_episodePOST /models/i/{instanceid}/episodes/{episodename}/wipeWipe all events from an episode

attach_events_to_episode

SuccessResponse attach_events_to_episode(instance_id, episode_name, AttachEventsToEpisodeRequest)

Attach events to an episode

Attach events to a specific episode for a model

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to attach events to[default to null]
episode_nameStringName of the episode to attach events to[default to null]
AttachEventsToEpisodeRequestAttachEventsToEpisodeRequest

Return type

SuccessResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

attach_metadata_to_event

SuccessResponse attach_metadata_to_event(instance_id, episode_name, event_id, AttachMetadataToEventRequest)

Attach metadata to an event

Attach metadata to a specific event for a model

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to attach metadata to[default to null]
episode_nameStringName of the episode to attach metadata to[default to null]
event_idLongID of the event to attach metadata to[default to null]
AttachMetadataToEventRequestAttachMetadataToEventRequest

Return type

SuccessResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

create_episode

EpisodeInfo create_episode(instance_id, CreateEpisodeRequest)

Create a new episode for a model instance

Create a new episode for a specific model instance. Note that the default episode is created automatically when the model instance is created.  When a new episode is created, it becomes the current episode for the model instance.

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to create episode for[default to null]
CreateEpisodeRequestCreateEpisodeRequest

Return type

EpisodeInfo

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

create_model_instance

CreateModelInstanceResponse create_model_instance(CreateModelInstanceRequest)

Create a new model instance

Creates a new instance of a model with the specified configuration

Parameters

NameTypeDescriptionNotes
CreateModelInstanceRequestCreateModelInstanceRequest

Return type

CreateModelInstanceResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

delete_episode

SuccessResponse delete_episode(instance_id, episode_name)

Delete an episode for a model

Delete a specific episode for a model instance. Note that the default episode cannot be deleted, but you can wipe data from it. If the deleted episode was the current episode, the default episode will become the current episode.

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to delete episode for[default to null]
episode_nameStringName of the episode to delete[default to null]

Return type

SuccessResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

delete_model_instance

SuccessResponse delete_model_instance(instance_id)

Delete a model instance

Delete a specific model instance by its ID

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to delete[default to null]

Return type

SuccessResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_available_model

AvailableModel get_available_model(model_name)

Get information about a specific model available for creation

Retrieve detailed information about a specific model available for creation

Parameters

NameTypeDescriptionNotes
model_nameStringName of the model to retrieve information for (including version identifier if applicable, e.g. \"BetaBernoulli-v1\")[default to null]

Return type

AvailableModel

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_available_models

List get_available_models()

Get models available for creation

Retrieve the list of models available for creation for a given token. This list specifies names and available arguments for each model.  **Note** The list of available models might differ for different access tokens. For example, a token with only the \"user\" role might not have access to all models.

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_episode_info

EpisodeInfo get_episode_info(instance_id, episode_name)

Get episode information

Retrieve information about a specific episode of a model

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to retrieve episode for[default to null]
episode_nameStringName of the episode to retrieve[default to null]

Return type

EpisodeInfo

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_episodes

List get_episodes(instance_id)

Get all episodes for a model instance

Retrieve all episodes for a specific model instance

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to retrieve episodes for[default to null]

Return type

List

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_model_instance

ModelInstance get_model_instance(instance_id)

Get model instance information

Retrieve detailed information about a specific model instance

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to retrieve information for[default to null]

Return type

ModelInstance

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_model_instanceParameters

ModelInstanceParameters get_model_instanceParameters(instance_id)

Get the parameters of a model instance

Retrieve the parameters of a specific model instance

Parameters

NameTypeDescriptionNotes
instance_idUUID[default to null]

Return type

ModelInstanceParameters

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_model_instanceState

ModelInstanceState get_model_instanceState(instance_id)

Get the state of a model instance

Retrieve the state of a specific model instance

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to retrieve state for[default to null]

Return type

ModelInstanceState

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_model_instances

List get_model_instances()

Get all created model instances

Retrieve detailed information about all created model instances for a specific token

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

run_inference

InferResponse run_inference(instance_id, InferRequest)

Run inference

Run inference on a specific model instance

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to run inference on[default to null]
InferRequestInferRequest

Return type

InferResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

run_learning

LearnResponse run_learning(instance_id, LearnRequest)

Learn from previous observations

Learn from previous episodes for a specific model

Parameters

NameTypeDescriptionNotes
instance_idUUID[default to null]
LearnRequestLearnRequest

Return type

LearnResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

wipe_episode

SuccessResponse wipe_episode(instance_id, episode_name)

Wipe all events from an episode

Wipe all events from a specific episode for a model

Parameters

NameTypeDescriptionNotes
instance_idUUIDID of the model instance to wipe episode for[default to null]
episode_nameStringName of the episode to wipe[default to null]

Return type

SuccessResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
Auto-generated content

This page is automatically generated from the OpenAPI specification.