Skip to content

Commit

Permalink
sync repo for api_updates_3
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxi0830 committed Sep 24, 2024
1 parent e00013a commit 328904e
Show file tree
Hide file tree
Showing 122 changed files with 4,137 additions and 2,134 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 55
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/meta%2Fllama-stack-a836f3ef44b0852623ef583d04501ee7fcfc4a72af8b4b54cc9d3b415ed038aa.yml
configured_endpoints: 51
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/meta%2Fllama-stack-d52e4c19360cc636336d6a60ba6af1db89736fc0a3025c2b1d11870a5f1a1e3d.yml
77 changes: 56 additions & 21 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@ Types:

```python
from llama_stack.types import (
CustomQueryGeneratorConfig,
DefaultQueryGeneratorConfig,
InferenceStep,
LlmQueryGeneratorConfig,
MemoryRetrievalStep,
RestAPIExecutionConfig,
ShieldCallStep,
ShieldDefinition,
ToolExecutionStep,
ToolParamDefinition,
AgentCreateResponse,
Expand Down Expand Up @@ -196,49 +192,49 @@ Methods:
Types:

```python
from llama_stack.types import SheidResponse, SafetyRunShieldsResponse
from llama_stack.types import RunSheidResponse
```

Methods:

- <code title="post /safety/run_shields">client.safety.<a href="./src/llama_stack/resources/safety.py">run_shields</a>(\*\*<a href="src/llama_stack/types/safety_run_shields_params.py">params</a>) -> <a href="./src/llama_stack/types/safety_run_shields_response.py">SafetyRunShieldsResponse</a></code>
- <code title="post /safety/run_shield">client.safety.<a href="./src/llama_stack/resources/safety.py">run_shield</a>(\*\*<a href="src/llama_stack/types/safety_run_shield_params.py">params</a>) -> <a href="./src/llama_stack/types/run_sheid_response.py">RunSheidResponse</a></code>

# MemoryBanks
# Memory

Types:

```python
from llama_stack.types import (
QueryDocuments,
MemoryBankCreateResponse,
MemoryBankRetrieveResponse,
MemoryBankListResponse,
MemoryBankDropResponse,
MemoryCreateResponse,
MemoryRetrieveResponse,
MemoryListResponse,
MemoryDropResponse,
)
```

Methods:

- <code title="post /memory_banks/create">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">create</a>(\*\*<a href="src/llama_stack/types/memory_bank_create_params.py">params</a>) -> <a href="./src/llama_stack/types/memory_bank_create_response.py">object</a></code>
- <code title="get /memory_banks/get">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">retrieve</a>(\*\*<a href="src/llama_stack/types/memory_bank_retrieve_params.py">params</a>) -> <a href="./src/llama_stack/types/memory_bank_retrieve_response.py">object</a></code>
- <code title="post /memory_bank/update">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">update</a>(\*\*<a href="src/llama_stack/types/memory_bank_update_params.py">params</a>) -> None</code>
- <code title="get /memory_banks/list">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">list</a>() -> <a href="./src/llama_stack/types/memory_bank_list_response.py">object</a></code>
- <code title="post /memory_banks/drop">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">drop</a>(\*\*<a href="src/llama_stack/types/memory_bank_drop_params.py">params</a>) -> str</code>
- <code title="post /memory_bank/insert">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">insert</a>(\*\*<a href="src/llama_stack/types/memory_bank_insert_params.py">params</a>) -> None</code>
- <code title="post /memory_bank/query">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks/memory_banks.py">query</a>(\*\*<a href="src/llama_stack/types/memory_bank_query_params.py">params</a>) -> <a href="./src/llama_stack/types/query_documents.py">QueryDocuments</a></code>
- <code title="post /memory/create">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">create</a>(\*\*<a href="src/llama_stack/types/memory_create_params.py">params</a>) -> <a href="./src/llama_stack/types/memory_create_response.py">object</a></code>
- <code title="get /memory/get">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">retrieve</a>(\*\*<a href="src/llama_stack/types/memory_retrieve_params.py">params</a>) -> <a href="./src/llama_stack/types/memory_retrieve_response.py">object</a></code>
- <code title="post /memory/update">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">update</a>(\*\*<a href="src/llama_stack/types/memory_update_params.py">params</a>) -> None</code>
- <code title="get /memory/list">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">list</a>() -> <a href="./src/llama_stack/types/memory_list_response.py">object</a></code>
- <code title="post /memory/drop">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">drop</a>(\*\*<a href="src/llama_stack/types/memory_drop_params.py">params</a>) -> str</code>
- <code title="post /memory/insert">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">insert</a>(\*\*<a href="src/llama_stack/types/memory_insert_params.py">params</a>) -> None</code>
- <code title="post /memory/query">client.memory.<a href="./src/llama_stack/resources/memory/memory.py">query</a>(\*\*<a href="src/llama_stack/types/memory_query_params.py">params</a>) -> <a href="./src/llama_stack/types/query_documents.py">QueryDocuments</a></code>

## Documents

Types:

```python
from llama_stack.types.memory_banks import DocumentRetrieveResponse
from llama_stack.types.memory import DocumentRetrieveResponse
```

Methods:

- <code title="post /memory_bank/documents/get">client.memory_banks.documents.<a href="./src/llama_stack/resources/memory_banks/documents.py">retrieve</a>(\*\*<a href="src/llama_stack/types/memory_banks/document_retrieve_params.py">params</a>) -> <a href="./src/llama_stack/types/memory_banks/document_retrieve_response.py">DocumentRetrieveResponse</a></code>
- <code title="post /memory_bank/documents/delete">client.memory_banks.documents.<a href="./src/llama_stack/resources/memory_banks/documents.py">delete</a>(\*\*<a href="src/llama_stack/types/memory_banks/document_delete_params.py">params</a>) -> None</code>
- <code title="post /memory/documents/get">client.memory.documents.<a href="./src/llama_stack/resources/memory/documents.py">retrieve</a>(\*\*<a href="src/llama_stack/types/memory/document_retrieve_params.py">params</a>) -> <a href="./src/llama_stack/types/memory/document_retrieve_response.py">DocumentRetrieveResponse</a></code>
- <code title="post /memory/documents/delete">client.memory.documents.<a href="./src/llama_stack/resources/memory/documents.py">delete</a>(\*\*<a href="src/llama_stack/types/memory/document_delete_params.py">params</a>) -> None</code>

# PostTraining

Expand Down Expand Up @@ -309,3 +305,42 @@ Methods:

- <code title="post /batch_inference/chat_completion">client.batch_inference.<a href="./src/llama_stack/resources/batch_inference.py">chat_completion</a>(\*\*<a href="src/llama_stack/types/batch_inference_chat_completion_params.py">params</a>) -> <a href="./src/llama_stack/types/batch_chat_completion.py">BatchChatCompletion</a></code>
- <code title="post /batch_inference/completion">client.batch_inference.<a href="./src/llama_stack/resources/batch_inference.py">completion</a>(\*\*<a href="src/llama_stack/types/batch_inference_completion_params.py">params</a>) -> <a href="./src/llama_stack/types/shared/batch_completion.py">BatchCompletion</a></code>

# Models

Types:

```python
from llama_stack.types import ModelServingSpec
```

Methods:

- <code title="get /models/list">client.models.<a href="./src/llama_stack/resources/models.py">list</a>() -> <a href="./src/llama_stack/types/model_serving_spec.py">ModelServingSpec</a></code>
- <code title="get /models/get">client.models.<a href="./src/llama_stack/resources/models.py">get</a>(\*\*<a href="src/llama_stack/types/model_get_params.py">params</a>) -> <a href="./src/llama_stack/types/model_serving_spec.py">Optional</a></code>

# MemoryBanks

Types:

```python
from llama_stack.types import MemoryBankSpec
```

Methods:

- <code title="get /memory_banks/list">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks.py">list</a>() -> <a href="./src/llama_stack/types/memory_bank_spec.py">MemoryBankSpec</a></code>
- <code title="get /memory_banks/get">client.memory_banks.<a href="./src/llama_stack/resources/memory_banks.py">get</a>(\*\*<a href="src/llama_stack/types/memory_bank_get_params.py">params</a>) -> <a href="./src/llama_stack/types/memory_bank_spec.py">Optional</a></code>

# Shields

Types:

```python
from llama_stack.types import ShieldSpec
```

Methods:

- <code title="get /shields/list">client.shields.<a href="./src/llama_stack/resources/shields.py">list</a>() -> <a href="./src/llama_stack/types/shield_spec.py">ShieldSpec</a></code>
- <code title="get /shields/get">client.shields.<a href="./src/llama_stack/resources/shields.py">get</a>(\*\*<a href="src/llama_stack/types/shield_get_params.py">params</a>) -> <a href="./src/llama_stack/types/shield_spec.py">Optional</a></code>
Loading

0 comments on commit 328904e

Please sign in to comment.