s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Live Services
Query
chevron_left Live Services
class
Query

Properties

data_objectInput

Methods

functionsAddImagefunctionsRun
Query
An AI request created by Config.CreateQuery. Add input and images, then Run it independently or send its message to a chat. Build and submit on the calling game context.
class Sandbox.Services.Ai .
sealedSandbox.Engine

data_object Properties 1

Input
string
Text to send. May be omitted when images are supplied.

functions Methods 2

AddImage (url)
Query
Adds an HTTP(S) image URL or a base64 image data URL in JPEG, PNG, WebP or GIF format. HTTP(S) URLs are forwarded to the AI provider without downloading them locally.
Run (cancellationToken)
Task`1
Runs the query and any configured tools. After an interrupted tool turn, Run again on this query to resume the retained submission without rerunning completed tools. Reaching MaxToolRounds is terminal for this query; create a new query with a higher configured limit if needed.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter