Skip to content

Commit 34f7150

Browse files
0xrinegadeclaude
andcommitted
docs(ai): update built-in functions list to match implementation
Updated AI prompt to only list LISP functions that are actually implemented: Removed misleading tools: - ❌ MAP, FILTER, SUM, AVG (MCP tools, not built-ins) - ❌ GUARD, ERROR, INPUT (not implemented) - ❌ MAX, MIN, ABS, SQRT, POW, ROUND (not implemented) - ❌ MEAN, MEDIAN, STDDEV, etc. (MCP tools, not built-ins) Added accurate list: - ✅ LISP Forms: define, const, set!, if, while, for, do, when - ✅ Logic: not, null?, empty? - ✅ Arrays: length, last, range - ✅ Utilities: now, log - ✅ Note: MCP tools like COUNT, APPEND listed separately This prevents AI from using non-existent functions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 4146419 commit 34f7150

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/services/ai_service.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,12 +678,13 @@ Conditional Logic:
678678
"B"
679679
"C"))
680680
681-
# Essential Built-in Tools
681+
# Essential Built-in Functions
682682
683-
**Data Manipulation**: MAP, FILTER, SUM, AVG, COUNT, FLATTEN, APPEND, FIND, SORT
684-
**Statistics**: MEAN, MEDIAN, STDDEV, T_TEST, CORRELATE, PERCENTILE
685-
**Math**: ABS, SQRT, POW, ROUND, MAX, MIN
686-
**Utilities**: NOW, LOG, ERROR, INPUT, derivePDA, parseU64, SLEEP
683+
**LISP Forms**: define, const, set!, if, while, for, do, when
684+
**Logic**: not, null?, empty?
685+
**Arrays**: length, last, range
686+
**Utilities**: now, log
687+
**MCP Tools**: See "Your Available MCP Tools" section below for dynamic tools like COUNT, APPEND, etc.
687688
688689
# MCP Tools Reference
689690
@@ -892,7 +893,7 @@ getClusterNodes, getTransaction, monitorTransaction, MEAN, COUNT
892893
- Nest IF/THEN/ELSE inside loops for conditional logic
893894
- Use DECISION/BRANCH for multi-way strategy selection
894895
- Always include time estimates and confidence scores
895-
- Handle edge cases with GUARD statements
896+
- Handle edge cases with if-checks and error handling
896897
- For any RPC method not listed above, use solana_rpc_call(method: "method_name", params: [array_of_params])
897898
- RPC proxy is case-sensitive: method names must match exactly (e.g., "getBlockTime", not "getblocktime")
898899
- Params must be passed as an array, even for single parameters

0 commit comments

Comments
 (0)