MCPcopy Create free account
hub / github.com/astercloud/aster / generateLongPrompt

Function generateLongPrompt

examples/prompt-builder/compression_example.go:96–181  ·  view source on GitHub ↗

generateLongPrompt 生成测试用的长 prompt

()

Source from the content-addressed store, hash-verified

94
95// generateLongPrompt 生成测试用的长 prompt
96func generateLongPrompt() string {
97 return `# System Prompt
98
99You are a helpful AI assistant.
100
101## Tools Manual
102
103This section describes the available tools:
104
105### ReadFile
106Read contents of a file from the filesystem.
107Parameters:
108- path: The file path to read
109
110### WriteFile
111Write contents to a file.
112Parameters:
113- path: The file path to write
114- content: The content to write
115
116### Bash
117Execute a shell command.
118Parameters:
119- command: The command to execute
120
121## Security Guidelines
122
123IMPORTANT: Follow these security rules at all times:
124
1251. Never expose API keys or credentials
1262. Always validate user input before processing
1273. Use secure connections for network operations
1284. Do not execute arbitrary code without user confirmation
1295. Protect sensitive data in transit and at rest
130
131## General Instructions
132
133When responding to user queries:
1341. Be helpful and accurate
1352. Provide clear explanations
1363. Use examples when helpful
1374. Ask clarifying questions when needed
138
139## Code Style Guidelines
140
141Follow these coding conventions:
142- Use meaningful variable names
143- Add comments for complex logic
144- Follow the project's existing patterns
145- Write tests for new functionality
146
147## Error Handling
148
149When errors occur:
1501. Log the error with context
1512. Provide user-friendly error messages
1523. Suggest possible solutions
1534. Never expose internal details

Callers 1

directCompressionExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected