Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0-alpha.1"
".": "0.4.0-alpha.2"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-35c6569e5e9fcc85084c9728eb7fc7c5908297fcc77043d621d25de3c850a990.yml
openapi_spec_hash: 0f95bbeee16f3205d36ec34cfa62c711
config_hash: ef275cc002a89629459fd73d0cf9cba9
configured_endpoints: 89
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-0ace6fde1fda4dcf15bb1177074f61b15ffa1e574127f1d99c570f2a5fae04e9.yml
openapi_spec_hash: 620ae49556af9e59880cfcf033058def
config_hash: 7ea2be3456738fbcf24ccf79a0021b0a
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 0.4.0-alpha.2 (2025-11-11)

Full Changelog: [v0.4.0-alpha.1...v0.4.0-alpha.2](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.1...v0.4.0-alpha.2)

### Features

* add new API filter for all non-deprecated APIs ([b6aeeaf](https://github.com/llamastack/llama-stack-client-typescript/commit/b6aeeaf8de2ec76928f2b52b027b563924cae7af))
* **api:** point models.list() to /v1/openai/v1/models ([bb35776](https://github.com/llamastack/llama-stack-client-typescript/commit/bb35776ec613b3045cf3b3f62e5361d9403fa2a8))
* **api:** remove agents types ([69aff21](https://github.com/llamastack/llama-stack-client-typescript/commit/69aff218b3c3765a1a6beab4ade48a7096a9082b))
* **api:** remove openai/v1 endpoints ([96b206c](https://github.com/llamastack/llama-stack-client-typescript/commit/96b206cd531391fe3d0323a276eb342b70a568de))
* Implement the 'max_tool_calls' parameter for the Responses API ([a9ec6fb](https://github.com/llamastack/llama-stack-client-typescript/commit/a9ec6fb8fea3b839f30a03d2fb61efbfe4c6b007))

## 0.4.0-alpha.1 (2025-10-31)

Full Changelog: [v0.2.23-alpha.1...v0.4.0-alpha.1](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.2.23-alpha.1...v0.4.0-alpha.1)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ import LlamaStackClient from 'llama-stack-client';

const client = new LlamaStackClient();

const model = await client.models.register({ model_id: 'model_id' });

console.log(model.identifier);
const completion = await client.chat.completions.create({
messages: [{ content: 'string', role: 'user' }],
model: 'model',
});
```

## Streaming responses
Expand Down
97 changes: 3 additions & 94 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,12 @@

Types:

- <code><a href="./src/resources/shared.ts">AgentConfig</a></code>
- <code><a href="./src/resources/shared.ts">CompletionMessage</a></code>
- <code><a href="./src/resources/shared.ts">Document</a></code>
- <code><a href="./src/resources/shared.ts">InterleavedContent</a></code>
- <code><a href="./src/resources/shared.ts">InterleavedContentItem</a></code>
- <code><a href="./src/resources/shared.ts">Message</a></code>
- <code><a href="./src/resources/shared.ts">ParamType</a></code>
- <code><a href="./src/resources/shared.ts">QueryConfig</a></code>
- <code><a href="./src/resources/shared.ts">QueryResult</a></code>
- <code><a href="./src/resources/shared.ts">ResponseFormat</a></code>
- <code><a href="./src/resources/shared.ts">SafetyViolation</a></code>
- <code><a href="./src/resources/shared.ts">SamplingParams</a></code>
- <code><a href="./src/resources/shared.ts">ScoringResult</a></code>
- <code><a href="./src/resources/shared.ts">SystemMessage</a></code>
- <code><a href="./src/resources/shared.ts">ToolCall</a></code>
- <code><a href="./src/resources/shared.ts">ToolResponseMessage</a></code>
- <code><a href="./src/resources/shared.ts">UserMessage</a></code>

# Toolgroups

Expand All @@ -32,8 +21,6 @@ Methods:

- <code title="get /v1/toolgroups">client.toolgroups.<a href="./src/resources/toolgroups.ts">list</a>() -> ToolgroupListResponse</code>
- <code title="get /v1/toolgroups/{toolgroup_id}">client.toolgroups.<a href="./src/resources/toolgroups.ts">get</a>(toolgroupId) -> ToolGroup</code>
- <code title="post /v1/toolgroups">client.toolgroups.<a href="./src/resources/toolgroups.ts">register</a>({ ...params }) -> void</code>
- <code title="delete /v1/toolgroups/{toolgroup_id}">client.toolgroups.<a href="./src/resources/toolgroups.ts">unregister</a>(toolgroupId) -> void</code>

# Tools

Expand Down Expand Up @@ -61,11 +48,6 @@ Methods:

## RagTool

Methods:

- <code title="post /v1/tool-runtime/rag-tool/insert">client.toolRuntime.ragTool.<a href="./src/resources/tool-runtime/rag-tool.ts">insert</a>({ ...params }) -> void</code>
- <code title="post /v1/tool-runtime/rag-tool/query">client.toolRuntime.ragTool.<a href="./src/resources/tool-runtime/rag-tool.ts">query</a>({ ...params }) -> QueryResult</code>

# Responses

Types:
Expand Down Expand Up @@ -263,14 +245,13 @@ Types:

- <code><a href="./src/resources/models/models.ts">ListModelsResponse</a></code>
- <code><a href="./src/resources/models/models.ts">Model</a></code>
- <code><a href="./src/resources/models/models.ts">ModelRetrieveResponse</a></code>
- <code><a href="./src/resources/models/models.ts">ModelListResponse</a></code>

Methods:

- <code title="get /v1/models/{model_id}">client.models.<a href="./src/resources/models/models.ts">retrieve</a>(modelId) -> Model</code>
- <code title="get /v1/models/{model_id}">client.models.<a href="./src/resources/models/models.ts">retrieve</a>(modelId) -> ModelRetrieveResponse</code>
- <code title="get /v1/models">client.models.<a href="./src/resources/models/models.ts">list</a>() -> ModelListResponse</code>
- <code title="post /v1/models">client.models.<a href="./src/resources/models/models.ts">register</a>({ ...params }) -> Model</code>
- <code title="delete /v1/models/{model_id}">client.models.<a href="./src/resources/models/models.ts">unregister</a>(modelId) -> void</code>

## OpenAI

Expand Down Expand Up @@ -299,7 +280,7 @@ Types:

Methods:

- <code title="get /v1/inspect/routes">client.routes.<a href="./src/resources/routes.ts">list</a>() -> RouteListResponse</code>
- <code title="get /v1/inspect/routes">client.routes.<a href="./src/resources/routes.ts">list</a>({ ...params }) -> RouteListResponse</code>

# Moderations

Expand Down Expand Up @@ -333,18 +314,6 @@ Methods:

- <code title="get /v1/shields/{identifier}">client.shields.<a href="./src/resources/shields.ts">retrieve</a>(identifier) -> Shield</code>
- <code title="get /v1/shields">client.shields.<a href="./src/resources/shields.ts">list</a>() -> ShieldListResponse</code>
- <code title="delete /v1/shields/{identifier}">client.shields.<a href="./src/resources/shields.ts">delete</a>(identifier) -> void</code>
- <code title="post /v1/shields">client.shields.<a href="./src/resources/shields.ts">register</a>({ ...params }) -> Shield</code>

# SyntheticDataGeneration

Types:

- <code><a href="./src/resources/synthetic-data-generation.ts">SyntheticDataGenerationResponse</a></code>

Methods:

- <code title="post /v1/synthetic-data-generation/generate">client.syntheticDataGeneration.<a href="./src/resources/synthetic-data-generation.ts">generate</a>({ ...params }) -> SyntheticDataGenerationResponse</code>

# Scoring

Expand All @@ -371,7 +340,6 @@ Methods:

- <code title="get /v1/scoring-functions/{scoring_fn_id}">client.scoringFunctions.<a href="./src/resources/scoring-functions.ts">retrieve</a>(scoringFnId) -> ScoringFn</code>
- <code title="get /v1/scoring-functions">client.scoringFunctions.<a href="./src/resources/scoring-functions.ts">list</a>() -> ScoringFunctionListResponse</code>
- <code title="post /v1/scoring-functions">client.scoringFunctions.<a href="./src/resources/scoring-functions.ts">register</a>({ ...params }) -> void</code>

# Files

Expand Down Expand Up @@ -467,65 +435,6 @@ Methods:
- <code title="delete /v1alpha/eval/benchmarks/{benchmark_id}/jobs/{job_id}">client.alpha.eval.jobs.<a href="./src/resources/alpha/eval/jobs.ts">cancel</a>(benchmarkId, jobId) -> void</code>
- <code title="get /v1alpha/eval/benchmarks/{benchmark_id}/jobs/{job_id}">client.alpha.eval.jobs.<a href="./src/resources/alpha/eval/jobs.ts">status</a>(benchmarkId, jobId) -> Job</code>

## Agents

Types:

- <code><a href="./src/resources/alpha/agents/agents.ts">InferenceStep</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">MemoryRetrievalStep</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">ShieldCallStep</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">ToolExecutionStep</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">ToolResponse</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">AgentCreateResponse</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">AgentRetrieveResponse</a></code>
- <code><a href="./src/resources/alpha/agents/agents.ts">AgentListResponse</a></code>

Methods:

- <code title="post /v1alpha/agents">client.alpha.agents.<a href="./src/resources/alpha/agents/agents.ts">create</a>({ ...params }) -> AgentCreateResponse</code>
- <code title="get /v1alpha/agents/{agent_id}">client.alpha.agents.<a href="./src/resources/alpha/agents/agents.ts">retrieve</a>(agentId) -> AgentRetrieveResponse</code>
- <code title="get /v1alpha/agents">client.alpha.agents.<a href="./src/resources/alpha/agents/agents.ts">list</a>({ ...params }) -> AgentListResponse</code>
- <code title="delete /v1alpha/agents/{agent_id}">client.alpha.agents.<a href="./src/resources/alpha/agents/agents.ts">delete</a>(agentId) -> void</code>

### Session

Types:

- <code><a href="./src/resources/alpha/agents/session.ts">Session</a></code>
- <code><a href="./src/resources/alpha/agents/session.ts">SessionCreateResponse</a></code>
- <code><a href="./src/resources/alpha/agents/session.ts">SessionListResponse</a></code>

Methods:

- <code title="post /v1alpha/agents/{agent_id}/session">client.alpha.agents.session.<a href="./src/resources/alpha/agents/session.ts">create</a>(agentId, { ...params }) -> SessionCreateResponse</code>
- <code title="get /v1alpha/agents/{agent_id}/session/{session_id}">client.alpha.agents.session.<a href="./src/resources/alpha/agents/session.ts">retrieve</a>(agentId, sessionId, { ...params }) -> Session</code>
- <code title="get /v1alpha/agents/{agent_id}/sessions">client.alpha.agents.session.<a href="./src/resources/alpha/agents/session.ts">list</a>(agentId, { ...params }) -> SessionListResponse</code>
- <code title="delete /v1alpha/agents/{agent_id}/session/{session_id}">client.alpha.agents.session.<a href="./src/resources/alpha/agents/session.ts">delete</a>(agentId, sessionId) -> void</code>

### Steps

Types:

- <code><a href="./src/resources/alpha/agents/steps.ts">StepRetrieveResponse</a></code>

Methods:

- <code title="get /v1alpha/agents/{agent_id}/session/{session_id}/turn/{turn_id}/step/{step_id}">client.alpha.agents.steps.<a href="./src/resources/alpha/agents/steps.ts">retrieve</a>(agentId, sessionId, turnId, stepId) -> StepRetrieveResponse</code>

### Turn

Types:

- <code><a href="./src/resources/alpha/agents/turn.ts">AgentTurnResponseStreamChunk</a></code>
- <code><a href="./src/resources/alpha/agents/turn.ts">Turn</a></code>
- <code><a href="./src/resources/alpha/agents/turn.ts">TurnResponseEvent</a></code>

Methods:

- <code title="post /v1alpha/agents/{agent_id}/session/{session_id}/turn">client.alpha.agents.turn.<a href="./src/resources/alpha/agents/turn.ts">create</a>(agentId, sessionId, { ...params }) -> Turn</code>
- <code title="get /v1alpha/agents/{agent_id}/session/{session_id}/turn/{turn_id}">client.alpha.agents.turn.<a href="./src/resources/alpha/agents/turn.ts">retrieve</a>(agentId, sessionId, turnId) -> Turn</code>
- <code title="post /v1alpha/agents/{agent_id}/session/{session_id}/turn/{turn_id}/resume">client.alpha.agents.turn.<a href="./src/resources/alpha/agents/turn.ts">resume</a>(agentId, sessionId, turnId, { ...params }) -> Turn</code>

# Beta

## Datasets
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llama-stack-client",
"version": "0.4.0-alpha.1",
"version": "0.4.0-alpha.2",
"description": "The official TypeScript library for the Llama Stack Client API",
"author": "Llama Stack Client <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
51 changes: 6 additions & 45 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
import { HealthInfo, Inspect, ProviderInfo, RouteInfo, VersionInfo } from './resources/inspect';
import { CreateResponse, ModerationCreateParams, Moderations } from './resources/moderations';
import { ListProvidersResponse, ProviderListResponse, Providers } from './resources/providers';
import { ListRoutesResponse, RouteListResponse, Routes } from './resources/routes';
import { ListRoutesResponse, RouteListParams, RouteListResponse, Routes } from './resources/routes';
import { RunShieldResponse, Safety, SafetyRunShieldParams } from './resources/safety';
import {
Scoring,
Expand All @@ -54,28 +54,10 @@ import {
ScoringFn,
ScoringFnParams,
ScoringFunctionListResponse,
ScoringFunctionRegisterParams,
ScoringFunctions,
} from './resources/scoring-functions';
import {
ListShieldsResponse,
Shield,
ShieldListResponse,
ShieldRegisterParams,
Shields,
} from './resources/shields';
import {
SyntheticDataGeneration,
SyntheticDataGenerationGenerateParams,
SyntheticDataGenerationResponse,
} from './resources/synthetic-data-generation';
import {
ListToolGroupsResponse,
ToolGroup,
ToolgroupListResponse,
ToolgroupRegisterParams,
Toolgroups,
} from './resources/toolgroups';
import { ListShieldsResponse, Shield, ShieldListResponse, Shields } from './resources/shields';
import { ListToolGroupsResponse, ToolGroup, ToolgroupListResponse, Toolgroups } from './resources/toolgroups';
import { ToolListParams, ToolListResponse, Tools } from './resources/tools';
import {
QueryChunksResponse,
Expand All @@ -97,7 +79,7 @@ import {
ListModelsResponse,
Model,
ModelListResponse,
ModelRegisterParams,
ModelRetrieveResponse,
Models,
} from './resources/models/models';
import {
Expand Down Expand Up @@ -271,7 +253,6 @@ export class LlamaStackClient extends Core.APIClient {
moderations: API.Moderations = new API.Moderations(this);
safety: API.Safety = new API.Safety(this);
shields: API.Shields = new API.Shields(this);
syntheticDataGeneration: API.SyntheticDataGeneration = new API.SyntheticDataGeneration(this);
scoring: API.Scoring = new API.Scoring(this);
scoringFunctions: API.ScoringFunctions = new API.ScoringFunctions(this);
files: API.Files = new API.Files(this);
Expand Down Expand Up @@ -348,7 +329,6 @@ LlamaStackClient.Routes = Routes;
LlamaStackClient.Moderations = Moderations;
LlamaStackClient.Safety = Safety;
LlamaStackClient.Shields = Shields;
LlamaStackClient.SyntheticDataGeneration = SyntheticDataGeneration;
LlamaStackClient.Scoring = Scoring;
LlamaStackClient.ScoringFunctions = ScoringFunctions;
LlamaStackClient.Files = Files;
Expand Down Expand Up @@ -376,7 +356,6 @@ export declare namespace LlamaStackClient {
type ListToolGroupsResponse as ListToolGroupsResponse,
type ToolGroup as ToolGroup,
type ToolgroupListResponse as ToolgroupListResponse,
type ToolgroupRegisterParams as ToolgroupRegisterParams,
};

export { Tools as Tools, type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams };
Expand Down Expand Up @@ -470,8 +449,8 @@ export declare namespace LlamaStackClient {
Models as Models,
type ListModelsResponse as ListModelsResponse,
type Model as Model,
type ModelRetrieveResponse as ModelRetrieveResponse,
type ModelListResponse as ModelListResponse,
type ModelRegisterParams as ModelRegisterParams,
};

export {
Expand All @@ -484,6 +463,7 @@ export declare namespace LlamaStackClient {
Routes as Routes,
type ListRoutesResponse as ListRoutesResponse,
type RouteListResponse as RouteListResponse,
type RouteListParams as RouteListParams,
};

export {
Expand All @@ -503,13 +483,6 @@ export declare namespace LlamaStackClient {
type ListShieldsResponse as ListShieldsResponse,
type Shield as Shield,
type ShieldListResponse as ShieldListResponse,
type ShieldRegisterParams as ShieldRegisterParams,
};

export {
SyntheticDataGeneration as SyntheticDataGeneration,
type SyntheticDataGenerationResponse as SyntheticDataGenerationResponse,
type SyntheticDataGenerationGenerateParams as SyntheticDataGenerationGenerateParams,
};

export {
Expand All @@ -526,7 +499,6 @@ export declare namespace LlamaStackClient {
type ScoringFn as ScoringFn,
type ScoringFnParams as ScoringFnParams,
type ScoringFunctionListResponse as ScoringFunctionListResponse,
type ScoringFunctionRegisterParams as ScoringFunctionRegisterParams,
};

export {
Expand All @@ -544,23 +516,12 @@ export declare namespace LlamaStackClient {

export { Beta as Beta };

export type AgentConfig = API.AgentConfig;
export type CompletionMessage = API.CompletionMessage;
export type Document = API.Document;
export type InterleavedContent = API.InterleavedContent;
export type InterleavedContentItem = API.InterleavedContentItem;
export type Message = API.Message;
export type ParamType = API.ParamType;
export type QueryConfig = API.QueryConfig;
export type QueryResult = API.QueryResult;
export type ResponseFormat = API.ResponseFormat;
export type SafetyViolation = API.SafetyViolation;
export type SamplingParams = API.SamplingParams;
export type ScoringResult = API.ScoringResult;
export type SystemMessage = API.SystemMessage;
export type ToolCall = API.ToolCall;
export type ToolResponseMessage = API.ToolResponseMessage;
export type UserMessage = API.UserMessage;
}

export { toFile, fileFromPath } from './uploads';
Expand Down
9 changes: 0 additions & 9 deletions src/resources/alpha/agents.ts

This file was deleted.

Loading