Skip navigation links
A C E I L M O P R S T 

A

AnnotationTraceExample - Class in trace.annotation
Example demonstrating how to use the @CozeTrace annotation for automatic tracing.
AnnotationTraceExample() - Constructor for class trace.annotation.AnnotationTraceExample
 
AnnotationTraceExample.LlmService - Class in trace.annotation
 

C

customTrace(String, String) - Method in class trace.annotation.AnnotationTraceExample.LlmService
Customization: Specify span name, type, and capture input/output.

E

ErrorHandlingExample - Class in init.error
错误处理示例 展示如何正确处理 CozeLoop SDK 中的异常和错误。
ErrorHandlingExample() - Constructor for class init.error.ErrorHandlingExample
 
errorTrace() - Method in class trace.annotation.AnnotationTraceExample.LlmService
Error handling: The aspect automatically captures exceptions and records them as span errors.

I

init.error - package init.error
 
init.oauth_jwt - package init.oauth_jwt
 
init.pat - package init.pat
 

L

LlmService() - Constructor for class trace.annotation.AnnotationTraceExample.LlmService
 

M

main(String[]) - Static method in class init.error.ErrorHandlingExample
 
main(String[]) - Static method in class init.oauth_jwt.OAuthJwtExample
 
main(String[]) - Static method in class init.pat.PatExample
 
main(String[]) - Static method in class prompt.prompt_execute.PromptExecuteExample
 
main(String[]) - Static method in class prompt.prompt_hub.PromptHubExample
 
main(String[]) - Static method in class prompt.prompt_hub_jinja.PromptHubJinjaExample
 
main(String[]) - Static method in class trace.annotation.AnnotationTraceExample
 
main(String[]) - Static method in class trace.parent_child.ParentChildSpanExample
 
main(String[]) - Static method in class trace.prompt.TraceWithPromptExample
 
main(String[]) - Static method in class trace.simple.SimpleTraceExample
 
main(String[]) - Static method in class trace.transfer_between_services.TransferBetweenServicesExample
 

O

OAuthJwtExample - Class in init.oauth_jwt
OAuth JWT 认证初始化示例 这是生产环境推荐的认证方式,比 PAT 更安全。
OAuthJwtExample() - Constructor for class init.oauth_jwt.OAuthJwtExample
 

P

ParentChildSpanExample - Class in trace.parent_child
父子 Span 示例 展示如何创建父子关系的 span,包括: - 创建父子关系的 span - 展示 context 传递机制 - 包含异步任务的追踪示例 使用前请先设置以下环境变量: - COZELOOP_WORKSPACE_ID: 你的工作空间 ID - COZELOOP_API_TOKEN: 你的访问令牌
ParentChildSpanExample() - Constructor for class trace.parent_child.ParentChildSpanExample
 
PatExample - Class in init.pat
Personal Access Token (PAT) 初始化示例 重要提示:Personal Access Token 不够安全,仅用于测试环境。
PatExample() - Constructor for class init.pat.PatExample
 
prompt.prompt_execute - package prompt.prompt_execute
 
prompt.prompt_hub - package prompt.prompt_hub
 
prompt.prompt_hub_jinja - package prompt.prompt_hub_jinja
 
PromptExecuteExample - Class in prompt.prompt_execute
Example demonstrating how to use the execute and executeStreaming methods.
PromptExecuteExample() - Constructor for class prompt.prompt_execute.PromptExecuteExample
 
PromptHubExample - Class in prompt.prompt_hub
Prompt Hub 基础示例 展示如何: - 获取 prompt - 格式化 prompt(包含普通变量和 placeholder 变量) - 与 LLM 调用的集成 使用前请先设置以下环境变量: - COZELOOP_WORKSPACE_ID: 你的工作空间 ID - COZELOOP_API_TOKEN: 你的访问令牌 注意:需要在平台上创建一个 Prompt(Prompt Key 设置为 'prompt_hub_demo'), 并在模板中添加以下消息,然后提交版本: - System: You are a helpful bot, the conversation topic is {{var1}}. - Placeholder: placeholder1 - User: My question is {{var2}} - Placeholder: placeholder2
PromptHubExample() - Constructor for class prompt.prompt_hub.PromptHubExample
 
PromptHubJinjaExample - Class in prompt.prompt_hub_jinja
Prompt Hub Jinja 模板示例 如果你想在 prompt 中使用 Jinja 模板,可以参考以下示例。
PromptHubJinjaExample() - Constructor for class prompt.prompt_hub_jinja.PromptHubJinjaExample
 

R

rootTrace(ConfigurableApplicationContext) - Method in class trace.annotation.AnnotationTraceExample.LlmService
Basic usage: Automatically captures method name as span name.

S

simpleTrace(String) - Method in class trace.annotation.AnnotationTraceExample.LlmService
Basic usage: Automatically captures method name as span name.
SimpleTraceExample - Class in trace.simple
简单追踪示例 展示基本的 span 创建和使用,包括: - 创建 span - 设置 input/output - 设置 model 信息 - 设置 tokens 信息 - 展示 LLM 调用的完整追踪流程 使用前请先设置以下环境变量: - COZELOOP_WORKSPACE_ID: 你的工作空间 ID - COZELOOP_API_TOKEN: 你的访问令牌
SimpleTraceExample() - Constructor for class trace.simple.SimpleTraceExample
 
spelTrace(String, Map<String, Object>) - Method in class trace.annotation.AnnotationTraceExample.LlmService
Advanced usage: Use SpEL expressions for dynamic span names and precise data extraction.

T

trace.annotation - package trace.annotation
 
trace.parent_child - package trace.parent_child
 
trace.prompt - package trace.prompt
 
trace.simple - package trace.simple
 
trace.transfer_between_services - package trace.transfer_between_services
 
TraceWithPromptExample - Class in trace.prompt
追踪与提示结合示例 展示在追踪过程中使用 prompt,包括: - 在追踪过程中获取 prompt - 格式化 prompt - 与 LLM 调用的完整流程 使用前请先设置以下环境变量: - COZELOOP_WORKSPACE_ID: 你的工作空间 ID - COZELOOP_API_TOKEN: 你的访问令牌 注意:需要在平台上创建一个 Prompt(Prompt Key 设置为 'prompt_hub_demo'), 并在模板中添加以下消息,然后提交版本: - System: You are a helpful bot, the conversation topic is {{var1}}. - Placeholder: placeholder1 - User: My question is {{var2}} - Placeholder: placeholder2
TraceWithPromptExample() - Constructor for class trace.prompt.TraceWithPromptExample
 
TransferBetweenServicesExample - Class in trace.transfer_between_services
Example demonstrating trace propagation between services.
TransferBetweenServicesExample() - Constructor for class trace.transfer_between_services.TransferBetweenServicesExample
 
A C E I L M O P R S T 
Skip navigation links

Copyright © 2026. All rights reserved.