altaidevorg/rules-for-ai

Tutorials are for humans, rules are for AI!

2Stars on the repository
29Mods indexed here, across every type
1y agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

cursorrules

01

altaidevorg/rules-for-ai

Cursor rule Cursor

Cursor rule "cursorrules" from altaidevorg/rules-for-ai, covering agentic coding: humans design, agents code!, agentic coding steps, example llm project file structure, pocket flow and core abstraction.

2 1y ago A 0 tokens copy · 100% MIT

altaidevorg/rules-for-ai

Cursor rule

Flax NNX Filters (filterlib) for selecting Variables in Modules/State using types, tags, paths, predicates, and logical combinations.

2 1y ago A 29 tokens original MIT

nnx_module

07

altaidevorg/rules-for-ai

Cursor rule

Explains the core Flax NNX abstraction nnx.Module for defining neural network components as stateful Python classes.

2 1y ago A 3,606 tokens original MIT

nnx_optimizer

08

altaidevorg/rules-for-ai

Cursor rule

Explains Flax NNX nnx.Optimizer for managing Module, Optax state, and optimizer updates in training loops.

2 1y ago A 0 tokens original MIT

nnx_rngs

09

altaidevorg/rules-for-ai

Cursor rule

Details Flax NNX nnx.Rngs for managing PRNG keys within Modules, explaining streams, key generation, and state management.

2 1y ago A 28 tokens original MIT

altaidevorg/rules-for-ai

Cursor rule

Tutorial chapter for google-adk's Agent (BaseAgent / LlmAgent), detailing the core agent abstraction, its structure, hierarchy, and the LLM-powered implementation.

2 1y ago A 4,096 tokens original MIT

basellm

12

altaidevorg/rules-for-ai

Cursor rule

In the previous chapter, we learned how Event objects capture the history of interactions within a session. Many of these events, particularly agent responses and decisions to use tools, originate from interactions with a Large Language Model (LLM). This chapter introduces BaseLlm, the core abstraction in google-adk…

2 1y ago A 0 tokens original MIT

basellmflow

13

altaidevorg/rules-for-ai

Cursor rule

Details google-adk's BaseLlmFlow, the core engine orchestrating LLM interactions, processors, tool calls, and agent transfers for LlmAgent.

2 1y ago A 0 tokens original MIT

event

14

altaidevorg/rules-for-ai

Cursor rule

Details google-adk's Event object, representing interaction units with author, content, actions, and metadata within a Session.

2 1y ago A 0 tokens original MIT

invocationcontext

15

altaidevorg/rules-for-ai

Cursor rule

In the previous chapter, we explored BaseLlmFlow, the engine that orchestrates the complex interaction between an Agent (BaseAgent / LlmAgent) and the BaseLlm, especially when handling Tools (BaseTool). We saw that the flow logic often needs access to the current session, services, agent configuration, and more.…

2 1y ago A 0 tokens original MIT

runner

16

altaidevorg/rules-for-ai

Cursor rule

Tutorial chapter for google-adk's Runner, detailing its role in orchestrating agent execution, managing sessions, artifacts, memory, and selecting agents.

2 1y ago A 3,155 tokens original MIT

state

18

altaidevorg/rules-for-ai

Cursor rule

Details google-adk's State object for managing session state with scopes and delta tracking.

2 1y ago A 0 tokens original MIT

tool__basetool_

19

altaidevorg/rules-for-ai

Cursor rule

In the previous chapter, we explored BaseLlm, the abstraction enabling agents to leverage the generative power of Large Language Models. However, LLMs alone have limitations – their knowledge is often frozen in time, and they cannot directly interact with the outside world or execute specific tasks beyond text…

2 1y ago A 0 tokens original MIT

toolcontext

20

altaidevorg/rules-for-ai

Cursor rule

In the previous chapter, we learned about InvocationContext, the object encapsulating all necessary information for a single agent turn. While components like callbacks receive a CallbackContext that wraps InvocationContext and provides delta-aware state access, Tools (BaseTool) require slightly more specific…

2 1y ago A 0 tokens original MIT

apierror

22

altaidevorg/rules-for-ai

Cursor rule

Details google-genai's APIError, the base exception for API service errors, parsing code, message, status from non-200 HTTP responses.

2 1y ago A 0 tokens original MIT

baseapiclient

23

altaidevorg/rules-for-ai

Cursor rule

Details the internal google-genai BaseApiClient, the core component for HTTP communication, auth, and endpoint handling.

2 1y ago A 0 tokens original MIT

chat___asyncchat

24

altaidevorg/rules-for-ai

Cursor rule

Explains google-genai Chat/AsyncChat classes, stateful wrappers for managing multi-turn conversation history with generative models.

2 1y ago A 25 tokens original MIT