Install and construct
Tools
The tool input envelope accepts body, queryParams and pathParams. Inspect the
selected endpoint before constructing it. See tool API.
Models
Messages support system, user, assistant and tool roles. Function calls are
returned data: your application must authorize and execute them. Preserve the
assistant message, call IDs and reasoning details on continuation.
See function calling.
The separate
freeChat({model, prompt, signal?}) method is development-only.
Use models.createRun in production, including for free models.
Compute
LocalComputeClient is exported from @dreamtune/sdk/node. Its constructor takes
apiKey, baseUrl, stateDirectory and timeoutMs. Use prepare and start with
{name, instanceType, region}; connection takes id, sshUser, optional name and
signal. See GPU access.
Observability
See observability API and prompt API.