Using Gostly

Create API fixtures in Studio

Prepare linked fictional records and HTTP examples for a customer situation. Describe the case, review the draft, then import the selected fixtures into a Gostly service.

An order assistant, for example, needs to distinguish an order with a known delivery date from one that has not shipped. Studio helps prepare the related customer and order records. Your team decides what the assistant should say and checks that behavior in its own application or evaluation harness.

  1. Describe

    Customer, orders and the meaningful difference between them.

  2. Review

    Linked records, proposed checks and the current draft revision.

  3. Import and check

    Selected HTTP fixtures, the served response and your application result.

Authoring, fixture import and application evaluation are separate actions.

Before you begin

  • Use an installation that includes Agent Studio, with an active Pro trial or license that includes generative access. Open /agents in your local Gostly dashboard.
  • Ask an administrator to add and test a model connection. Members can use a verified connection to create a session.
  • Use fictional input or data you are permitted to send to that endpoint. The conversation, selected plan, draft and bounded tool results can be sent to the model.
  • Prepare a target service before importing fixtures. See Seed a Mock Library.

Authoring and export do not need the isolated check runner. Whether checks and private proxy runs can run depends on the host kernel, described below.

Connect a model

An administrator opens model connection settings at /settings/ai in the local dashboard. Enter a connection name, the API base URL and exact model name. Supply a provider key if the endpoint requires one. Save, then use Test connection.

Gostly sends each request to the base URL followed by /chat/completions. The base URL is therefore the provider's address up to that path, usually ending in a version such as /v1 (for example https://model.example/v1), not an address that ends in /models or /chat/completions. The model name is the identifier the provider's API accepts in its model field, as its API reference or model list gives it, not the name its chat app shows.

Studio requires OpenAI-compatible Chat Completions with function tools. The test requests a real tool call; a plain text response does not pass. A provider's native API may need an adapter. Gostly uses the configured endpoint; it does not install or host that model's weights.

For a model on your network, the API host must be able to reach it and the operator must allow its exact private origin. A model reachable from your browser may still be unreachable from Gostly's API. Remote endpoints require explicit consent to share workspace content. Editing the model, URL or credential requires a new connection test.

Check: the verified connection is selectable for a new session. Verification records a connection test; it does not promise every later model request will succeed.

Describe the customer situation

Create a session and choose the verified connection. State the related records, meaningful differences and expected application decision. For example:

Create a fictional customer with two linked orders. One has shipped and has an estimated arrival date. The other is awaiting dispatch and has no arrival date. Keep both orders linked to the correct customer. Propose checks for those relationships and the missing date.

This is an authored example. Studio's authoring path does not retrieve recorded traffic. Use Record & Replay when you need to start from observed HTTP exchanges.

Review the draft

Inspect the saved plan, linked records and proposed check program. Confirm that the relationships and fields express the situation you need. Gostly assigns synthetic identifiers and resolves declared references; those structural checks do not determine the correct business rule.

Refine a relationship, value or expected condition that is wrong. Review the new revision before approving a check. A changed draft invalidates its pending approval.

Check: identify which records belong together, which case has no delivery date and what your application should do differently for each case.

Export and import selected fixtures

Download the world JSON and the HAR files for the services you want to use. Studio exports synthetic collection and detail GET fixtures. Keep the reviewed draft with the fixture version so another developer can understand the case.

Use Import fixtures to open the separate import workflow, select the target service and confirm the input. Inspect the imported routes and warnings. A saved Studio draft or downloaded HAR does not change the responses served by a shared service.

After import, select MOCK for the target service and send a representative request through Gostly. Inspect the status, body and response source, then run your application's assertion. Follow Seeding for import behavior and Match Cascade for response attribution.

Optional checks and private proxy runs

When the host can run checks, Studio can request approval to run a check against the reviewed world. Read the exact records and program, then approve that revision. A completed program and explicit passed checks are different outcomes. Skipped or unreached checks leave verification incomplete; returning a success-shaped JSON object alone does not establish passed assertions.

A private proxy run is a separate approval. It also needs GOSTLY_SHARED_EPISODE_MUTATIONS_ENABLED, which is on by default. The initial path uses one approved service and mediated GET requests against a dedicated proxy. It does not publish fixtures into the shared proxy or run your application regression suite. Under Proxy finalization receipt, finalized_at reads 2020-01-01T00:00:00+00:00. That is the run's own episode clock, not the time of the run: the clock starts at this value and a Studio run does not advance it.

The standard install runs Studio checks and private proxy runs inside ghost-web as jailed child processes, with no extra container. What can run depends on the host kernel: checks need Linux 5.13 or later, private proxy runs Linux 6.7 or later (see the README's Agent Studio host requirements). The Agent Studio page and /health name the reason when a part cannot run. Authoring and export remain available either way. Dashboard readiness describes configuration; it does not test runner connectivity or execute a scenario.

Review the observed result, named checks and retained status before accepting a model explanation. Your application's responses, actions and release decision remain your team's responsibility.

Resolve a blocked step

What you seeWhat to check next
No verified connectionAsk an administrator to save and test a compatible connection. Check API-host reachability and the allowed private origin when relevant.
Model or transport failureInspect the saved failure and connection state. Correct the connection or prompt before starting a new turn.
Checks or private proxy runs unavailableContinue authoring and export. Read the reason on the Agent Studio page or in /health, and see the README's Agent Studio host requirements.
Model response contract not met after two correctionsThe model's answer still did not fit the form Studio requires, so the turn stopped; saved results remain. Send a simpler, more specific request, or choose a connection whose model follows tool schemas more reliably.
The model says it is waiting for approval, but no Review before execution or Review private proxy run card appearsNothing is waiting: only the model can request a check or a private proxy run. Ask it, in a new message, to request the check or the run, then review the card that appears.
Draft changed after approval requestReview the current records and program, then approve the current revision.
Request outcome uncertainReload the saved session and inspect its state. Do not automatically resubmit the action.
Imported row, unexpected responseInspect import warnings, reload state, mode and request routing. Use Seeding and Record & Replay.