Magidoc

CodeGenerationInput
Input Object

Fields

#

contextDocumentation

Documentation about the function contract and available APIs

existingCode

Existing code to fix or improve. When provided, the AI will improve this code rather than generating fresh.

sampleData

Example data the function will receive, as a JSON string

userInstructions

Non-null

What the user wants the generated code to do

Usages

#

References

#

  • Argument input of field generateCode from type Mutation