Skip to content

yaml_agent_string() returns the yaml string #610

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 25, 2025

Conversation

yjunechoe
Copy link
Collaborator

@yjunechoe yjunechoe commented Mar 24, 2025

Summary

Resolves #609

Now:

yaml <- create_agent(~ small_table) %>% 
  yaml_agent_string()
#> type: agent
#> tbl: ~small_table
#> tbl_name: ~small_table
#> label: '[2025-03-24|14:54:42]'
#> lang: en
#> locale: en
#> steps: []

yaml
#> [1] "type: agent\ntbl: ~small_table\ntbl_name: ~small_table\nlabel: '[2025-03-24|14:54:42]'\nlang: en\nlocale: en\nsteps: []\n"

cat(yaml)
#> type: agent
#> tbl: ~small_table
#> tbl_name: ~small_table
#> label: '[2025-03-24|14:54:42]'
#> lang: en
#> locale: en
#> steps: []

Previously:

yaml <- create_agent(~ small_table) %>% 
  yaml_agent_string()
#> type: agent
#> tbl: ~small_table
#> tbl_name: ~small_table
#> label: '[2025-03-19|12:30:03]'
#> lang: en
#> locale: en
#> steps: []

yaml
#> NULL

Related GitHub Issues and PRs

Checklist

@rich-iannone rich-iannone self-requested a review March 25, 2025 17:41
Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

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

LGTM!

@yjunechoe yjunechoe merged commit 0457249 into rstudio:main Mar 25, 2025
12 checks passed
@yjunechoe yjunechoe deleted the return-yaml-string branch March 25, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yaml_agent_string() could return the yaml string
2 participants