ask

package
v0.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskExpert

func AskExpert(ctx context.Context, input string) (reply string, err error)

AskExpert calls the AI expert model via DeepSeek Web (free V4 Pro).

It renders the "expert" system prompt, prepends it to the input, and sends the combined message to chat.deepseek.com via Chrome/CDP. Each call starts a new conversation.

Parameters:

ctx: context object for passing execution environment configuration
input: input text to send to the AI model, can be any length

Returns:

reply: the AI model's response text
err: error during execution

func AskExpertWithRole

func AskExpertWithRole(ctx context.Context, input, role string) (reply string, err error)

AskExpertWithRole calls the AI model for consultation with a specified role (expert/review/dev) via DeepSeek Web (free V4 Pro).

It renders the role-specific system prompt (e.g. expert.md, review.md), prepends it to the input, and sends the combined message to chat.deepseek.com. Each call starts a new conversation.

Parameters:

ctx: context object
input: input text to send to the AI model
role: role (expert/review/dev)

Returns:

reply: the AI model's response text
err: error during execution

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL