Letta · Schema

CodeInput

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
code string Source code to parse for JSON schema
source_type object The source type of the code (python or typescript)
View JSON Schema on GitHub

JSON Schema

letta-codeinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CodeInput",
  "title": "CodeInput",
  "properties": {
    "code": {
      "type": "string",
      "title": "Code",
      "description": "Source code to parse for JSON schema"
    },
    "source_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Type",
      "description": "The source type of the code (python or typescript)",
      "default": "python"
    }
  },
  "type": "object",
  "required": [
    "code"
  ]
}