Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

telnyx-ai-assistants-gotelnyxAI 助手去

Agent Skill

telnyx-ai-assistants-go 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

GitHub Stars

167

下载量

94
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:telnyx-ai-assistants-go(telnyxAI 助手去)
来源仓库:https://github.com/team-telnyx/telnyx-skills
仓库路径:skills/telnyx-ai-assistants-go
安装命令:
npx skills add https://github.com/team-telnyx/telnyx-skills --skill telnyx-ai-assistants-go
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/team-telnyx/telnyx-skills --skill telnyx-ai-assistants-go

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中整理仓库状态与协作事项。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,避免触发联网或命令执行。
  • telnyx-ai-assistants-go 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Telnyx AI Assistants - Go

Installation

go get github.com/team-telnyx/telnyx-go

Setup

import (
  "context"
  "fmt"
  "os"

  "github.com/team-telnyx/telnyx-go"
  "github.com/team-telnyx/telnyx-go/option"
)

client := telnyx.NewClient(
  option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)

All examples below assume client is already initialized as shown above.

Error Handling

All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:

import "errors"

assistant, err := client.AI.Assistants.New(context.Background(), telnyx.AIAssistantNewParams{
		Instructions: "You are a helpful assistant.",
		Model: "openai/gpt-4o",
		Name: "my-resource",
	})
if err != nil {
  var apiErr *telnyx.Error
  if errors.As(err, &apiErr) {
    switch apiErr.StatusCode {
    case 422:
      fmt.Println("Validation error — check required fields and formats")
    case 429:
      fmt.Println("Rate limited, retrying...")
    default:
      fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error())
    }
  } else {
    fmt.Println("Network error — check connectivity and retry")
  }
}

Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).

Important Notes

  • Phone numbers must be in E.164 format (e.g., +13125550001). Include the + prefix and country code. No spaces, dashes, or parentheses.
  • Pagination: Use ListAutoPaging() for automatic iteration: iter:= client.Resource.ListAutoPaging(ctx, params); for iter.Next() {item:= iter.Current()}.

Reference Use Rules

Do not invent Telnyx parameters, enums, response fields, or webhook fields.

Core Tasks

Create an assistant

Assistant creation is the entrypoint for any AI assistant integration. Agents need the exact creation method and the top-level fields returned by the SDK.

client.AI.Assistants.New()POST /ai/assistants

