Skip to content

Commit 4b504a8

Browse files
committed
feat(docs): rename DevIn Input Language to DevIn Agent Language #101
The file `docs/development/devin-input-language.md` has been renamed to `docs/development/devin-agent-language.md` to better reflect the content and purpose of the document. The title has been changed accordingly, and the language specification has been updated to clarify the use of the `#` symbol for referencing third-party system APIs. Additionally, a new section on case design with an example of AutoCRUD has been added to provide more detailed examples of how the DevIn Agent Language can be used in practice.
1 parent 61856e2 commit 4b504a8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

docs/development/devin-input-language.md renamed to docs/development/devin-agent-language.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: DevIn Input Language
3+
title: DevIn Agent Language
44
nav_order: 4
55
parent: Development
66
---
@@ -22,7 +22,7 @@ Based on: [JetBrains' Markdown Util](https://github.com/JetBrains/intellij-commu
2222
- `/` Builtin Command, natural language command with IDE/editor, like read file, write file, etc.
2323
- `@` Agent, natural language custom function / system function name, the handler or command,
2424
- `$` Variable, natural language variable name, like file name, file content, etc.
25-
- '#' 3rd party API, like `#kanban`, `#maven`, `#gradle`, etc.
25+
- `#` Third-party system API for traditional, like `#kanban`, `#issue`, `#github`, etc.
2626

2727
## Language spec
2828

@@ -33,10 +33,33 @@ used ::= (
3333
AGENT_START AGENT_ID
3434
| COMMAND_START COMMAND_ID (COLON COMMAND_PROP?)?
3535
| VARIABLE_START VARIABLE_ID
36+
| SYSTEM_START SYSTEM_ID
3637
)
3738
3839
code ::= CODE_BLOCK_START LANGUAGE_ID? NEWLINE? code_contents? CODE_BLOCK_END?
3940
4041
code_contents ::= (NEWLINE | CODE_CONTENT)*
4142
```
4243

44+
## Case Design
45+
46+
### AutoCRUD
47+
48+
```devin
49+
@create /file:src/main/java/com/example/Controller.java
50+
```
51+
52+
```devin
53+
/file:regex("*.Controller")
54+
```typescript jsx
55+
56+
```
57+
/edit /file:src/main/java/com/example/Controller.java#L1-L12
58+
\`\`\`java
59+
public class Controller {
60+
public void method() {
61+
System.out.println("Hello, World!");
62+
}
63+
}
64+
\`\`\`
65+
```

0 commit comments

Comments
 (0)