@@ -502,24 +502,12 @@ class AgentSettings(BaseModel):
502502class BaseAgentDefinition (BaseModel ):
503503 """Agent definition model."""
504504
505- id : str = Field (..., description = "Agent id or project name" )
506- name : str = Field (..., description = "Agent name or project name" )
507- metadata : Optional [AgentMetadata ] = Field (None , description = "Agent metadata" )
508- messages : List [AgentMessage ] = Field (
509- ..., description = "List of system and user messages"
510- )
511505 input_schema : Dict [str , Any ] = Field (
512506 ..., alias = "inputSchema" , description = "JSON schema for input arguments"
513507 )
514508 output_schema : Dict [str , Any ] = Field (
515509 ..., alias = "outputSchema" , description = "JSON schema for output arguments"
516510 )
517- version : str = Field ("1.0.0" , description = "Agent version" )
518- resources : List [AgentResourceConfig ] = Field (
519- ..., description = "List of tools, context, mcp and escalation resources"
520- )
521- features : List [Any ] = Field (default_factory = list , description = "Agent feature list" )
522- settings : AgentSettings = Field (..., description = "Agent settings" )
523511
524512 model_config = ConfigDict (
525513 validate_by_name = True , validate_by_alias = True , extra = "allow"
@@ -530,18 +518,41 @@ class AgentType(str, Enum):
530518 """Agent type."""
531519
532520 LOW_CODE = "lowCode"
521+ CODED = "coded"
533522
534523
535524class LowCodeAgentDefinition (BaseAgentDefinition ):
536525 """Low code agent definition."""
537526
538527 type : Literal [AgentType .LOW_CODE ] = AgentType .LOW_CODE
539528
529+ id : str = Field (..., description = "Agent id or project name" )
530+ name : str = Field (..., description = "Agent name or project name" )
531+ metadata : Optional [AgentMetadata ] = Field (None , description = "Agent metadata" )
532+ messages : List [AgentMessage ] = Field (
533+ ..., description = "List of system and user messages"
534+ )
535+
536+ version : str = Field ("1.0.0" , description = "Agent version" )
537+ resources : List [AgentResourceConfig ] = Field (
538+ ..., description = "List of tools, context, mcp and escalation resources"
539+ )
540+ features : List [Any ] = Field (default_factory = list , description = "Agent feature list" )
541+ settings : AgentSettings = Field (..., description = "Agent settings" )
540542
541- class CodedAgentDefinition (BaseModel ):
543+ model_config = ConfigDict (
544+ validate_by_name = True , validate_by_alias = True , extra = "allow"
545+ )
546+
547+
548+ class CodedAgentDefinition (BaseAgentDefinition ):
542549 """Coded agent definition."""
543550
544- pass
551+ type : Literal [AgentType .CODED ] = AgentType .CODED
552+
553+ model_config = ConfigDict (
554+ validate_by_name = True , validate_by_alias = True , extra = "allow"
555+ )
545556
546557
547558KnownAgentDefinition = Annotated [
0 commit comments