Skip to content

Commit 9de5708

Browse files
feat(api): manual updates
1 parent 1f42156 commit 9de5708

File tree

8 files changed

+362
-463
lines changed

8 files changed

+362
-463
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 107
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-f252873ea1e1f38fd207331ef2621c511154d5be3f4076e59cc15754fc58eee4.yml
33
openapi_spec_hash: 10cbb4337a06a9fdd7d08612dd6044c3
4-
config_hash: c7d7508716a41fa92482b28d5976c43a
4+
config_hash: 40b8d777e1eb8b6ab05759b663edd2fb

agent_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ func TestAgentNewWithOptionalParams(t *testing.T) {
2929
AgentConfig: shared.AgentConfigParam{
3030
Instructions: "instructions",
3131
Model: "model",
32-
ClientTools: []shared.SharedToolDefParam{{
32+
ClientTools: []llamastackclient.ToolDefParam{{
3333
Name: "name",
3434
Description: llamastackclient.String("description"),
35-
Metadata: map[string]shared.SharedToolDefMetadataUnionParam{
35+
Metadata: map[string]llamastackclient.ToolDefMetadataUnionParam{
3636
"foo": {
3737
OfBool: llamastackclient.Bool(true),
3838
},
3939
},
40-
Parameters: []shared.SharedToolDefParameterParam{{
40+
Parameters: []llamastackclient.ToolDefParameterParam{{
4141
Description: "description",
4242
Name: "name",
4343
ParameterType: "parameter_type",
4444
Required: true,
45-
Default: shared.SharedToolDefParameterDefaultUnionParam{
45+
Default: llamastackclient.ToolDefParameterDefaultUnionParam{
4646
OfBool: llamastackclient.Bool(true),
4747
},
4848
}},

aliases.go

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ type BatchCompletion = shared.BatchCompletion
9494
// This is an alias to an internal type.
9595
type ChatCompletionResponse = shared.ChatCompletionResponse
9696

97-
// Log probabilities for generated tokens.
98-
//
99-
// This is an alias to an internal type.
100-
type ChatCompletionResponseLogprob = shared.ChatCompletionResponseLogprob
101-
10297
// A message containing the model's (assistant) response in a chat conversation.
10398
//
10499
// This is an alias to an internal type.
@@ -493,66 +488,6 @@ type ScoringResultAggregatedResultUnion = shared.ScoringResultAggregatedResultUn
493488
// This is an alias to an internal type.
494489
type ScoringResultScoreRowUnion = shared.ScoringResultScoreRowUnion
495490

496-
// Response from a completion request.
497-
//
498-
// This is an alias to an internal type.
499-
type SharedCompletionResponse = shared.SharedCompletionResponse
500-
501-
// Reason why generation stopped
502-
//
503-
// This is an alias to an internal type.
504-
type SharedCompletionResponseStopReason = shared.SharedCompletionResponseStopReason
505-
506-
// Equals "end_of_turn"
507-
const SharedCompletionResponseStopReasonEndOfTurn = shared.SharedCompletionResponseStopReasonEndOfTurn
508-
509-
// Equals "end_of_message"
510-
const SharedCompletionResponseStopReasonEndOfMessage = shared.SharedCompletionResponseStopReasonEndOfMessage
511-
512-
// Equals "out_of_tokens"
513-
const SharedCompletionResponseStopReasonOutOfTokens = shared.SharedCompletionResponseStopReasonOutOfTokens
514-
515-
// Log probabilities for generated tokens.
516-
//
517-
// This is an alias to an internal type.
518-
type SharedCompletionResponseLogprob = shared.SharedCompletionResponseLogprob
519-
520-
// Tool definition used in runtime contexts.
521-
//
522-
// This is an alias to an internal type.
523-
type SharedToolDef = shared.SharedToolDef
524-
525-
// This is an alias to an internal type.
526-
type SharedToolDefMetadataUnion = shared.SharedToolDefMetadataUnion
527-
528-
// Parameter definition for a tool.
529-
//
530-
// This is an alias to an internal type.
531-
type SharedToolDefParameter = shared.SharedToolDefParameter
532-
533-
// (Optional) Default value for the parameter if not provided
534-
//
535-
// This is an alias to an internal type.
536-
type SharedToolDefParameterDefaultUnion = shared.SharedToolDefParameterDefaultUnion
537-
538-
// Tool definition used in runtime contexts.
539-
//
540-
// This is an alias to an internal type.
541-
type SharedToolDefParam = shared.SharedToolDefParam
542-
543-
// This is an alias to an internal type.
544-
type SharedToolDefMetadataUnionParam = shared.SharedToolDefMetadataUnionParam
545-
546-
// Parameter definition for a tool.
547-
//
548-
// This is an alias to an internal type.
549-
type SharedToolDefParameterParam = shared.SharedToolDefParameterParam
550-
551-
// (Optional) Default value for the parameter if not provided
552-
//
553-
// This is an alias to an internal type.
554-
type SharedToolDefParameterDefaultUnionParam = shared.SharedToolDefParameterDefaultUnionParam
555-
556491
// A system message providing instructions or context to the model.
557492
//
558493
// This is an alias to an internal type.

api.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#QueryGeneratorConfigUnionParam">QueryGeneratorConfigUnionParam</a>
1111
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ResponseFormatUnionParam">ResponseFormatUnionParam</a>
1212
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SamplingParams">SamplingParams</a>
13-
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SharedToolDefParam">SharedToolDefParam</a>
1413
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SystemMessageParam">SystemMessageParam</a>
1514
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ToolCallParam">ToolCallParam</a>
1615
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ToolParamDefinition">ToolParamDefinition</a>
@@ -32,8 +31,6 @@
3231
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SafetyViolation">SafetyViolation</a>
3332
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SamplingParamsResp">SamplingParamsResp</a>
3433
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ScoringResult">ScoringResult</a>
35-
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SharedCompletionResponse">SharedCompletionResponse</a>
36-
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SharedToolDef">SharedToolDef</a>
3734
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ToolCall">ToolCall</a>
3835
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ToolResponseMessage">ToolResponseMessage</a>
3936
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#UserMessage">UserMessage</a>
@@ -66,14 +63,19 @@ Methods:
6663

6764
# ToolRuntime
6865

66+
Params Types:
67+
68+
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolDefParam">ToolDefParam</a>
69+
6970
Response Types:
7071

72+
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolDef">ToolDef</a>
7173
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolInvocationResult">ToolInvocationResult</a>
7274

7375
Methods:
7476

7577
- <code title="post /v1/tool-runtime/invoke">client.ToolRuntime.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolRuntimeService.InvokeTool">InvokeTool</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolRuntimeInvokeToolParams">ToolRuntimeInvokeToolParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolInvocationResult">ToolInvocationResult</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
76-
- <code title="get /v1/tool-runtime/list-tools">client.ToolRuntime.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolRuntimeService.ListTools">ListTools</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolRuntimeListToolsParams">ToolRuntimeListToolsParams</a>) ([]<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SharedToolDef">SharedToolDef</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
78+
- <code title="get /v1/tool-runtime/list-tools">client.ToolRuntime.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolRuntimeService.ListTools">ListTools</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolRuntimeListToolsParams">ToolRuntimeListToolsParams</a>) ([]<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ToolDef">ToolDef</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
7779

7880
## RagTool
7981

@@ -234,15 +236,17 @@ Methods:
234236
Response Types:
235237

236238
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#ChatCompletionResponseStreamChunk">ChatCompletionResponseStreamChunk</a>
239+
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#CompletionResponse">CompletionResponse</a>
237240
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#EmbeddingsResponse">EmbeddingsResponse</a>
241+
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#TokenLogProbs">TokenLogProbs</a>
238242
- <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceBatchChatCompletionResponse">InferenceBatchChatCompletionResponse</a>
239243

240244
Methods:
241245

242246
- <code title="post /v1/inference/batch-chat-completion">client.Inference.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceService.BatchChatCompletion">BatchChatCompletion</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceBatchChatCompletionParams">InferenceBatchChatCompletionParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceBatchChatCompletionResponse">InferenceBatchChatCompletionResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
243247
- <code title="post /v1/inference/batch-completion">client.Inference.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceService.BatchCompletion">BatchCompletion</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceBatchCompletionParams">InferenceBatchCompletionParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#BatchCompletion">BatchCompletion</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
244248
- <code title="post /v1/inference/chat-completion">client.Inference.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceService.ChatCompletion">ChatCompletion</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceChatCompletionParams">InferenceChatCompletionParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#ChatCompletionResponse">ChatCompletionResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
245-
- <code title="post /v1/inference/completion">client.Inference.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceService.Completion">Completion</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceCompletionParams">InferenceCompletionParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared">shared</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go/shared#SharedCompletionResponse">SharedCompletionResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
249+
- <code title="post /v1/inference/completion">client.Inference.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceService.Completion">Completion</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceCompletionParams">InferenceCompletionParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#CompletionResponse">CompletionResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
246250
- <code title="post /v1/inference/embeddings">client.Inference.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceService.Embeddings">Embeddings</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#InferenceEmbeddingsParams">InferenceEmbeddingsParams</a>) (<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go">llamastackclient</a>.<a href="https://pkg.go.dev/github.com/llamastack/llama-stack-client-go#EmbeddingsResponse">EmbeddingsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
247251

248252
# Embeddings

0 commit comments

Comments
 (0)