Skip to content

Creating an agent on a duckdb table fails interactively #658

@hfrick

Description

@hfrick

Following on from https://github.com/rstudio/pointblank/pull/642/files/6b0bd4a66c50c8d306d50a78a7394cc6ad740196#r2301596683.

Creating an agent on a duckdb table works when rendering the vignette, fails in interactive use - and works when sending it through reprex() so here is just the code snippet.

library(pointblank)
library(duckdb)

sales <- dplyr::tibble(
  amount = c(100, 200, 300),
  customer_name = c("Alice", "Bianca", "Charlie"),
  sale_date = as.POSIXct(c("2023-01-01", "2023-01-02", "2023-01-03"))
)

con <- dbConnect(duckdb())

dbWriteTable(con, "sales_data", sales)
sales_db <- dplyr::tbl(con, "sales_data")

agent <- create_agent(sales_db) 

dbDisconnect(con)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions