Skip to content

Commit

Permalink
Update 2024-11-13 (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
friendli-bot and github-actions[bot] authored Nov 13, 2024
1 parent 4ccd697 commit aca9559
Show file tree
Hide file tree
Showing 19 changed files with 310 additions and 26 deletions.
15 changes: 12 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f3669dca-8853-4d85-914e-fb38172139b6
management:
docChecksum: dd967aed72d467e4ea04efdeb61c253c
docChecksum: 706c95d31e48d8a0717a3ed3b67253d9
docVersion: v1
speakeasyVersion: 1.438.1
generationVersion: 2.457.2
releaseVersion: 0.2.30
configChecksum: 529ed5cbe412da8b239f9a2ba654e4c1
releaseVersion: 0.2.31
configChecksum: a95358d9ad3f4fa5b9b72d1eea8dcf24
repoURL: https://github.com/friendliai/friendli-python-internal.git
installationURL: https://github.com/friendliai/friendli-python-internal.git
published: true
Expand Down Expand Up @@ -86,16 +86,20 @@ generatedFiles:
- docs/models/dedicatedtokenizationrequest.md
- docs/models/delta.md
- docs/models/detokenizationresult.md
- docs/models/error.md
- docs/models/event.md
- docs/models/filebuiltintool.md
- docs/models/filebuiltintooltype.md
- docs/models/files.md
- docs/models/function.md
- docs/models/functiontool.md
- docs/models/functiontooltype.md
- docs/models/logitbias.md
- docs/models/logprobs.md
- docs/models/message.md
- docs/models/name.md
- docs/models/object.md
- docs/models/one.md
- docs/models/otherbuiltintool.md
- docs/models/otherbuiltintooltype.md
- docs/models/parameters.md
Expand Down Expand Up @@ -133,6 +137,7 @@ generatedFiles:
- docs/models/serverlesstoolassistedchatstreambodytoolchoiceobject.md
- docs/models/serverlesstoolassistedchatstreambodytoolchoicetype.md
- docs/models/serverlesstoolassistedchatstreamrequest.md
- docs/models/status.md
- docs/models/streamedchatchoice.md
- docs/models/streamedchatchoicefunction.md
- docs/models/streamedchatchoicetoolcalls.md
Expand All @@ -151,6 +156,8 @@ generatedFiles:
- docs/models/tokensequence.md
- docs/models/tool.md
- docs/models/toolassistedchattool.md
- docs/models/toolassistedchattoolstatusevent.md
- docs/models/toolassistedchattoolstatuseventparameters.md
- docs/models/toolcalls.md
- docs/models/toolchoice.md
- docs/models/toolchoicefunction.md
Expand All @@ -160,6 +167,7 @@ generatedFiles:
- docs/models/toolmessagerole.md
- docs/models/tooltype.md
- docs/models/toplogprobs.md
- docs/models/two.md
- docs/models/type.md
- docs/models/usage.md
- docs/models/usermessage.md
Expand Down Expand Up @@ -251,6 +259,7 @@ generatedFiles:
- src/friendli/models/tokensequence.py
- src/friendli/models/tool.py
- src/friendli/models/toolassistedchattool.py
- src/friendli/models/toolassistedchattoolstatusevent.py
- src/friendli/models/toolmessage.py
- src/friendli/models/usage.py
- src/friendli/models/usermessage.py
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
python:
version: 0.2.30
version: 0.2.31
additionalDependencies:
dev: {}
main: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.438.1
sources:
Friendli-API-Schema:
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:3d85808887e7b0ad7e56d83f96b8d0734c19fd2b2883c5f82f3dfc7d63a44ce2
sourceBlobDigest: sha256:85241138e1e03824c52d072a27d00ee1931653cad9fc80dd8968fcbcc7c4de03
sourceRevisionDigest: sha256:d2e0758973f95c0c9d2122eae81e6607a7097a67e1a120f96eddc8cc851b5f77
sourceBlobDigest: sha256:0000377b78e32849a6ca38094f1cb922b40a9f62159ea3982dbb805a7b6b97f3
tags:
- latest
- main
targets:
friendli:
source: Friendli-API-Schema
sourceNamespace: friendli-api-schema
sourceRevisionDigest: sha256:3d85808887e7b0ad7e56d83f96b8d0734c19fd2b2883c5f82f3dfc7d63a44ce2
sourceBlobDigest: sha256:85241138e1e03824c52d072a27d00ee1931653cad9fc80dd8968fcbcc7c4de03
sourceRevisionDigest: sha256:d2e0758973f95c0c9d2122eae81e6607a7097a67e1a120f96eddc8cc851b5f77
sourceBlobDigest: sha256:0000377b78e32849a6ca38094f1cb922b40a9f62159ea3982dbb805a7b6b97f3
codeSamplesNamespace: friendli-api-schema-code-samples
codeSamplesRevisionDigest: sha256:84d7be0a468ed22f8a852863509afe00c5399d1b4d3f875f871b1ad20e517ca9
codeSamplesRevisionDigest: sha256:89b4976734dda6816c8e72e05efc5e0755ba39d3d3112036bf6f5e0542287b2f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ Based on:
### Generated
- [python v0.2.30] .
### Releases
- [PyPI v0.2.30] https://pypi.org/project/friendli/0.2.30 - .
- [PyPI v0.2.30] https://pypi.org/project/friendli/0.2.30 - .

## 2024-11-13 06:56:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.31] .
### Releases
- [PyPI v0.2.31] https://pypi.org/project/friendli/0.2.31 - .
9 changes: 9 additions & 0 deletions docs/models/error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Error


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `type` | *str* | :heavy_check_mark: | The type of error encountered during the tool’s execution. |
| `msg` | *str* | :heavy_check_mark: | The message of error. |
9 changes: 9 additions & 0 deletions docs/models/files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Files


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `name` | *str* | :heavy_check_mark: | The name of the file generated by the tool’s execution. |
| `url` | *str* | :heavy_check_mark: | URL of the file generated by the tool’s execution. |
16 changes: 16 additions & 0 deletions docs/models/name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Name

The name of the built-in tool.


## Values

| Name | Value |
| ------------------------- | ------------------------- |
| `MATH_CALCULATOR` | math:calculator |
| `MATH_STATISTICS` | math:statistics |
| `MATH_CALENDAR` | math:calendar |
| `WEB_SEARCH` | web:search |
| `WEB_URL` | web:url |
| `CODE_PYTHON_INTERPRETER` | code:python-interpreter |
| `FILE_TEXT` | file:text |
8 changes: 8 additions & 0 deletions docs/models/one.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# One


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `data` | [models.StreamedToolAssistedChatResultData](../models/streamedtoolassistedchatresultdata.md) | :heavy_check_mark: | N/A |
13 changes: 13 additions & 0 deletions docs/models/status.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Status

Indicates the current execution status of the tool.


## Values

| Name | Value |
| ---------- | ---------- |
| `STARTED` | STARTED |
| `UPDATING` | UPDATING |
| `ENDED` | ENDED |
| `ERRORED` | ERRORED |
17 changes: 13 additions & 4 deletions docs/models/streamedtoolassistedchatresult.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
A server-sent event containing chat completions content.


## Fields
## Supported Types

### `models.One`

```python
value: models.One = /* values here */
```

### `models.Two`

```python
value: models.Two = /* values here */
```

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `data` | [models.StreamedToolAssistedChatResultData](../models/streamedtoolassistedchatresultdata.md) | :heavy_check_mark: | N/A |
16 changes: 16 additions & 0 deletions docs/models/toolassistedchattoolstatusevent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ToolAssistedChatToolStatusEvent


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `tool_call_id` | *str* | :heavy_check_mark: | The ID of the tool call. |
| `name` | [models.Name](../models/name.md) | :heavy_check_mark: | The name of the built-in tool. |
| `status` | [models.Status](../models/status.md) | :heavy_check_mark: | Indicates the current execution status of the tool. |
| `parameters` | List[[models.ToolAssistedChatToolStatusEventParameters](../models/toolassistedchattoolstatuseventparameters.md)] | :heavy_check_mark: | N/A |
| `result` | *str* | :heavy_check_mark: | The output from the tool’s execution. |
| `timestamp` | *float* | :heavy_check_mark: | The Unix timestamp (in seconds) for when the event occurred. |
| `files` | List[[models.Files](../models/files.md)] | :heavy_minus_sign: | N/A |
| `message` | *Optional[str]* | :heavy_minus_sign: | Message generated by the tool’s execution. |
| `error` | [Optional[models.Error]](../models/error.md) | :heavy_minus_sign: | N/A |
9 changes: 9 additions & 0 deletions docs/models/toolassistedchattoolstatuseventparameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ToolAssistedChatToolStatusEventParameters


## Fields

| Field | Type | Required | Description |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| `name` | *str* | :heavy_check_mark: | The name of the tool’s function parameter. |
| `value` | *str* | :heavy_check_mark: | The value of the tool’s function parameter. |
9 changes: 9 additions & 0 deletions docs/models/two.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Two


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `event` | *Literal["tool_status"]* | :heavy_check_mark: | N/A |
| `data` | [Optional[models.ToolAssistedChatToolStatusEvent]](../models/toolassistedchattoolstatusevent.md) | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "friendli"
version = "0.2.30"
version = "0.2.31"
description = "Python Client SDK Generated by Speakeasy."
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/friendli/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "friendli"
__version__: str = "0.2.30"
__version__: str = "0.2.31"

try:
if __package__ is not None:
Expand Down
Loading

0 comments on commit aca9559

Please sign in to comment.