sdkDeterministic
Validate agent artifact
pipeline.validateAgentArtifact
Validate an external coding agent artifact against the exact typed Agent Teams output contract before submission. This does not change work-order state. A validation failure returns structured issues and should be corrected before submit-agent-artifact.
Parameters
workspaceId
string
Optional with an API key, inferred from the key.
taskTyperequired
string
No description.
campaign_strategy | campaign_table_design | company_list_build | people_fanout | account_map | company_research | person_research | personalization_research | signal_research | icp_qualification | linkedin_connection_note | linkedin_dm | linkedin_followup | reply_classification | reply_draft | campaign_analysis | experiment_design | content_ideation | content_draft
artifactrequired
object
Structured artifact produced from the claimed bundle.
Example
TypeScripttypescript
await pipeline.validateAgentArtifact({"taskType": "campaign_strategy","artifact": {}})
Response
Success response schemajson schema
{"type": "object","properties": {"validation": {"type": "object","properties": {"success": {"type": "boolean"},"artifact": {"type": "object"},"issues": {"type": "array","items": {"type": "object","properties": {"path": {"type": "array"},"message": {"type": "string"}}}}},"required": ["success"]}},"required": ["validation"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.