Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(coderd): update aitasks.go to leverage agentapi-sdk-go#20159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 2 commits intomainfromcj/agentapi-sdk-go
Oct 3, 2025

Conversation

johnstcn
Copy link
Member

I only recently became aware of the existence ofagentapi-sdk-go. Updatesaitasks.go to make use of it.

Copy link
Contributor

@DanielleMaywoodDanielleMaywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Much better:shipit:

// {"$schema":"http://localhost:3284/schemas/ErrorModel.json","title":"Unprocessable Entity","status":422,"detail":"validation failed","errors":[{"location":"body.type","value":"oof"}]}
varrespBodymap[string]any
iferr:=json.NewDecoder(resp.Body).Decode(&respBody);err!=nil {
ifstatusResp.Status!="stable" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
ifstatusResp.Status!="stable" {
ifstatusResp.Status!=aiagentapi.StatusStable {

Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice find! (Minor nits/comments inline)

@johnstcnjohnstcn merged commite1619da intomainOct 3, 2025
30 checks passed
@johnstcnjohnstcn deleted the cj/agentapi-sdk-go branchOctober 3, 2025 09:17
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 3, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@johnstcn@mafredri@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp