Procházet zdrojové kódy

docs: add some package-level GoDoc comments

Co-authored-by: Justin Johnson <[email protected]>
Christian Rocha před 3 měsíci
rodič
revize
c84de0507c
3 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 1 1
      CRUSH.md
  2. 8 1
      internal/agent/agent.go
  3. 2 0
      internal/app/app.go

+ 1 - 1
CRUSH.md

@@ -62,7 +62,7 @@ func TestYourFunction(t *testing.T) {
 
 ## Comments
 
-- Comments that live one their own lines should start with capital letters and
+- Comments that live on their own lines should start with capital letters and
   end with periods. Wrap comments at 78 columns.
 
 ## Committing

+ 8 - 1
internal/agent/agent.go

@@ -1,3 +1,10 @@
+// Package agent is the core orchestration layer for Crush AI agents.
+//
+// It provides session-based AI agent functionality for managing
+// conversations, tool execution, and message handling. It coordinates
+// interactions between language models, messages, sessions, and tools while
+// handling features like automatic summarization, queuing, and token
+// management.
 package agent
 
 import (
@@ -131,7 +138,7 @@ func (a *sessionAgent) Run(ctx context.Context, call SessionAgentCall) (*fantasy
 	}
 
 	if len(a.tools) > 0 {
-		// Add anthropic caching to the last tool.
+		// Add Anthropic caching to the last tool.
 		a.tools[len(a.tools)-1].SetProviderOptions(a.getCacheControlOptions())
 	}
 

+ 2 - 0
internal/app/app.go

@@ -1,3 +1,5 @@
+// Package app wires together services, coordinates agents, and manages
+// application lifecycle.
 package app
 
 import (