Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: feat: add Agent | ChatBot 2 DSL #351

Open
wants to merge 9 commits into
base: workflow
Choose a base branch
from

Conversation

PolarishT
Copy link
Contributor

Describe how to verify it

app:
  name: '你好 '
  mode: agent-chat
  description: cc
model_config:
  file_upload: !!com.alibaba.cloud.ai.model.agent.Agent$FileUpLoad
    allowedFileExtensions:
    - .JPG
    - .JPEG
    - .PNG
    - .GIF
    - .WEBP
    - .SVG
    - .MP4
    - .MOV
    - .MPEG
    - .MPGA
    allowedFileTypes: [
      ]
    allowedFileUploadMethods:
    - remote_url
    - local_file
    enabled: false
    image:
      detail: high
      enabled: false
      numberLimits: 3
      transferMethods:
      - remote_url
      - local_file
    numberLimit: 3
  agent_mode: !!com.alibaba.cloud.ai.model.agent.Agent$AgentMode
    enabled: false
    maxIteration: 5
    strategy: function_call
  completion_prompt_config: !!com.alibaba.cloud.ai.model.agent.Agent$CompletionPromptConfig
    toK: 0
  prompt_type: '"simple"'
  pre_prompt: '""'
  model: !!com.alibaba.cloud.ai.model.agent.Agent$Model
    completionParams:
      frequencyPenalty: null
      maxTokens: null
      presencePenalty: null
      responseFormat: null
      stop: [
        ]
      temperature: null
      topP: null
    jsonSchema: null
    mode: chat
    name: gpt-4o-mini
    provider: openai
  opening_statement: '""'
  dataset_configs:
    top_k: 4
    datasets:
      datasets: [
        ]
    retrieval_model: '"multiple"'
    weights: ''
    reranking_enable: true
  user_input_form:
  - paragraph:
      label: node
      maxLength: 48
      required: false
      variable: node
      defaultContent: null
  - select:
      label: dad
      options:
      - fff
      - '111'
      required: false
      variable: da
      defaultContent: null
  - number:
      label: daadddd
      options: null
      required: false
      variable: aaadaa
      defaultContent: null
kind: app
2025-01-05T13:53:36.442+08:00  INFO 95682 --- [spring-ai-alibaba-graph-studio] [nio-8080-exec-5] c.a.c.ai.service.dsl.AbstractDSLAdapter  : dsl importing: {"app":{"description":"","icon":"","icon_background":"#FFEAD5","mode":"agent-chat","name":"agent","use_icon_as_answer_icon":false},"kind":"app","model_config":{"agent_mode":{"enabled":true,"max_iteration":5,"prompt":null,"strategy":"function_call","tools":[{"enabled":true,"provider_id":"transcript","provider_name":"transcript","provider_type":"builtin","tool_label":"免费获取 YouTube 转录","tool_name":"free_youtube_transcript","tool_parameters":{"cookies":"","format":"","language":"","preserve_formatting":"","proxy":"","video_id":""}}]},"annotation_reply":{"enabled":false},"chat_prompt_config":{},"completion_prompt_config":{},"dataset_configs":{"datasets":{"datasets":[]},"reranking_enable":true,"retrieval_model":"multiple","top_k":4},"dataset_query_variable":"","external_data_tools":[],"file_upload":{"allowed_file_extensions":[".JPG",".JPEG",".PNG",".GIF",".WEBP",".SVG",".MP4",".MOV",".MPEG",".MPGA"],"allowed_file_types":[],"allowed_file_upload_methods":["remote_url","local_file"],"enabled":false,"image":{"detail":"high","enabled":false,"number_limits":3,"transfer_methods":["remote_url","local_file"]},"number_limits":3},"model":{"completion_params":{"stop":[]},"mode":"chat","name":"gpt-4o-mini","provider":"openai"},"more_like_this":{"enabled":false},"opening_statement":"","pre_prompt":"","prompt_type":"simple","retriever_resource":{"enabled":true},"sensitive_word_avoidance":{"configs":[],"enabled":false,"type":""},"speech_to_text":{"enabled":false},"suggested_questions":[],"suggested_questions_after_answer":{"enabled":false},"text_to_speech":{"enabled":false,"language":"","voice":""},"user_input_form":[]},"version":"0.1.5"}

@PolarishT
Copy link
Contributor Author

cc @chickenlj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant