cloudwego / cloudwego/eino-ext

Recognize UUID as a string type

Open
#955 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
811
Forks
368
Avg merge
16h 22m
Merged PRs (30d)
13

Description

**Is your feature request related to a problem? Please describe.**

I can't gracefully populate a UUID-type field when using Eino Dev,because it is recognized as an int type.

**Describe the solution you'd like**

Can we add some tag controllers?

**Describe alternatives you've considered**
like:

```go
type Input struct {
Id uuid.UUID `json:"customer_id,string"`
}
```

or:

```go
type Input struct {
Id uuid.UUID `json:"customer_id" eino:"string"`
}
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the Eino Dev type-recognition and tag-handling logic that classifies uuid.UUID, then compare it with the existing int and string handling. The issue's examples show the intended inputs; done means UUID fields can be populated as strings through the supported tag or type behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.