Skip to main content

通过给定的资料,获得细分场

Project description

rough2fine

项目简介

本项目旨在通过给定的资料,自动生成出版级的剧本细分场,辅助编剧高效完成从粗分场到细分场的创作工作。项目基于MCP服务框架,提供结构化的创作提示词生成服务。

主要功能

  • 解析剧本相关资料(如粗分场、前情、人物小传、故事梗概等)
  • 自动生成细分场创作提示词
  • 支持通过API调用服务
  • 细分场输出严格遵循出版级格式

服务接口说明

1. critical_thinking 工具

  • 功能:根据输入的剧本资料,生成结构化的细分场创作提示词。
  • 参数说明
    • fine:本场剧本粗分场内容,若为空则自动读取fine.txt
    • person:核心人物小传内容,若为空则自动读取person.txt
    • previous_events:本场前情内容,若为空则自动读取previous_events.txt
    • screenplay_completed:已完成剧本内容,若为空则自动读取screenplay_completed.txt
    • story_beat:本集情节点内容,若为空则自动读取story_beat.txt
    • episode_summary:本集故事梗概内容,若为空则自动读取episode_summary.txt
  • 返回值
    • response:生成的结构化创作提示词(细分场内容)

使用方法

  1. 安装依赖环境(建议使用 Python 3.8 及以上版本):
    pip install poetry
    poetry install
    
  2. 启动服务:
    python server.py
    
  3. 通过MCP客户端或API调用critical_thinking工具,传入相关参数即可获得细分场创作提示词。

依赖环境

  • Python >= 3.8
  • poetry-core >= 2.0.0, <3.0.0

文件说明

  • server.py:服务主程序,提供critical_thinking工具
  • prompt.md:创作提示词模板及详细说明
  • pyproject.toml:项目依赖与元数据

致谢

感谢所有为本项目提供灵感和支持的编剧、开发者与测试者。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rough2fine-0.1.4.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rough2fine-0.1.4-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file rough2fine-0.1.4.tar.gz.

File metadata

  • Download URL: rough2fine-0.1.4.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rough2fine-0.1.4.tar.gz
Algorithm Hash digest
SHA256 de0ea60eccc462d2df71ac431d75d54a7ac66a746d4321eaf77683dd03f153d3
MD5 1ea417e36e9fd32167335162f026b5db
BLAKE2b-256 bf7b77cde8f0389ce4fd9cbb13ad80efd912e8a9e10fc0c51b5aa58e4e20f1cc

See more details on using hashes here.

File details

Details for the file rough2fine-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: rough2fine-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rough2fine-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 88fd721efe170dcb4a2d7ec3fe389311a3e69d614146307588845ee4a7eaef13
MD5 8995066e579d5cce12b781440db4ee90
BLAKE2b-256 b2f4d3ef745f5a0554d9d6f3e19e33c23465c876541a8ed11352d694a04b168f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page