Skip to main content

Get Logic Configuration

GET /v1/agents/:id/logic
Returns the logic settings for an agent.
Response
{
  "data": {
    "retrieval": {
      "top_k": 10,
      "similarity_threshold": 0.7
    },
    "reranking": {
      "enabled": true,
      "top_n": 5
    },
    "generation": {
      "model": "gpt-4o",
      "temperature": 0.3,
      "max_tokens": 1024
    }
  }
}

Update Logic Configuration

PUT /v1/agents/:id/logic
Request
{
  "retrieval": {
    "top_k": 15,
    "similarity_threshold": 0.8
  },
  "generation": {
    "temperature": 0.1
  }
}
Partial updates are supported — only include the fields you want to change.