Skip to content

Commit 85d523a

Browse files
feat(api): manual updates
1 parent 3cf935f commit 85d523a

File tree

10 files changed

+496
-421
lines changed

10 files changed

+496
-421
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: 106
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-4f6633567c1a079df49d0cf58f37251a4bb0ee2f2a496ac83c9fee26eb325f9c.yml
33
openapi_spec_hash: af5b3d3bbecf48f15c90b982ccac852e
4-
config_hash: e67fd054e95c1e82f78f4b834e96bb65
4+
config_hash: ddcbd66d7ac80290da208232a746e30f

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: []llamastackclient.ToolDefParam{{
32+
ClientTools: []shared.SharedToolDefParam{{
3333
Name: "name",
3434
Description: llamastackclient.String("description"),
35-
Metadata: map[string]llamastackclient.ToolDefMetadataUnionParam{
35+
Metadata: map[string]shared.SharedToolDefMetadataUnionParam{
3636
"foo": {
3737
OfBool: llamastackclient.Bool(true),
3838
},
3939
},
40-
Parameters: []llamastackclient.ToolDefParameterParam{{
40+
Parameters: []shared.SharedToolDefParameterParam{{
4141
Description: "description",
4242
Name: "name",
4343
ParameterType: "parameter_type",
4444
Required: true,
45-
Default: llamastackclient.ToolDefParameterDefaultUnionParam{
45+
Default: shared.SharedToolDefParameterDefaultUnionParam{
4646
OfBool: llamastackclient.Bool(true),
4747
},
4848
}},

aliases.go

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ 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+
97102
// A metric value included in API responses.
98103
//
99104
// This is an alias to an internal type.
@@ -522,6 +527,71 @@ type ScoringResultAggregatedResultUnion = shared.ScoringResultAggregatedResultUn
522527
// This is an alias to an internal type.
523528
type ScoringResultScoreRowUnion = shared.ScoringResultScoreRowUnion
524529

530+
// Response from a completion request.
531+
//
532+
// This is an alias to an internal type.
533+
type SharedCompletionResponse = shared.SharedCompletionResponse
534+
535+
// Reason why generation stopped
536+
//
537+
// This is an alias to an internal type.
538+
type SharedCompletionResponseStopReason = shared.SharedCompletionResponseStopReason
539+
540+
// Equals "end_of_turn"
541+
const SharedCompletionResponseStopReasonEndOfTurn = shared.SharedCompletionResponseStopReasonEndOfTurn
542+
543+
// Equals "end_of_message"
544+
const SharedCompletionResponseStopReasonEndOfMessage = shared.SharedCompletionResponseStopReasonEndOfMessage
545+
546+
// Equals "out_of_tokens"
547+
const SharedCompletionResponseStopReasonOutOfTokens = shared.SharedCompletionResponseStopReasonOutOfTokens
548+
549+
// Log probabilities for generated tokens.
550+
//
551+
// This is an alias to an internal type.
552+
type SharedCompletionResponseLogprob = shared.SharedCompletionResponseLogprob
553+
554+
// A metric value included in API responses.
555+
//
556+
// This is an alias to an internal type.
557+
type SharedCompletionResponseMetric = shared.SharedCompletionResponseMetric
558+
559+
// Tool definition used in runtime contexts.
560+
//
561+
// This is an alias to an internal type.
562+
type SharedToolDef = shared.SharedToolDef
563+
564+
// This is an alias to an internal type.
565+
type SharedToolDefMetadataUnion = shared.SharedToolDefMetadataUnion
566+
567+
// Parameter definition for a tool.
568+
//
569+
// This is an alias to an internal type.
570+
type SharedToolDefParameter = shared.SharedToolDefParameter
571+
572+
// (Optional) Default value for the parameter if not provided
573+
//
574+
// This is an alias to an internal type.
575+
type SharedToolDefParameterDefaultUnion = shared.SharedToolDefParameterDefaultUnion
576+
577+
// Tool definition used in runtime contexts.
578+
//
579+
// This is an alias to an internal type.
580+
type SharedToolDefParam = shared.SharedToolDefParam
581+
582+
// This is an alias to an internal type.
583+
type SharedToolDefMetadataUnionParam = shared.SharedToolDefMetadataUnionParam
584+
585+
// Parameter definition for a tool.
586+
//
587+
// This is an alias to an internal type.
588+
type SharedToolDefParameterParam = shared.SharedToolDefParameterParam
589+
590+
// (Optional) Default value for the parameter if not provided
591+
//
592+
// This is an alias to an internal type.
593+
type SharedToolDefParameterDefaultUnionParam = shared.SharedToolDefParameterDefaultUnionParam
594+
525595
// A system message providing instructions or context to the model.
526596
//
527597
// This is an alias to an internal type.

api.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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#ReturnTypeParam">ReturnTypeParam</a>
1313
- <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>
14+
- <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>
1415
- <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>
1516
- <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>
1617
- <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,6 +33,8 @@
3233
- <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>
3334
- <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>
3435
- <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>
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#SharedCompletionResponse">SharedCompletionResponse</a>
37+
- <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>
3538
- <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>
3639
- <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#ToolCallOrStringUnion">ToolCallOrStringUnion</a>
3740
- <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>
@@ -65,19 +68,14 @@ Methods:
6568

6669
# ToolRuntime
6770

68-
Params Types:
69-
70-
- <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>
71-
7271
Response Types:
7372

74-
- <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>
7573
- <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>
7674

7775
Methods:
7876

7977
- <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>
80-
- <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>
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/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>
8179

8280
## RagTool
8381

@@ -238,17 +236,15 @@ Methods:
238236
Response Types:
239237

240238
- <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>
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#CompletionResponse">CompletionResponse</a>
242239
- <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>
243-
- <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>
244240
- <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>
245241

246242
Methods:
247243

248244
- <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>
249245
- <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>
250246
- <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>
251-
- <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>
247+
- <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>
252248
- <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>
253249

254250
# Embeddings

0 commit comments

Comments
 (0)