- 카테고리:
:doc:`/sql-reference/functions-table`(Cortex Agents)
GET_AI_OBSERVABILITY_LOGS (SNOWFLAKE.LOCAL)¶
Retrieve log data for an AI Observability event, such as a warning or failure, for a Cortex Agent or an External Agent application (see External Agent commands).
Call this function to retrieve information about what events occurred during an evaluation run. For more information, see Cortex Agent 평가 and Observability 데이터.
- 참고 항목:
GET_AI_OBSERVABILITY_EVENTS (SNOWFLAKE.LOCAL) , GET_AI_RECORD_TRACE (SNOWFLAKE.LOCAL) , GET_AI_EVALUATION_DATA (SNOWFLAKE.LOCAL) , EXECUTE_AI_EVALUATION
구문¶
인자¶
database에이전트가 포함된 데이터베이스의 이름입니다.
schema에이전트가 포함된 스키마의 이름입니다.
agent_name레코드를 검색할 에이전트의 이름입니다.
agent_typeThe agent type string. Use
CORTEX AGENTfor a Cortex Agent evaluation orEXTERNAL AGENTfor an External Agent object (see External Agent commands). This value is case-insensitive.
반환¶
AI 가시성 이벤트에 포함된 정보에 대한 자세한 내용은 Observability 데이터 섹션을 참조하세요.
액세스 제어 요구 사항¶
이 작업을 실행하는 데 사용되는 역할 에는 최소한 다음 권한 이 있어야 합니다.
권한 |
오브젝트 |
참고 |
|---|---|---|
CORTEX_USER |
데이터베이스 역할 |
|
USAGE |
Cortex Agent or External Agent |
Required on the object identified by |
MONITOR |
Cortex Agent |
Required on the Cortex Agent identified by |
스키마의 오브젝트에 대한 작업을 수행하려면 상위 데이터베이스에 대한 하나 이상의 권한과 상위 스키마에 대한 하나 이상의 권한이 필요합니다.
지정된 권한 세트로 사용자 지정 역할을 만드는 방법에 대한 지침은 사용자 지정 역할 만들기 섹션을 참조하십시오.
보안 오브젝트 에 대해 SQL 작업을 수행하기 위한 역할과 권한 부여에 대한 일반적인 정보는 액세스 제어의 개요 섹션을 참조하십시오.
When agent_type is EXTERNAL AGENT, only USAGE on that object is required to call this function. OWNERSHIP on the External Agent is required to modify or remove the object with ALTER EXTERNAL AGENT or DROP EXTERNAL AGENT.
For the full access control permissions required by Cortex Agent evaluations, see Cortex Agent evaluations – Access control requirements. For External Agent objects, see Observability 데이터.
예¶
다음 예제에서는 eval_db.eval_schema 스키마에 저장된 evaluated_agent``라는 에이전트의 ``run-1 실행에 대한 오류와 경고를 확인합니다.