ParameterTypeRequiredDescription
NamestringYes
ModelstringYesID of the model to use.
InstructionsstringYesSystem instructions for the assistant.
Toolsarray[object]NoThe tools that the assistant can use.
ToolIdsarray[string]No
DescriptionstringNo
...+12 optional params in references/api-details.md
	assistant, err := client.AI.Assistants.New(context.Background(), telnyx.AIAssistantNewParams{
		Instructions: "You are a helpful assistant.",
		Model: "openai/gpt-4o",
		Name: "my-resource",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", assistant.ID)

Primary response fields:

  • assistant.ID
  • assistant.Name
  • assistant.Model
  • assistant.Instructions
  • assistant.CreatedAt
  • assistant.Description

Chat with an assistant

Chat is the primary runtime path. Agents need the exact assistant method and the response content field.

client.AI.Assistants.Chat()POST /ai/assistants/{assistant_id}/chat

ParameterTypeRequiredDescription
ContentstringYesThe message content sent by the client to the assistant
ConversationIdstring (UUID)YesA unique identifier for the conversation thread, used to mai...
AssistantIdstring (UUID)Yes
NamestringNoThe optional display name of the user sending the message
	response, err := client.AI.Assistants.Chat(
		context.Background(),
		"assistant_id",
		telnyx.AIAssistantChatParams{
			Content:        "Tell me a joke about cats",
			ConversationID: "42b20469-1215-4a9a-8964-c36f66b406f4",
		},
	)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", response.Content)

Primary response fields:

  • response.Content

Create an assistant test

Test creation is the main validation path for production assistant behavior before deployment.

client.AI.Assistants.Tests.New()POST /ai/assistants/tests

ParameterTypeRequiredDescription
NamestringYesA descriptive name for the assistant test.
DestinationstringYesThe target destination for the test conversation.
InstructionsstringYesDetailed instructions that define the test scenario and what...
Rubricarray[object]YesEvaluation criteria used to assess the assistant's performan...
DescriptionstringNoOptional detailed description of what this test evaluates an...
TelnyxConversationChannelobjectNoThe communication channel through which the test will be con...
MaxDurationSecondsintegerNoMaximum duration in seconds that the test conversation shoul...
...+1 optional params in references/api-details.md
	assistantTest, err := client.AI.Assistants.Tests.New(context.Background(), telnyx.AIAssistantTestNewParams{
		Destination:  "+15551234567",
		Instructions: "Act as a frustrated customer who received a damaged product. Ask for a refund and escalate if not satisfied with the initial response.",
		Name:         "Customer Support Bot Test",
		Rubric: []telnyx.AIAssistantTestNewParamsRubric{{
			Criteria: "Assistant responds within 30 seconds",
			Name:     "Response Time",
		}, {
			Criteria: "Provides correct product information",
			Name:     "Accuracy",
		}},
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", assistantTest.TestID)

Primary response fields:

  • assistantTest.TestID
  • assistantTest.Name
  • assistantTest.Destination
  • assistantTest.CreatedAt
  • assistantTest.Instructions
  • assistantTest.Description

Important Supporting Operations

Use these when the core tasks above are close to your flow, but you need a common variation or follow-up step.

Get an assistant

Fetch the current state before updating, deleting, or making control-flow decisions.

client.AI.Assistants.Get()GET /ai/assistants/{assistant_id}

ParameterTypeRequiredDescription
AssistantIdstring (UUID)Yes
CallControlIdstring (UUID)No
FetchDynamicVariablesFromWebhookbooleanNo
Fromstring (E.164)No
...+1 optional params in references/api-details.md
	assistant, err := client.AI.Assistants.Get(
		context.Background(),
		"assistant_id",
		telnyx.AIAssistantGetParams{},
	)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", assistant.ID)

Primary response fields:

  • assistant.ID
  • assistant.Name
  • assistant.CreatedAt
  • assistant.Description
  • assistant.DynamicVariables
  • assistant.DynamicVariablesWebhookURL

Update an assistant

Create or provision an additional resource when the core tasks do not cover this flow.

client.AI.Assistants.Update()POST /ai/assistants/{assistant_id}

ParameterTypeRequiredDescription
AssistantIdstring (UUID)Yes
NamestringNo
ModelstringNoID of the model to use.
InstructionsstringNoSystem instructions for the assistant.
...+16 optional params in references/api-details.md
	assistant, err := client.AI.Assistants.Update(
		context.Background(),
		"assistant_id",
		telnyx.AIAssistantUpdateParams{},
	)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", assistant.ID)

Primary response fields:

  • assistant.ID
  • assistant.Name
  • assistant.CreatedAt
  • assistant.Description
  • assistant.DynamicVariables
  • assistant.DynamicVariablesWebhookURL

List assistants

Inspect available resources or choose an existing resource before mutating it.

client.AI.Assistants.List()GET /ai/assistants

	assistantsList, err := client.AI.Assistants.List(context.Background())
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", assistantsList.Data)

Response wrapper:

  • items: assistantsList.data

Primary item fields:

  • ID
  • Name
  • CreatedAt
  • Description
  • DynamicVariables
  • DynamicVariablesWebhookURL

Import assistants from external provider

Import existing assistants from an external provider instead of creating from scratch.

client.AI.Assistants.Imports()POST /ai/assistants/import

ParameterTypeRequiredDescription
Providerenum (elevenlabs, vapi, retell)YesThe external provider to import assistants from.
ApiKeyRefstringYesIntegration secret pointer that refers to the API key for th...
ImportIdsarray[string]NoOptional list of assistant IDs to import from the external p...
	assistantsList, err := client.AI.Assistants.Imports(context.Background(), telnyx.AIAssistantImportsParams{
		APIKeyRef: "my-openai-key",
		Provider:  telnyx.AIAssistantImportsParamsProviderElevenlabs,
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", assistantsList.Data)

Response wrapper:

  • items: assistantsList.data

Primary item fields:

  • ID
  • Name
  • CreatedAt
  • Description
  • DynamicVariables
  • DynamicVariablesWebhookURL

Get All Tags

Inspect available resources or choose an existing resource before mutating it.

client.AI.Assistants.Tags.List()GET /ai/assistants/tags

	tags, err := client.AI.Assistants.Tags.List(context.Background())
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", tags.Tags)

Primary response fields:

  • tags.Tags

List assistant tests with pagination

Inspect available resources or choose an existing resource before mutating it.

client.AI.Assistants.Tests.List()GET /ai/assistants/tests

ParameterTypeRequiredDescription
TestSuitestringNoFilter tests by test suite name
TelnyxConversationChannelstringNoFilter tests by communication channel (e.g., 'web_chat', 'sm...
DestinationstringNoFilter tests by destination (phone number, webhook URL, etc....
...+1 optional params in references/api-details.md
	page, err := client.AI.Assistants.Tests.List(context.Background(), telnyx.AIAssistantTestListParams{})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", page)

Response wrapper:

  • items: page.data
  • pagination: page.meta

Primary item fields:

  • Name
  • CreatedAt
  • Description
  • Destination
  • Instructions
  • MaxDurationSeconds

Get all test suite names

Inspect available resources or choose an existing resource before mutating it.

client.AI.Assistants.Tests.TestSuites.List()GET /ai/assistants/tests/test-suites

	testSuites, err := client.AI.Assistants.Tests.TestSuites.List(context.Background())
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", testSuites.Data)

Response wrapper:

  • items: testSuites.data

Primary item fields:

  • Data

Get test suite run history

Fetch the current state before updating, deleting, or making control-flow decisions.

client.AI.Assistants.Tests.TestSuites.Runs.List()GET /ai/assistants/tests/test-suites/{suite_name}/runs

ParameterTypeRequiredDescription
SuiteNamestringYes
TestSuiteRunIdstring (UUID)NoFilter runs by specific suite execution batch ID
StatusstringNoFilter runs by execution status (pending, running, completed...
PageobjectNoConsolidated page parameter (deepObject style).
	page, err := client.AI.Assistants.Tests.TestSuites.Runs.List(
		context.Background(),
		"suite_name",
		telnyx.AIAssistantTestTestSuiteRunListParams{},
	)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", page)

Response wrapper:

  • items: page.data
  • pagination: page.meta

Primary item fields:

  • Status
  • CreatedAt
  • UpdatedAt
  • CompletedAt
  • ConversationID
  • ConversationInsightsID

Additional Operations

Use the core tasks above first. The operations below are indexed here with exact SDK methods and required params; use references/api-details.md for full optional params, response schemas, and lower-frequency webhook payloads. Before using any operation below, read the optional-parameters section and the response-schemas section so you do not guess missing fields.

OperationSDK methodEndpointUse whenRequired params
Trigger test suite executionclient.AI.Assistants.Tests.TestSuites.Runs.Trigger()POST /ai/assistants/tests/test-suites/{suite_name}/runsTrigger a follow-up action in an existing workflow rather than creating a new top-level resource.SuiteName
Get assistant test by IDclient.AI.Assistants.Tests.Get()GET /ai/assistants/tests/{test_id}Fetch the current state before updating, deleting, or making control-flow decisions.TestId
Update an assistant testclient.AI.Assistants.Tests.Update()PUT /ai/assistants/tests/{test_id}Modify an existing resource without recreating it.TestId
Delete an assistant testclient.AI.Assistants.Tests.Delete()DELETE /ai/assistants/tests/{test_id}Remove, detach, or clean up an existing resource.TestId
Get test run history for a specific testclient.AI.Assistants.Tests.Runs.List()GET /ai/assistants/tests/{test_id}/runsFetch the current state before updating, deleting, or making control-flow decisions.TestId
Trigger a manual test runclient.AI.Assistants.Tests.Runs.Trigger()POST /ai/assistants/tests/{test_id}/runsTrigger a follow-up action in an existing workflow rather than creating a new top-level resource.TestId
Get specific test run detailsclient.AI.Assistants.Tests.Runs.Get()GET /ai/assistants/tests/{test_id}/runs/{run_id}Fetch the current state before updating, deleting, or making control-flow decisions.TestId, RunId
Delete an assistantclient.AI.Assistants.Delete()DELETE /ai/assistants/{assistant_id}Remove, detach, or clean up an existing resource.AssistantId
Get Canary Deployclient.AI.Assistants.CanaryDeploys.Get()GET /ai/assistants/{assistant_id}/canary-deploysFetch the current state before updating, deleting, or making control-flow decisions.AssistantId
Create Canary Deployclient.AI.Assistants.CanaryDeploys.New()POST /ai/assistants/{assistant_id}/canary-deploysCreate or provision an additional resource when the core tasks do not cover this flow.Versions, AssistantId
Update Canary Deployclient.AI.Assistants.CanaryDeploys.Update()PUT /ai/assistants/{assistant_id}/canary-deploysModify an existing resource without recreating it.Versions, AssistantId
Delete Canary Deployclient.AI.Assistants.CanaryDeploys.Delete()DELETE /ai/assistants/{assistant_id}/canary-deploysRemove, detach, or clean up an existing resource.AssistantId
Assistant Sms Chatclient.AI.Assistants.SendSMS()POST /ai/assistants/{assistant_id}/chat/smsRun assistant chat over SMS instead of direct API chat.From, To, AssistantId
Clone Assistantclient.AI.Assistants.Clone()POST /ai/assistants/{assistant_id}/cloneTrigger a follow-up action in an existing workflow rather than creating a new top-level resource.AssistantId
List scheduled eventsclient.AI.Assistants.ScheduledEvents.List()GET /ai/assistants/{assistant_id}/scheduled_eventsFetch the current state before updating, deleting, or making control-flow decisions.AssistantId
Create a scheduled eventclient.AI.Assistants.ScheduledEvents.New()POST /ai/assistants/{assistant_id}/scheduled_eventsCreate or provision an additional resource when the core tasks do not cover this flow.TelnyxConversationChannel, TelnyxEndUserTarget, TelnyxAgentTarget, ScheduledAtFixedDatetime, +1 more
Get a scheduled eventclient.AI.Assistants.ScheduledEvents.Get()GET /ai/assistants/{assistant_id}/scheduled_events/{event_id}Fetch the current state before updating, deleting, or making control-flow decisions.AssistantId, EventId
Delete a scheduled eventclient.AI.Assistants.ScheduledEvents.Delete()DELETE /ai/assistants/{assistant_id}/scheduled_events/{event_id}Remove, detach, or clean up an existing resource.AssistantId, EventId
Add Assistant Tagclient.AI.Assistants.Tags.Add()POST /ai/assistants/{assistant_id}/tagsCreate or provision an additional resource when the core tasks do not cover this flow.Tag, AssistantId
Remove Assistant Tagclient.AI.Assistants.Tags.Remove()DELETE /ai/assistants/{assistant_id}/tags/{tag}Remove, detach, or clean up an existing resource.AssistantId, Tag
Get assistant texmlclient.AI.Assistants.GetTexml()GET /ai/assistants/{assistant_id}/texmlFetch the current state before updating, deleting, or making control-flow decisions.AssistantId
Add Assistant Toolclient.AI.Assistants.Tools.Add()PUT /ai/assistants/{assistant_id}/tools/{tool_id}Modify an existing resource without recreating it.AssistantId, ToolId
Remove Assistant Toolclient.AI.Assistants.Tools.Remove()DELETE /ai/assistants/{assistant_id}/tools/{tool_id}Remove, detach, or clean up an existing resource.AssistantId, ToolId
Test Assistant Toolclient.AI.Assistants.Tools.Test()POST /ai/assistants/{assistant_id}/tools/{tool_id}/testTrigger a follow-up action in an existing workflow rather than creating a new top-level resource.AssistantId, ToolId
Get all versions of an assistantclient.AI.Assistants.Versions.List()GET /ai/assistants/{assistant_id}/versionsFetch the current state before updating, deleting, or making control-flow decisions.AssistantId
Get a specific assistant versionclient.AI.Assistants.Versions.Get()GET /ai/assistants/{assistant_id}/versions/{version_id}Fetch the current state before updating, deleting, or making control-flow decisions.AssistantId, VersionId
Update a specific assistant versionclient.AI.Assistants.Versions.Update()POST /ai/assistants/{assistant_id}/versions/{version_id}Create or provision an additional resource when the core tasks do not cover this flow.AssistantId, VersionId
Delete a specific assistant versionclient.AI.Assistants.Versions.Delete()DELETE /ai/assistants/{assistant_id}/versions/{version_id}Remove, detach, or clean up an existing resource.AssistantId, VersionId
Promote an assistant version to mainclient.AI.Assistants.Versions.Promote()POST /ai/assistants/{assistant_id}/versions/{version_id}/promoteTrigger a follow-up action in an existing workflow rather than creating a new top-level resource.AssistantId, VersionId
List MCP Serversclient.AI.McpServers.List()GET /ai/mcp_serversInspect available resources or choose an existing resource before mutating it.None
Create MCP Serverclient.AI.McpServers.New()POST /ai/mcp_serversCreate or provision an additional resource when the core tasks do not cover this flow.Name, Type, Url
Get MCP Serverclient.AI.McpServers.Get()GET /ai/mcp_servers/{mcp_server_id}Fetch the current state before updating, deleting, or making control-flow decisions.McpServerId
Update MCP Serverclient.AI.McpServers.Update()PUT /ai/mcp_servers/{mcp_server_id}Modify an existing resource without recreating it.McpServerId
Delete MCP Serverclient.AI.McpServers.Delete()DELETE /ai/mcp_servers/{mcp_server_id}Remove, detach, or clean up an existing resource.McpServerId
List Toolsclient.AI.Tools.List()GET /ai/toolsInspect available resources or choose an existing resource before mutating it.None
Create Toolclient.AI.Tools.New()POST /ai/toolsCreate or provision an additional resource when the core tasks do not cover this flow.Type, DisplayName
Get Toolclient.AI.Tools.Get()GET /ai/tools/{tool_id}Fetch the current state before updating, deleting, or making control-flow decisions.ToolId
Update Toolclient.AI.Tools.Update()PATCH /ai/tools/{tool_id}Modify an existing resource without recreating it.ToolId
Delete Toolclient.AI.Tools.Delete()DELETE /ai/tools/{tool_id}Remove, detach, or clean up an existing resource.ToolId

For exhaustive optional parameters, full response schemas, and complete webhook payloads, see references/api-details.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.86%
按下载量换算33

Claude

28.92%
按下载量换算27

Cursor

17.9%
按下载量换算17

Gemini CLI

8.45%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills