Skip to content

Commit eb026fe

Browse files
committed
feat: openapi tool
1 parent 852c8dd commit eb026fe

File tree

12 files changed

+2214
-110
lines changed

12 files changed

+2214
-110
lines changed

examples/go.mod

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module trpc.group/trpc-go/trpc-agent-go/examples
22

3-
go 1.23.0
3+
go 1.24.6
44

55
replace (
66
trpc.group/trpc-go/trpc-agent-go => ../
@@ -19,28 +19,31 @@ replace (
1919
trpc.group/trpc-go/trpc-agent-go/storage/tcvector => ../storage/tcvector
2020
trpc.group/trpc-go/trpc-agent-go/tool/arxivsearch => ../tool/arxivsearch
2121
trpc.group/trpc-go/trpc-agent-go/tool/google => ../tool/google
22+
trpc.group/trpc-go/trpc-agent-go/tool/openapi => ../tool/openapi
2223
)
2324

2425
require (
26+
github.com/getkin/kin-openapi v0.133.0
2527
github.com/google/uuid v1.6.0
2628
github.com/mattn/go-sqlite3 v1.14.32
2729
github.com/openai/openai-go v1.12.0
2830
go.opentelemetry.io/otel v1.38.0
2931
go.opentelemetry.io/otel/metric v1.38.0
3032
go.opentelemetry.io/otel/trace v1.38.0
3133
go.uber.org/zap v1.27.0
32-
trpc.group/trpc-go/trpc-a2a-go v0.2.5-0.20251023030722-7f02b57fd14a
34+
trpc.group/trpc-go/trpc-a2a-go v0.2.5
3335
trpc.group/trpc-go/trpc-agent-go v0.4.0
3436
trpc.group/trpc-go/trpc-agent-go/codeexecutor/container v0.4.0
35-
trpc.group/trpc-go/trpc-agent-go/codeexecutor/jupyter v0.0.0-00010101000000-000000000000
37+
trpc.group/trpc-go/trpc-agent-go/codeexecutor/jupyter v0.0.0-20251111082011-79f521f76893
38+
trpc.group/trpc-go/trpc-agent-go/tool/openapi v0.0.0-00010101000000-000000000000
3639
trpc.group/trpc-go/trpc-mcp-go v0.0.10
3740
)
3841

3942
require (
4043
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
4144
github.com/Microsoft/go-winio v0.4.14 // indirect
4245
github.com/bmatcuk/doublestar/v4 v4.9.1 // indirect
43-
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
46+
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
4447
github.com/containerd/errdefs v1.0.0 // indirect
4548
github.com/containerd/errdefs/pkg v0.3.0 // indirect
4649
github.com/containerd/log v0.1.0 // indirect
@@ -50,70 +53,69 @@ require (
5053
github.com/docker/go-connections v0.5.0 // indirect
5154
github.com/docker/go-units v0.5.0 // indirect
5255
github.com/felixge/httpsnoop v1.0.4 // indirect
53-
github.com/getkin/kin-openapi v0.124.0 // indirect
5456
github.com/go-logr/logr v1.4.3 // indirect
5557
github.com/go-logr/stdr v1.2.2 // indirect
56-
github.com/go-openapi/jsonpointer v0.20.2 // indirect
57-
github.com/go-openapi/swag v0.22.8 // indirect
58-
github.com/goccy/go-json v0.10.3 // indirect
59-
github.com/golang-jwt/jwt/v5 v5.2.3 // indirect
58+
github.com/go-openapi/jsonpointer v0.22.1 // indirect
59+
github.com/go-openapi/swag/jsonname v0.25.1 // indirect
60+
github.com/goccy/go-json v0.10.5 // indirect
61+
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
6062
github.com/gorilla/mux v1.8.1 // indirect
6163
github.com/gorilla/websocket v1.5.3 // indirect
62-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
64+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect
6365
github.com/hashicorp/errwrap v1.1.0 // indirect
6466
github.com/hashicorp/go-multierror v1.1.1 // indirect
65-
github.com/invopop/yaml v0.2.0 // indirect
6667
github.com/josharian/intern v1.0.0 // indirect
6768
github.com/klauspost/compress v1.18.0 // indirect
68-
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
69+
github.com/lestrrat-go/blackmagic v1.0.4 // indirect
6970
github.com/lestrrat-go/httpcc v1.0.1 // indirect
7071
github.com/lestrrat-go/httprc v1.0.6 // indirect
7172
github.com/lestrrat-go/iter v1.0.2 // indirect
72-
github.com/lestrrat-go/jwx/v2 v2.1.4 // indirect
73+
github.com/lestrrat-go/jwx/v2 v2.1.6 // indirect
7374
github.com/lestrrat-go/option v1.0.1 // indirect
74-
github.com/mailru/easyjson v0.9.0 // indirect
75+
github.com/mailru/easyjson v0.9.1 // indirect
7576
github.com/moby/docker-image-spec v1.3.1 // indirect
7677
github.com/moby/go-archive v0.1.0 // indirect
7778
github.com/moby/patternmatcher v0.6.0 // indirect
7879
github.com/moby/sys/sequential v0.6.0 // indirect
7980
github.com/moby/sys/user v0.4.0 // indirect
8081
github.com/moby/sys/userns v0.1.0 // indirect
8182
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
83+
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect
84+
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect
8285
github.com/opencontainers/go-digest v1.0.0 // indirect
8386
github.com/opencontainers/image-spec v1.0.2 // indirect
84-
github.com/panjf2000/ants/v2 v2.10.0 // indirect
87+
github.com/panjf2000/ants/v2 v2.11.3 // indirect
8588
github.com/perimeterx/marshmallow v1.1.5 // indirect
8689
github.com/pkg/errors v0.9.1 // indirect
8790
github.com/rs/cors v1.11.1 // indirect
88-
github.com/segmentio/asm v1.2.0 // indirect
91+
github.com/segmentio/asm v1.2.1 // indirect
8992
github.com/sirupsen/logrus v1.9.3 // indirect
9093
github.com/spaolacci/murmur3 v1.1.0 // indirect
91-
github.com/tidwall/gjson v1.14.4 // indirect
92-
github.com/tidwall/match v1.1.1 // indirect
94+
github.com/tidwall/gjson v1.18.0 // indirect
95+
github.com/tidwall/match v1.2.0 // indirect
9396
github.com/tidwall/pretty v1.2.1 // indirect
9497
github.com/tidwall/sjson v1.2.5 // indirect
98+
github.com/woodsbury/decimal128 v1.3.0 // indirect
9599
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
96100
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
97101
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
98-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
99-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0 // indirect
100-
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0 // indirect
101-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0 // indirect
102-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0 // indirect
103-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0 // indirect
102+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.38.0 // indirect
103+
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.38.0 // indirect
104+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.38.0 // indirect
105+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.38.0 // indirect
106+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.38.0 // indirect
104107
go.opentelemetry.io/otel/sdk v1.38.0 // indirect
105108
go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect
106-
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
107-
go.uber.org/multierr v1.10.0 // indirect
108-
golang.org/x/crypto v0.32.0 // indirect
109-
golang.org/x/net v0.34.0 // indirect
110-
golang.org/x/oauth2 v0.26.0 // indirect
111-
golang.org/x/sync v0.10.0 // indirect
112-
golang.org/x/sys v0.35.0 // indirect
113-
golang.org/x/text v0.21.0 // indirect
114-
google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect
115-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
116-
google.golang.org/grpc v1.67.0 // indirect
117-
google.golang.org/protobuf v1.34.2 // indirect
118-
gopkg.in/yaml.v3 v3.0.1 // indirect
109+
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
110+
go.uber.org/multierr v1.11.0 // indirect
111+
golang.org/x/crypto v0.43.0 // indirect
112+
golang.org/x/net v0.46.0 // indirect
113+
golang.org/x/oauth2 v0.33.0 // indirect
114+
golang.org/x/sync v0.18.0 // indirect
115+
golang.org/x/sys v0.38.0 // indirect
116+
golang.org/x/text v0.30.0 // indirect
117+
google.golang.org/genproto/googleapis/api v0.0.0-20251110190251-83f479183930 // indirect
118+
google.golang.org/genproto/googleapis/rpc v0.0.0-20251110190251-83f479183930 // indirect
119+
google.golang.org/grpc v1.76.0 // indirect
120+
google.golang.org/protobuf v1.36.10 // indirect
119121
)

0 commit comments

Comments
 (0)