on main help sign in
docs: add some package-level GoDoc comments
c84de05Christian Rocha
CRUSH.md+1−1
@@ -62,7 +62,7 @@ func TestYourFunction(t *testing.T) {
62
62
63## Comments
63## Comments
64
64
65−- Comments that live one their own lines should start with capital letters and
65+- Comments that live on their own lines should start with capital letters and
66 end with periods. Wrap comments at 78 columns.
66 end with periods. Wrap comments at 78 columns.
67
67
68## Committing
68## Committing
internal/agent/agent.go+8−1
@@ -1,3 +1,10 @@
1+// Package agent is the core orchestration layer for Crush AI agents.
2+//
3+// It provides session-based AI agent functionality for managing
4+// conversations, tool execution, and message handling. It coordinates
5+// interactions between language models, messages, sessions, and tools while
6+// handling features like automatic summarization, queuing, and token
7+// management.
1package agent
8package agent
2
9
3import (
10import (
@@ -131,7 +138,7 @@ func (a *sessionAgent) Run(ctx context.Context, call SessionAgentCall) (*fantasy
131 }
138 }
132
139
133 if len(a.tools) > 0 {
140 if len(a.tools) > 0 {
134− // Add anthropic caching to the last tool.
141+ // Add Anthropic caching to the last tool.
135 a.tools[len(a.tools)-1].SetProviderOptions(a.getCacheControlOptions())
142 a.tools[len(a.tools)-1].SetProviderOptions(a.getCacheControlOptions())
136 }
143 }
137
144
internal/app/app.go+2
@@ -1,3 +1,5 @@
1+// Package app wires together services, coordinates agents, and manages
2+// application lifecycle.
1package app
3package app
2
4
3import (
5import (