playground_prompts

Create Playground Prompt

Changed on

Add a prompt to a playground.

Args: ctx: Async request context supplying the read session and current user. principal: Caller the base template's permissions are resolved for. playground: Playground resolved from the URL, verified to belong to the URL project. create_request: Optional prompt to copy the template, settings and raw flag from.

Returns: The created prompt.

post/projects/{project_id}/playgrounds/{playground_id}/prompts

Request

  • Base URL
    https://api.galileo.ai
  • URL
    https://api.galileo.ai/projects/{project_id}/playgrounds/{playground_id}/prompts
  • Auth
    • API key in header Splunk-AO-API-Key
    • or API key in header Galileo-API-Key
    • or OAuth 2
      Password
      Token URL: https://api.galileo.ai/login
    • or HTTP basic

Path parameters

project_idstring uuid4 required
playground_idstring uuid4 required

Request body

playground_prompt_idstring uuid4 nullable

If provided, the new prompt will be a copy of the existing one.

Response

Successful Response

idstring uuid4 required
templatestring nullable

Overrides the base prompt template if set.

rawboolean required
positioninteger required
run_idstring uuid4 nullable

Changes

    • warning

      added the new read_all_logs enum value to the ///// response property for the response status

    • warning

      added the new read_filtered_logs enum value to the ///// response property for the response status

    • warning

      added the new configure_rate_limit enum value to the ///// response property for the response status