메인 콘텐츠로 건너뛰기
POST
/
agents
/
search
GenAI 검색
curl --request POST \
  --url https://api.example.com/agents/search \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "query": "<string>",
  "agent_name": "<string>",
  "conversation_id": "<string>",
  "limit": 20,
  "offset": 0,
  "provider_name": "<string>",
  "request_model": "<string>",
  "roles": [],
  "started_after": "2023-11-07T05:31:56Z",
  "started_before": "2023-11-07T05:31:56Z"
}
'
{
  "results": [
    {
      "agent_name": "<string>",
      "conversation_id": "<string>",
      "conversation_name": "<string>",
      "last_activity": "2023-11-07T05:31:56Z",
      "matched_messages": [
        {
          "content_digest": "<string>",
          "content_preview": "<string>",
          "span_id": "<string>",
          "started_at": "2023-11-07T05:31:56Z",
          "trace_id": "<string>"
        }
      ]
    }
  ],
  "total_conversations": 0
}

인증

Authorization
string
header
필수

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

본문

application/json

메시지 콘텐츠와 span 메타데이터 전반에서 수행하는 전체 텍스트 검색입니다.

messages 테이블(메시지 발생당 한 행이며, spans의 MV로 채워짐)을 스캔해 일치하는 span 수준 검색 결과를 반환합니다. 응답 형태에 맞게 호출자가 대화별로 그룹화합니다.

project_id
string
필수
query
string
필수
agent_name
string | null
conversation_id
string | null
limit
integer
기본값:20
필수 범위: 0 <= x <= 1000
offset
integer
기본값:0
필수 범위: x >= 0
provider_name
string | null
request_model
string | null
roles
enum<string>[] | null
사용 가능한 옵션:
,
user,
assistant,
system,
tool,
tool_call,
tool_result
started_after
string<date-time> | null
started_before
string<date-time> | null

응답

성공 응답

에이전트 메시지 전반에 대한 전체 텍스트 검색 응답입니다.

results
AgentSearchConversationResult · object[]
필수
total_conversations
integer
기본값:0