This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ====================================================================== | |
| ;; File: simple_agent.clj | |
| ;; Title: De-mystifying Agentic AI: Building a Minimal Agent Engine from Scratch with Clojure | |
| ;; Author: Seref R. Ayar | |
| ;; Article: https://serefayar.substack.com/p/minimal-agent-engine-from-scratch-with-clojure | |
| ;; | |
| ;; ====================================================================== | |
| (add-lib 'clj-http/clj-http {:mvn/version "3.12.3"}) | |
| (add-lib 'metosin/jsonista {:mvn/version "0.3.7"}) | |
| (add-lib 'metosin/malli {:mvn/version "0.13.0"}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::io; | |
| use std::num::ParseFloatError; | |
| use std::rc::Rc; | |
| /* | |
| Types | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ tr -d '[:blank:]' < CSV_FILE > CSV_FILE_TRIMMED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require '[yaas-clj.product :as product]) | |
| (product/get-products :fields [:code :name :description] | |
| :sort {:name.en :asc}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require '[yaas-clj :as yaas]) | |
| (yaas/init! {:client-id "<CLIENT_ID>" | |
| :client-secret "<CLIENT_SECRET>" | |
| :scope "<SCOPE>" | |
| :project-id "<PROJECT_ID>"}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git freshen/languages.yml freshen/languages.yml | |
| index 50d85dd..082bb91 100644 | |
| --- freshen/languages.yml | |
| +++ freshen/languages.yml | |
| @@ -503,6 +503,22 @@ | |
| and: A | |
| but: Ale | |
| space_after_keyword: true | |
| +"tr": | |
| + name: Turkish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 817949288af387726a08a2eb77db1b2365f3ec9a Mon Sep 17 00:00:00 2001 | |
| From: =?UTF-8?q?=C5=9Eeref=20R.=20Ayar?= <serefayar@gmail.com> | |
| Date: Sun, 25 Sep 2011 22:16:49 +0300 | |
| Subject: [PATCH] adding translation for turkish | |
| --- | |
| lettuce/languages.py | 11 +++++++++++ | |
| 1 files changed, 11 insertions(+), 0 deletions(-) | |
| diff --git a/lettuce/languages.py b/lettuce/languages.py |