Create your first autonomous agent using the Anthropic CLI and curl.
| Concept | Description |
|---|---|
| Agent | The model, system prompt, tools, MCP servers, and skills |
| Environment | A configured container template (packages, network access) |
| require(MTS) | |
| # random walk | |
| walk <- function(m){ | |
| steps <- rbinom(m, 1, 0.5)*2 - 1 | |
| res <- c(0) | |
| for (i in 1:length(steps)) { | |
| res <- c(res, res[length(res)] + steps[i]) | |
| } | |
| res | |
| } |
| install.packages('plotly') | |
| library(plotly) | |
| # check if a matrix is invertable | |
| invertable <- function(m) class(try(solve(m),silent=T)) == "matrix" | |
| # generate the pdf function of multivariate gaussian | |
| dmg.generator <- function(lambda = c(1, 1), b = c(0, 0), A = diag(2)) { | |
| n <- length(lambda) | |
| # check for dimensions |